Exactly, so if the async runnables run at different orders, the sequence of your logs will be compromised bigtime. Hence my suggestion to save the...
To keep a neat other in SQL you can get the timestamp in the beginning of the AsyncChat event, forwarding it to the other pieces of code.
Welcome to the asynchronous events :D There are some ways to try and avoid that tho, like adding the texts to a sequential list and having the...
Not faster but it runs after all other event levels, so in the MONITOR you would have the event's final cancel state... Not sure if I got this...
I guess. Worth a test now. Maybe you'll prefer to use this handler instead: @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void signUpdater(Location bLocation) { World w = bLocation.getWorld(); Block b = w.getBlockAt(bLocation);...
Ah well, are you typing [Test] on the first or on the second line? a[1] refers to the second if I'm not wrong... only noticed that now.
It is working. The problem here is that you're calling signUpdate from inside the event. When you place a sign in-game it actually places the...
event.setLine(1, "isoccerplayer");
A good and simple example of how to call the synch thread can be found here: http://forums.bukkit.org/goto/post?id=1263969#post-1263969
Basically it depends on the frequency that event is called, and whether your event calls heavy blocks of code like writing to a file or storing to...
Well, even before the advent of AsynchPlayerChatEvent your listener caused a small lag for each chat line sent by a player. If both File and SQL...
What's causing the exception? Are you casting /tp as an in-game player or on the console? Can you paste the error stack here? "Internal error" is...
Hey there! It's hard to tell for sure what the problem is since no source was provided. I can suppose what's wrong and raise some questions for...
Nice and simple approach, Hidendra. // It is! Replace the char we are at now with the escape sequence...
Not only that sign is getting bugged often. Most Self-triggered IC's are and I haven't found out why. Since the plugin has stopped from being...
Hey mates, thanks for the replies! @ItsHarry: Some improper actions, like Sword against a Block (not against a living creature), apply 2 damage...
Hello! I'm writing a plugin that requires to know what's the damage value on the tool/weapon in hand after it gets damaged by its use. Searched...
Just a note... If you're using the Multiverse plugin, you can edit the config.yml file and set enforcegamemodes: false, that does the trick: game...
Separate names with a comma.