Advertisement
fleft17

Untitled

Aug 20th, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[&eButter Fingers&8]&r
  4.  
  5.  
  6. command /butterfingers [<text>] [<player>]:
  7. trigger:
  8. if arg-1 is "on" or "enable":
  9. command sender has permission "skript.butterfingers":
  10. if {ButterFingers.Enabled} is not set:
  11. set {ButterFingers.Enabled} to true
  12. broadcast "{@P} Enabled by &9%command sender%!"
  13. else:
  14. message "{@P} Already enabled!" to the command sender
  15. stop trigger
  16. else:
  17. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  18. message "{@P} You don't have permission for that!" to the command sender
  19.  
  20. else if arg-1 is "off" or "disable":
  21. command sender has permission "skript.butterfingers":
  22. if {ButterFingers.Enabled} is true:
  23. delete {ButterFingers.Enabled}
  24. broadcast "{@P} Disabled by &9%command sender%!"
  25. else:
  26. message "{@P} Already disabled!" to the command sender
  27. stop trigger
  28. else:
  29. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  30. message "{@P} You don't have permission for that!" to the command sender
  31.  
  32.  
  33. else if arg-1 is "toggle" or "switch":
  34. if {ButterFingers.Enabled} is true:
  35. command sender command "/butterfingers off"
  36. stop trigger
  37. if {ButterFingers.Enabled} is not set:
  38. command sender command "/butterfingers on"
  39. stop trigger
  40.  
  41.  
  42. else if arg-1 is "init":
  43. set {_player} to arg-2
  44. set {_loc} to location of {_player}
  45. loop items in {_player}'s inventory:
  46. add loop-item to {_drop.list.%{_player}%::*}
  47. set {_dropped.item} to a random element out of {_drop.list.%{_player}%::*}
  48. wait 1 second
  49. remove {_dropped.item} from {_player}'s inventory
  50. drop {_dropped.item} at {_loc}
  51. execute console command "/playsound random.pop %{_player}% ~ ~ ~ 1 1 1"
  52.  
  53. else if arg-1 is "help" or "?" or "question" or "info" or "information":
  54. message "" to the command sender
  55. if command sender has permission "skript.butterfingers":
  56. message "{@P} /butterfingers &9on/off/toggle" to the command sender
  57. message "{@P} Scenario by: &9/u/Fleft"
  58. if command sender is "Fleft":
  59. message "{@P} Skript: &9You!" to the command sender
  60. else:
  61. message "{@P} Skript: &9Fleft" to the command sender
  62. message "" to the command sender
  63. message "{@P} In Butter Fingers, every second there is" to the command sender
  64. message "{@P} a 1%% chance one item from your inventory" to the command sender
  65. message "{@P} will be dropped." to the command sender
  66. message "" to the command sender
  67.  
  68. else if arg-1 is not set:
  69. command sender command "/butterfingers help"
  70. else:
  71. command sender command "/butterfingers help"
  72.  
  73.  
  74. every second:
  75. {ButterFingers.Enabled} is true:
  76. loop all players:
  77. chance of 1%:
  78. execute console command "/butterfingers init %loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement