so i made a dupe server but you can only do 50 dupes
command dupe:
trigger:
if {dupecount::%player%} >= 50:
send "&cYou cant dupe anymore use /limitdupe!"
console command "pex user %player% add limit.dupe" #This is just another dupe if you want it say
else if {dupecount::%player%} < 50:
if player is holding barrier:
send "You cant dupe a barrier lol" to player
else if player is not holding barrier:
give player player's tool
add 1 to {dupecount::%player%}
on join:
if {dupecount::%player%} is not set:
set {dupecount::%player%} to 0 #this has to be in to check if the dupe count is not set and it will set it to 0 if u dont put it, it wont work!