if (b.getType() == Material.AIR) return; This should fix it :)
Anyone } else { have some ideas?
Hi on a server im a developer on very much people get the connection reset or socket closed, why is this happening?:S 32GB ram and about 100 MB/S...
Thanks :)
W Well, the pÄlogget message tells me how many is online, the real thing is there it say's players.toString. bump EDIT by Moderator: merged...
Hello, I tried to make a /who command to show who is online unfortunately when i write /who it only gives me the amount online ( not who is online...
Works perfectly for me, but you can try to add this: player.setPlayerListName(null);
p.hasplayedbefore doesnt work with else and it's only for offline player bump EDIT by Moderator: merged posts, please use the edit button...
Might be solved, 2 sec.
Changed back to checking if the file exists.
For the listener, this is a server plugin so it is very big. I'll give you playerjoin. @EventHandler(priority = EventPriority.NORMAL)...
Same thing with this: if (!p.hasPlayedBefore()) { e.setJoinMessage(null);...
@EventHandler(priority = EventPriority.NORMAL) public void onPlayerJoin(final PlayerJoinEvent e) { Player p = e.getPlayer(); WFile...
@Override @EventHandler(priority = EventPriority.NORMAL) public boolean onCommand(CommandSender sender, Command cmd, String...
I only disabled placing of the block, you can also use playerinteract to stop interaction with it.
@EventHandler(priority = EventPriority.NORMAL) public void onBlockPlace(final BlockPlaceEvent e) { Block b = e.getBlock(); if(b.getType() ==...
Solved.
getCommand("stuck").setExecutor(new StuckCommand(this)); // getCommand("s").setExecutor(new SCommand(this));...
Hey, when I register my commands it works, but everytime I add a new one i get a NullPointerExecption on it... if I remove another command it...
It's p.getName()
Separate names with a comma.