About
I was given an idea from a friend about a plugin to make that allowed them to fire fireballs, TNT, and lightning from special swords that admins could use. This is the result of that idea.
Video demo by craftbukkittech
Video is of AdminSword v1.1.
Features
Upon activation by admin or privileged player, right-clicking while holding a sword will activate one of 4 different actions:
- launch a fireball
- strike lightning
- create a block of tnt
- teleport player
Admins may also toggle the ability to fly for themselves and others without giving them creative mode, and they can kill other players with a command.
As of AdminSword v1.3 partial player names are supported. You only need to type enough of a target's name for it to be unique.
Commands
/adminsword toggle - Toggles AdminSword for you or a specified target.
/adminsword type - Changes the type of AdminSword for you or someone else.
/adminsword fly - Toggles flight for you or someone else.
/adminsword kill - Kills a specified player.
/adminsword check - Checks whether you or a target has AdminSword enabled and which sword they have.
/adminsword types - List all sword types.
/adminsword help - Displays help pages.
ADMIN ONLY:
/adminsword setdefault [type] - Sets the default sword type in the configuration.
Usage:
/adminsword with no command will attempt to toggle AdminSword on yourself.
/adminsword toggle [target]
Target is optional. If no target is given then the command will be executed on self.
/adminsword type (swordtype) [target]
Swordtype is required. It can be "fireball", "lightning", "tnt", or "teleport".
Target is optional.
/adminsword fly [target]
Target is optional.
/adminsword kill (target)
Target is required.
/adminsword help [page]
Page is optional.
/adminsword types
Permissions
adminsword.* - Grants full access, including the following:
- adminsword.check - Allows you to check if you have AdminSword enabled.
- adminsword.check.other - Allows you to check if someone else has AdminSword enabled.
- adminsword.fly - Allows you to toggle flight for yourself.
- adminsword.fly.other - Allows you to toggle flight on someone else.
- adminsword.kill - Allows you to kill other non-admin players.
- adminsword.kill.force - Allows you to kill any player, admins included.
- adminsword.toggle - Allow you to toggle AdminSword for yourself.
- adminsword.toggle.other - Allows you to toggle AdminSword for others.
- adminsword.type - Allows you to change the type of your AdminSword.
- adminsword.type.other - Allows you to change the type of someone else's AdminSword.
Type permissions:
- adminsword.type.fireball - Allows you to switch to and use fireball.
- adminsword.type.lightning - Allows you to switch to and use lightning.
- adminsword.type.teleport - Allows you to switch to and use teleport.
- adminsword.type.tnt - Allows you to switch to and use tnt.
If a user has one of those permission nodes then they will be able to switch to and use the corresponding type. By default, users will only be able to use the somewhat non-destructive tools after an admin enables it for them. (lightning and teleport)
If an admin would like them to be able to use other types then they must give them access to the right permission node.
Parent nodes:
- adminsword.* - See above.
- adminsword.normal - Allows user to use all tool types. (Sword must be enabled by admin.)
- adminsword.nondestructive - Allows user to use all non-destructive tools. (Sword must be enabled by admin.)
Future Plans
I will add more types and improve the code from time to time as well as keeping it up to date.
I may also add requested features.
Source Code
Source code for this plugin is included in the jar. Feel free to fork this plugin so long as you let people know that I was the original author.