Sudo command

Discussion in 'Plugin Development' started by FreakyPear5, Mar 13, 2019.

  1. Offline


    Hi everyone!

    I need to create a Sudo plugin in MC 1.12.2. However as I am relatively new to Java coding I have absolutely no idea on how to go about getting someone else to run a command. Ideally I want them to be able to run the command even if they do not have permission.

    Any help would be greatly appreciated!


  2. Offline


    @FreakyPear5 You can use this:
    1. getServer().dispatchCommand(CommandSender sender, String command);
  3. Offline


    To skip permission, run it from console by making your sender getServer().getConsoleSender().

    Or run it from them, but give them the permission and take it away after.

Share This Page