This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/bukkit/ScriptCraft/src/net/walterhiggins/scriptcraft/ScriptCraft.java~

23 lines
774 B
Java

package net.walterhiggins.scriptcraft;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.command.*;
public class ScriptCraft extends JavaPlugin
{
@Override
public void onEnable(){
getLogger().info("ScriptCraft.onEnable has been invoked!");
}
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
{
if(cmd.getName().equalsIgnoreCase("js")){
// If the player typed /basic then do the following...
// doSomething
this.getLogger().info("hellobukkit command");
return true;
} //If this has happened the function will return true.
// If this hasn't happened the a value of false will be returned.
return false;
}
}