Class CommandReloader

java.lang.Object
ch.njol.skript.bukkitutil.CommandReloader

public class CommandReloader extends Object
Utilizes CraftServer with reflection to re-send commands to clients.
  • Constructor Details

    • CommandReloader

      public CommandReloader()
  • Method Details

    • syncCommands

      public static boolean syncCommands(org.bukkit.Server server)
      Attempts to register Bukkit commands to Brigadier and synchronize them to all clients. This may fail for any reason or no reason at all!
      Parameters:
      server - Server to use.
      Returns:
      Whether it is likely that we succeeded or not.