True, I just typed this up real quick.
I won't let the man put me down with their taxes and government pensions for government workers. Fight the establishment!!!!! Haha, besides...
[syntax=java] String lastLine = sign.getText(4); //You will need a sign reference variable to the Sign you are getting int lastLineNum =...
Seems like one of the registered entities threw an exception from what I can tell
True, less memory usage, but for the sake of teaching it works.
Vector dir = player.getLocation().getDirection.multiply(x); //x is a double, float, integer, or whatever that will push the player forward, how...
@EventHandler(priority = EventPriority.NORMAL) public void onCreeperOrFireballExplodes(EntityExplodeEvent event) { Entity Exploded =...
Java isn't just syntax. I could learn syntax in a day, just like I could learn the spanish alphabet in a day. But that doesn't mean I can speak...
pm.registerEvents(playerListener, this); Don't forget to do everything else in the actual listener class, like adding the annotation befor your...
if (event.getEntity() instanceof Player) { //Code } Player player = (Player) event.getEntity(); if (event instanceof...
Woops, misread, I was in a rush. But you want something that strikes lightning 20 times every .15 seconds? Something like this should work, I am...
You do realize that when you sleep a thread, you are sleeping the main thread which means the server doesn't run? Like, for example, when you type...
Well, none of my plugins use datastorages, even my private ones. I am making a plugin that will use one, but datastorage is last on my list cause...
That doesn't do anything actually. What you want to do is just load the config again. That should load the last save of it.
If you are specifically talking about the classes, Configurations is an interface that FileConfigurations implements. Meaning alone, the...
Separate names with a comma.