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, "§4Eine Sicherheitslück wurde erkannt!"
- + "\n§eBitte benutze die Adresse §fLostIsland.de §eoder §fMsGamerHD.de");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement