Registering multiple commands.

Discussion in 'Plugin Development' started by Vrganj, Nov 30, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    Vrganj

    Hey, it is possible to register multiple commands, instead of using
    Code:
    this.getCommand("cmd").setExecutor(new Class());
    for each command?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Vrganj Make a variable of the class. Use that instead of calling new class every time
     
Thread Status:
Not open for further replies.

Share This Page