Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {yoyo} = 0
- {pvp} = 0
- command /yoyo [<text>]:
- permission: skript.op
- trigger:
- if arg-1 is "on" or "enable" or "start":
- set {yoyo} to 1
- Broadcast "<gold><b>YoYo has begun!"
- execute console command "/scoreboard objectives add PVP dummy"
- execute console command "/scoreboard objectives setdisplay sidebar PVP"
- if {pvp} is 1:
- execute console command "/scoreboard players set Status PVP 1"
- else:
- execute console command "/scoreboard players set Status PVP 0"
- else if arg-1 is "off" or "disable" or "stop":
- set {yoyo} to 0
- Broadcast "<gold><b>YoYo has stopped!"
- execute console command "/scoreboard objectives remove PVP"
- else:
- message "<gold><b>Invalid syntax."
- every second:
- {yoyo} is 1
- if {pvp} is 0:
- chance of 4%:
- set {pvp} to 1
- execute console command "/scoreboard players set Status PVP 1"
- execute console command "/pvp global on"
- else if {pvp} is 1:
- chance of 4%:
- set {pvp} to 0
- execute console command "/scoreboard players set Status PVP 0"
- execute console command "/pvp global off"
Advertisement
Add Comment
Please, Sign In to add comment