October 2014
Beginner to intermediate
285 pages
6h 24m
English
| 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: |
| ② ... | |
Read now
Unlock full access