Hello
I want to make the script detect the number from the player's Permission config. From this code
So I don't want to have to type 999 "if player has permission "inventoryweight.maxweight.{integer}"
I want to make the script detect the number from the player's Permission config. From this code
Code:
if player has permission "inventoryweight.maxweight.150":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.150"
if player has permission "inventoryweight.maxweight.200":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.200"
if player has permission "inventoryweight.maxweight.250":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.250"
if player has permission "inventoryweight.maxweight.300":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.300"
if player has permission "inventoryweight.maxweight.350":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.350"
if player has permission "inventoryweight.maxweight.400":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.400"
if player has permission "inventoryweight.maxweight.450":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.450"
if player has permission "inventoryweight.maxweight.500":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.500"
if player has permission "inventoryweight.maxweight.550":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.550"
if player has permission "inventoryweight.maxweight.600":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.600"
if player has permission "inventoryweight.maxweight.650":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.650"
if player has permission "inventoryweight.maxweight.700":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.700"
if player has permission "inventoryweight.maxweight.750":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.750"
if player has permission "inventoryweight.maxweight.800":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.800"
if player has permission "inventoryweight.maxweight.850":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.850"
if player has permission "inventoryweight.maxweight.900":
execute console command "/lp user %arg-1% permission unset inventoryweight.maxweight.900"
execute console command "/lp user %arg-1% permission set inventoryweight.maxweight.%{wl.%player%}%"
So I don't want to have to type 999 "if player has permission "inventoryweight.maxweight.{integer}"