Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sharigan [<text>]:
- trigger:
- if player has permission "sharigan.use":
- if {permsharigan.%player%} is not set:
- set {permsharigan.%player%} to true
- set {_old helmet} to helmet of player # Store old helmet
- make console execute command "suffix player:%player% &8Assault&6Mode"
- make player execute command "/shariganunsafex"
- message " &f&k------ &7&lSharigan Activated 300s! &f&k------"
- execute console command "effect give %player% minecraft:speed 1200 3"
- wait 300 seconds
- set item data of player's helmet to "minecraft:diamond_shovel:430"
- if {permsharigan.%player%} is true:
- make player execute command "/shariganoff"
- stop
- stop
- if {permsharigan.%player%} is true:
- delete {permsharigan.%player%}
- execute console command "effect give %player% minecraft:speed 1 4"
- make player execute command "/shariganoffunsafex"
- message " &f&k------ &7&lSharigan Deactivated &f&k------"
- stop
- else:
- message " &7>> &cYou have not awakened the Sharigan!"
- on quit:
- if {permsharigan.%player%} is true:
- delete {permsharigan.%player%}
- execute console command "effect give %player% minecraft:speed 1 4"
- make player execute command "/shariganoffunsafex"
- message " &f&k------ &7&lSharigan Deactivated &f&k------"
- stop
- else:
- delete {permsharigan.%player%}
- on join:
- wait 5 seconds
- if {permsharigan.%player%} is true:
- delete {permsharigan.%player%}
- execute console command "effect give %player% minecraft:speed 1 4"
- make player execute command "/shariganoffunsafex"
- message " &f&k------ &7&lSharigan Deactivated &f&k------"
- stop
- command /shariganoff:
- trigger:
- if {permsharigan.%player%} is true:
- delete {permsharigan.%player%}
- set helmet slot of player to {_old helmet} # Set player's cursor to old helmet, possibly air
- execute console command "effect give %player% minecraft:speed 1 4"
- make player execute command "/shariganoffunsafex"
- message " &f&k------ &7&lSharigan Deactivated &f&k------"
- stop
- else:
- message " &f&k------ &7&lSharigan is Deactivated &f&k------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement