Could anyone help with this?

Discussion in 'Spigot Help' started by Dwit, Apr 3, 2020.

  1. Hey!, sorry in advance if this is the wrong thread

    So I've been trying to write a script for a very basic plugin (My first plugin)
    I've encountered 2 problems which I don't know how to fix *The two screenshots*
    It's a plugin to say hi when I do /hello
    Thanks in advance if anyone could c:

    Attached Files:

  2. For the first screenshot: when you duplicate a class, you want to store it in a variable, eg.:

    HelpCommand helpCmd = new HelpCommand(this);

    For the second screenshot: I recommend registering the commands in the Main class, eg.:

    public class Main extends JavaPlugin {
    public void onEnable() {
    this.getCommand("hello").setExecutor(new HelloCommand(this));

    Edit: I don't know how to use the code format, sorry for that