gabessdsp I've also checked for online players and I didn't get any errors. I've also used it a lot of times for saving player data. When I use...
gabessdsp What are you talking about? Players are kicked after onDisable() is executed.
LegoPal92 I spend a lot of time trying to figure out how to do it without logging it yourself. I've searched CraftBukkit source code and if I...
Technius It's just a template.
- CubieX Why so complicated and inefficient? gamermanh I would do it this way: private ArrayList<Player> joiners = new ArrayList<>();...
Donald8274 These 2 lines are in a good method, you don't need to move it anywhere else.
Shouldn't this only work when player is in creative? @MineDoubleSpace I would do it so. And this would also block from leaping again in air....
getServer().getPluginManager().registerEvents(playerListener, this); or add a line plugin = this;...
Donald8274 You either first initialize it, or simply use "this" as an argument.
Donald8274 You haven't initialized "public static UselessPlugin plugin", but you are use it to register events. Also: You don't need to listen...
This task lets invClose() method to finish, so the inventory actually closes, before opening a new one. Typically this would be done by cancelling...
Simulated this error myself. This should fix it: Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { public void run() {...
It would be helpful to see the error that won't stop flooding your console.
AranhaGameplayBR I'm afraid to say, but you are missing 6 brackets... If you don't care about readability, then add them after line #73. When you...
That's a lot of nesting and without spacing. You probably forgot to put a curly bracket somewhere.
bloodless2010 You should have asked for more information, or even tried it on a backup. I'm not the one who needs it - it's you. Silence would not...
Datdenkikniet Then the ArrayList would store only what it needs, so it would be easier to remove, or check if it contains something.
Datdenkikniet How does it return it? Do you use .contains() method? If yes, then you could do the same as that, just change it to remove().
//You add a ticket tickets.add("\n"+ p.getName()+":"+ message); //You remove a ticket: tickets.remove("§e"+target.getName()+":"); How would...
This snippet of code doesn't say a lot. I think we would need to see how the ticket gets added.
Separate names with a comma.