October 2014
Beginner to intermediate
285 pages
6h 24m
English
We’re going to create a brand-new plugin called SkyCmd. In it, we’ll create a command named sky that will teleport all creatures (not players) 50 blocks up into the air. Very handy at night with skeletons and creepers about.
Here’s the whole source file to the plugin:
| SkyCmd/src/skycmd/SkyCmd.java | |
| | package skycmd; |
| | 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 net.canarymod.api.world.position.Location; |
| | import net.canarymod.api.entity.living.EntityLiving; |
| | import java.util.List; |
| | import com.pragprog.ahmine.ez.EZPlugin; ... |
Read now
Unlock full access