I'm making a plugin for my staff that can help them with some basic information. I'm trying to add a /ip for the server that will show the server ip, instead of the dns that they connect to.
I'm trying something like this
var InfoIP = Bukkit.getIp();
player.sendMessage("Server Ip: " + InfoIP);
Apparently it does work with Bukkit.getPort(); but it doesnt work with the ip. Is there another way to fix this?
I'm not looking for anything like this
var myip = "0.0.0.0";
player.sendMessage("Server Ip:" + myip);
I want the myip to be filled by the getIp instead of manually filling it.
Hopefully someone has a solution for this :) tnx.