i would do it with only 2 sponge blocks, check on the playermove event if a sponge is under the player, and then get the next sponge block...
that wont work, you cant store more data in a block this way. you have to work on a wrapper which stores build block x,y,z coordinates and your...
Then you dont actually need a Runnable, you could set the lenght of the potion effect to 5 seconds, then it is gone after 5 seconds.
Try: final PotionEffectType effect = PotionEffectType.WITHER; and replace every WITHER with effect
it is cleaner right, but do the same except that my code will do an infinite loop if there are 12 players and your code just throws an exception....
// assuming he dont have more players than spawns , theres no infinite loop :P
it does not work if you restart your server in this seven days. i would create a database with unix timestamps. if you start your server you...
you have to use the shedular for delaying something.... if you use a wait like method this way it causes your server to lag for 5 seconds
Maybe you could do that with a SocketServer (an external programm) in between, so your world could be on 2 different servers.
public void onEnable(){ logger.info("pvp1 has been enabled"); getServer.getPluginManager().registerEvents(new myplayerlistener(), this); }
I thought people post their problems AFTER googling it :P but anyway he should give his Plugin a name, just to be sure. maybe you dont register...
you can get a plugin via its name, getPluginManager().getPlugin(pluginname) or something like that, if he gave one or more of his Plugins the same...
first, you should give it a real unique name in the plugin.yml
that people dont have knowlegde of java or a similar programming language(syntax etc.) is the reason of approx. 50% of the problems posted in this...
stackoverflow with 12 players i guess :P
Separate names with a comma.