Advertisement
Ziad1569845

pvp toggle on/off skript required worldguard

May 2nd, 2022 (edited)
1,974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.45 KB | None | 0 0
  1. command /pvptoggle:
  2.     permission: op
  3.     permission message: &cHey! You Don't Have Permission to that command
  4.     trigger:
  5.         if {server.pvp} is set:
  6.             delete {server.pvp}
  7.             console command "/rg flag __global__ pvp deny"
  8.             send "&cPVP! Disabled" to player
  9.         else:
  10.             set {server.pvp} to true
  11.             console command "/rg flag __global__ pvp allow"
  12.             send "&aPVP! Enabled" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement