Advertisement
faubiguy

Giveplot Skript

Mar 4th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. command /giveplot <offline player> <money=0>:
  2. description: Gives ownership of the plot you are standing in to the specified player
  3. usage: /giveplot <username> [price]
  4. permission: griefprevention.giveplot
  5. executable by: players
  6. trigger:
  7. arg 1's balance is less than arg 2
  8. send "<red>The player doesn't have enough money!" to the player
  9. arg 1 is online
  10. send "You don't have enough money! The plot costs %arg 2%."
  11. stop
  12. player doesn't have the permission "griefprevention.adminclaims"
  13. execute console command "/manuaddp %player% griefprevention.adminclaims"
  14. set {_noperms} to true
  15. execute player command "/trust %arg 1%"
  16. execute player command "/permissiontrust %arg 1%"
  17. remove arg 2 from arg 1's balance
  18. {_noperms} = true
  19. execute console command "/manudelp %player% griefprevention.adminclaims"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement