Advertisement
Guest User

GodsDeads / PirateCraft OnDuty Script for MyCommand

a guest
Jan 17th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. 'busy2':
  2.   command: /duty
  3.   type: RUN_COMMAND
  4.   runcmd:
  5.   - $Script$%if%%PlayerData%togglebusy!=0 #Check if the PlayerVariable "togglebusy≠0". If true it runs the commands under it.
  6.   - '/manudelv $player prefix'
  7.   - $Script$%PlayerData%togglebusy=1 #sets "togglebusy" to 1
  8.   - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
  9.   - $Script$%else% #if not do these commands
  10.   - '/manusetp $player prefix &4[Busy] &c'
  11.   - $Script$%PlayerData%togglebusy=0 #sets "togglebusy" to 0
  12.   error-message: '&c[Duty]&6 Sorry Admiral Something went wrong.'
  13.   success-message: '&c[Duty]&a ON DUTY SET.'
  14.   permission-node: essentials.tp.others
  15.   permission-error: '&c[The Boss]&6 What are you doing, you filthy scrubber? Do you want to be banned?'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement