Plugin: Simple

Simple/src/simple/Simple.java
 
package​ simple;
 
import​ net.canarymod.plugin.Plugin;
 
import​ net.canarymod.logger.Logman;
 
import​ net.canarymod.Canary;
 
import​ net.canarymod.commandsys.*;
 
import​ net.canarymod.chat.MessageReceiver;
 
import​ net.canarymod.api.entity.living.humanoid.Player;
​ 
import​ com.pragprog.ahmine.ez.EZPlugin;
 
 
public​ ​class​ Simple ​extends​ EZPlugin {
 
 
@Command(aliases = { ​"simple"​ },
 
description = ​"Displays simple variable assignments"​,
 
permissions = { ​""​ },
 
toolTip = ​"/simple"​)
 
public​ ​void​ simpleCommand(MessageReceiver caller, ​String​​[]​ parameters) {
 
if​ (caller ​instanceof​ Player) {
 
Player me = (Player)caller;
 
// Put your code after this line:
​  ...

Get Learn to Program with Minecraft Plugins, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.