Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5701

world.setstorm() does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • Windows 10, JAVA EDITION. GTX 960M i7-6700HQ. Latest spigot server jar, clean install of server.

    • 1.15.2(latest)
    • Yes

      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.... 

       

            Unassigned Unassigned
            TheZapamundi Jesus Torres Egido
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: