Skript Version (do not put latest): Skript bensku-2.5-alpha3
Skript Author: Bensku
Minecraft Version: 1.15.2 Paper
---
Full Code:
There are no error codes, it just doesnt seem to work. i cant identify what exactly is wrong...
Skript Author: Bensku
Minecraft Version: 1.15.2 Paper
---
Full Code:
Code:
command /regionflags <text> <text> :
permission: regionflags.use
trigger:
if arg 1 is "pvp":
set {_region} to "%region at player%"
set {_sections::*} to {_region} split at " "
if player is member of region at player:
if arg 2 is "on":
execute console command "/rg flag %{_sections::1}% pvp -w Mattupolis allow"
execute console command "/eco take %player% 1000"
message "&0[&3Property&0]&a PVP is now ON"
else if arg 2 is "off":
execute console command "/rg flag %{_sections::1}% pvp -w Mattupolis deny"
execute console command "/eco take %player% 1000"
message "&0[&3Property&0]&c PVP is now OFF"
else:
message "&cYou are not standing in any owned region!"
There are no error codes, it just doesnt seem to work. i cant identify what exactly is wrong...