Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(priority = EventPriority.HIGHEST)
- public void onPlayerLogin(PlayerLoginEvent e) {
- String ip = e.getHostname().toString().split(":")[0];
- if(!(ip.toLowerCase().endsWith("msgamerhd.de") || ip.toLowerCase().endsWith("lostisland.de"))){
- e.disallow(Result.KICK_BANNED, "§cBitte verbinde dich richtig mit MsGamerHD.de (oder LostIsland.de)");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement