XP-command
XP-command
Why XP-Command
At the moment Expirience isn't that usefull. You get levels and you can use it to enchant. But what if it was possible to give your visitors the ability to use their collected exp to make the console execute any command for that player. Well , now you can!
How does it work?
You start by creating a new command. Let's say that your server has essentials installed. You want to make it possible so players can buy FLY for themself. This is how you do:
type /xpcommand create flying fly %p on
This is simply the command that you should typ in the console in order to make players fly. the %p is a variable that is a placeholder for the playername.
After you created the command, get yourself a sign and place it wherever you want.
Sign setup:
Example:
Now your sign is done and so is your (shop). People can now right click on the sign to execute the command. If they don't got enough exp , the command won't be executed.
Permissions
Commands
Command | Function | Permission |
---|---|---|
/xpcommand create <name> [console command] | Create a new command in the config | xpcommand.create |
/xpcommand remove <name> | remove command from config | xpcommand.remove |
/xpcommand reload | reload the config | xpcommand.reload |
Other
Permission | Description |
---|---|
xpcommand.sign.create | allows the player to create signs |
xpcommand.sign.use | allows the player to use the sign |
xpcommand.sign.break | allows the player to destroy the sign |
Installation
- Place the jar in your plugins folder
- Restart the server
- Done! Enjoy!
.