Hi, I would need help to fix this command. I need him to be able to block entry into a team with more people than the others. I did this, but it doesn't work. (He doesn't tell me any errors)
Code:
command /joinitaly:
permission: ww2.selectteam
trigger:
if {russia} or {usa} or {germania} are higher than {italia}:
set {italia_lista::*} to "%player%"
add 1 to {italia}
message "{@prefix} Ora sei in Italia!" to player
if {russia},{usa} and {germania} are equal to {italia}:
set {italia_lista::*} to "%player%"
add 1 to {italia}
message "{@prefix} Ora sei in Italia!" to player
command /resetall:
permission: ww2.debug.resetall
trigger:
delete {russia_lista::*}
delete {italia_lista::*}
delete {germania_lista::*}
delete {usa_lista::*}
delete {mercenario_lista::*}
set {italia} to 0
set {russia} to 0
set {usa} to 0