23 lines
774 B
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;
|
|
}
|
|
}
|