I'm developing a new plugin, and i need to set storm in the world. But the function
// marcador de posición de código public class main1 extends JavaPlugin{ @Override public void onEnable(){ System.out.println("cargao correctamente"); } @Override public void onDisable(){ System.out.println("descargao correctly"); } @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase("llueve")) { World mundo = sender.getServer().getWorld("world"); mundo.setStorm(true); mundo.setWeatherDuration(15*20); sender.sendMessage("llueve por 15 minutes"); } return false; } }
This is the code that plugin executes...., the name of the world is world.... by default... but setStorm seems doesnt work....