Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&eButter Fingers&8]&r
- command /butterfingers [<text>] [<player>]:
- trigger:
- if arg-1 is "on" or "enable":
- command sender has permission "skript.butterfingers":
- if {ButterFingers.Enabled} is not set:
- set {ButterFingers.Enabled} to true
- broadcast "{@P} Enabled by &9%command sender%!"
- else:
- message "{@P} Already enabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P} You don't have permission for that!" to the command sender
- else if arg-1 is "off" or "disable":
- command sender has permission "skript.butterfingers":
- if {ButterFingers.Enabled} is true:
- delete {ButterFingers.Enabled}
- broadcast "{@P} Disabled by &9%command sender%!"
- else:
- message "{@P} Already disabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P} You don't have permission for that!" to the command sender
- else if arg-1 is "toggle" or "switch":
- if {ButterFingers.Enabled} is true:
- command sender command "/butterfingers off"
- stop trigger
- if {ButterFingers.Enabled} is not set:
- command sender command "/butterfingers on"
- stop trigger
- else if arg-1 is "init":
- set {_player} to arg-2
- set {_loc} to location of {_player}
- loop items in {_player}'s inventory:
- add loop-item to {_drop.list.%{_player}%::*}
- set {_dropped.item} to a random element out of {_drop.list.%{_player}%::*}
- wait 1 second
- remove {_dropped.item} from {_player}'s inventory
- drop {_dropped.item} at {_loc}
- execute console command "/playsound random.pop %{_player}% ~ ~ ~ 1 1 1"
- else if arg-1 is "help" or "?" or "question" or "info" or "information":
- message "" to the command sender
- if command sender has permission "skript.butterfingers":
- message "{@P} /butterfingers &9on/off/toggle" to the command sender
- message "{@P} Scenario by: &9/u/Fleft"
- if command sender is "Fleft":
- message "{@P} Skript: &9You!" to the command sender
- else:
- message "{@P} Skript: &9Fleft" to the command sender
- message "" to the command sender
- message "{@P} In Butter Fingers, every second there is" to the command sender
- message "{@P} a 1%% chance one item from your inventory" to the command sender
- message "{@P} will be dropped." to the command sender
- message "" to the command sender
- else if arg-1 is not set:
- command sender command "/butterfingers help"
- else:
- command sender command "/butterfingers help"
- every second:
- {ButterFingers.Enabled} is true:
- loop all players:
- chance of 1%:
- execute console command "/butterfingers init %loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement