What is the best way to force all asynchronous tasks to complete before plugin is disabled? Should I call BukkitScheduler.getPendingTasks() in a...
If you are looking for interesting shop plugin, you should try AShops. It's more compact than other plugins, because you can sell many different...
HDfunctions Okay, thanks!
HDfunctions, I know you that started this thread in January, but if you're still interested in shop plugins, I would recommend you mine. It has...
Comphenix, I'm trying to run some asynchronous computations early, so they don't block for long when I call get() in the main thread. I also store...
Comphenix, thank You. I didn't know the BukkitSchedulder works that way. Oh, and there's a note to callSynchMethod(), that get() shouldn't be...
I don't need to check if it's done. I can wait for it to complete. And as You can see it simply returns a string, so it shouldn't block so long.
Callable<String> task = new Callable<String>() { @Override public String call() { return "okay"; } }; FutureTask<String> ft =...
Here's the fixed code: @EventHandler public void onSpeak(AsyncPlayerChatEvent e) { Player p = e.getPlayer(); String d =...
Won't it create a 10 secs lag? Shouldn't it be scheduled as a task?
Lol. You didn't define main field, so You can't set its value in a constructor. When You do this, You can call getConfig() on that field. And...
You can use a set if You want to store only players' names.
... Before You access an index, check if Your array is long enough. You split a string into an array and You assume its length, but You don't know...
I'm not sure if it is possible to display different inventories for one chest to different players. Maybe You should try this with Ender Chests.
Some slots of Your inventory are empty.
Isn't it easier to simply store a map from ItemStack.serialize() in a database as a BLOB type?
Sorry, but I already told You what should You do. Check some tutorials about arrays, so You can understand how they work.
You have to check if a length of Your array equals n, before You check its value on n-1 position.
I think a length of an array, that You get after splitting a command argument, is too small, so You get ArrayIndexOutOfBoundException, because...
Separate names with a comma.