Then make the method so it does work...
|
how to make it get the hostname ? getHostName() dont work
wat do you want
here is methods from original matrixCode:public String getLastIP() { return lastIP; } public String getLastHostname() { InetAddress addr; try { addr = InetAddress.getByName(getLastIP()); String hostname = addr.getHostName(); return hostname; } catch (UnknownHostException e) { e.printStackTrace(); } return null; }
plz any know y it no work? i want it check if host name contains given word then it block from login but it dont check
Mate.. Use your common sense. Is it that hard?
if (player.getLastHostname().contains("host name here")) {
//TODO
return;
}
What do you think //TODO means? It means to make the method. Not to use eclipse do the easy fix of creating a new method and leaving it like that. That's the outcome you get.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |