It says in my code that it is deprecated. Will it still work and if not, what should i use instead
Not sure anymore if the problem is this function. My other function do the same thing Edit: nevermind
eol123 Player player = Bukkit.getOnlinePlayers()[new Random().nextInt(Bukkit.getOnlinePlayers().length)];
WauloK @RunningStudios Yeah, Thats whats happening. The wording was strange :eek:
My random teleport function doesn't work. It makes the player freeze and unable to interact, then it kicks them and wont let them join. Can anyone...
tommy210 It worked, thanks
Whenever i try to use factions money, it gives me an error saying "Faction economy features are disabled in the default universe". I have...
You must register the listener. Also put the 2nd if inside the first
No there isn't :(
try { Integer.parseInt(args[1]); //number } catch(NumberFormatException e) { //not number }
Try making basic on-command plugins that utilize things you have learned to see their real life applications. Then move on to listeners and...
AgentJayCraft Sure
AgentJayCraft Looks good ;). I tested it and no errors in the code
AgentJayCraft Make sure you import if available. Also, try with nothing in the onEnable but...
Yes, make sure Bukkit.getServer().getPluginManager().registerEvents(this, this); is in the onEnable
AgentJayCraft Thats good. the public void onDisable is unnecessary since nothings in it
AgentJayCraft Yes. Also, make sure that PoP is the name of the java file
AgentJayCraft Get rid of the PoPListener class since all your code is in the main class
AgentJayCraft Please use the code tags when outputting code Can you also post the error? It would speed things up
Try this: public class PoP extends JavaPlugin implements Listener put the code from the listener class in this class also change the yml main to...
Separate names with a comma.