#disband
1 messages · Page 1 of 1 (latest)
have you tried debugging?
can you show me where your sending those messages in the code?
yeah
i was numbering them
if arg-1 is "disband":
if {zeniosclans::%player's uuid%} is not set:
send "{@zgprefix} &8›&7 You are not in a clan!" to player
else:
if {zeniosclans::%{zeniosclans::%player's uuid%}%::leader} is player's uuid:
broadcast "%{zeniosclans::%{zeniosclans::%player's uuid%}%::leader}% 1"
send "{@zgprefix} &8›&7 You are not the owner of the Clan!" to player
else:
broadcast "{@zgprefix} &8›&3 %player%&7 has disbanded &3%{zeniosclans::%player's uuid%}% &7Clan!"
broadcast "%{zeniosclans::%{zeniosclans::%player's uuid%}%::leader}% 2"
loop {invitedplr::%{zeniosclans::%player's uuid%}%::*}:
remove {zeniosclans::%player's uuid%} from {zeniosclansinvites::%loop-value%::*}
loop {cmembers::%{zeniosclans::%{zeniosclans::%player's uuid%}%::leader}%::*}:
delete {zeniosclans::%loop-value%}
remove loop-value from {cmembers::%player's uuid%::*}
delete {zeniosclans::%{zeniosclans::%player's uuid%}%::leader}
broadcast "%{zeniosclans::%{zeniosclans::%player's uuid%}%::leader}% 3"
remove player from {cmembers::%player's uuid%::*}
broadcast "%{cmembers::%player's uuid%::*}% 4"
remove the player from {cmembers::%{zeniosclans::%{zeniosclans::%player's uuid%}%::leader}%::*}
broadcast "%{cmembers::%{zeniosclans::%{zeniosclans::%player's uuid%}%::leader}%::*}% 5"
ohh
i knoww
why
its because i used ``` if {zeniosclans::%{zeniosclans::%player's uuid%}%::leader} is player's uuid:
instead of
if {zeniosclans::%{zeniosclans::%player's uuid%}%::leader} is not player's uuid:
🎉
but its weird it says im not the leader of the clan even tho it debugged as my user
i used /clan create meow first
the /clan disband it broadcasted my name and then it said im not the owner of the clan
even tho its in the same line
if {zeniosclans::%{zeniosclans::%player's uuid%}%::leader} is not player's uuid:
broadcast "%{zeniosclans::%{zeniosclans::%player's uuid%}%::leader}%"
send "{@zgprefix} &8›&7 You are not the owner of the Clan!" to player
else:
seems like you set the variable to the name (because that's what is being broadcasted), but you are checking for the UUID
so it should set the leader to his uuid not by name
so i should do instead of ``` set {zeniosclans::%{zeniosclans::%player's uuid%}%::leader} to the player
to
set {zeniosclans::%{zeniosclans::%player's uuid%}%::leader} to the uuid of player