So I'm trying to convert this skript from names to UUID:
I'm unsure how I should convert it, for example theres a line like so:
Should I convert it:
or
?
Thanks
Code:
options:
#CommandInfo
Command: /party
permission: admin.switch
#Lang
PartyMaxPlayers: 10
PartyListSpacer1: &7&l----&aParty&7&l----
PartyListSpacer2: &7&l------------
PartyListFormat: &c%{_Number}%&7. &d%{_Player}%
PartyUsage: &c%{_Command}% (%arg 1%) [(player)]
PartyUsageNothingSet: &c%{_Command}% (create, disband, invite, accept, leave) [(player)]
PartyCreate: &cYou created a party.
PartyDisband: &cYou disbanded your party.
PartyJoin: &aYou joined a party.
PartyJoinNotInvited: &cYou have not been invited to this party.
PartyLeave: &cYou left your party.
PartyInvite: &aYou were invited to a party by %{_Inviter}%
PartyInviteTooltip: &7Click to &8[&aAccept&8]
PartyInviteExceedsPartyLimit: &cYou already have %{_MaxNumber}% players in your party.
PartyInvitedPlayer: &aYou have invited %{_Invited}%
PartyKick: &cYou were kicked from your party.
PartyAlreadyInParty: &cYou are already in a party.
PartyNotOwner: &cYou are not the owner of this party.
PartyNotInParty: &cYou are not in a party.
PartyDisbandKick: &cYou were kicked from the party due to: &aDisband
PartyPlayerLeftYourParty: &c%{_Player}% left your party.
PartyPlayerJoinedYourParty: &a%{_Player}% joined your party.
PartyKicked: &cYou kicked %{_Player}%.
PartyPlayerNotInYourParty: &cThis player is not in your party.
command {@Command} [<text>] [<offline player>]:
trigger:
if arg 1 is "create":
if {Ownerofparty.%player%} is set:
message "&cYou are already in a party." to player
else:
set {Ownerofparty.%player%} to player
add player to {party.%player%.list::*}
message "{@PartyCreate}" to player
else if arg 1 is "disband":
if {Ownerofparty.%player%} is player:
loop {party.%{Ownerofparty.%player%}%.list::*}:
add 1 to {_Number}
delete {Ownerofparty.%loop-variable%}
message "{@PartyDisbandKick}" to loop-variable
delete {Ownerofparty.%player%}
clear {party.%player%.list::*}
message "{@PartyDisband}" to player
else:
message "{@PartyNotOwner}" to player
else if arg 1 is "invite":
if arg 2 is set:
if {Ownerofparty.%player%} is set:
if {Ownerofparty.%player%} is player:
if (size of {party.%player%.list::*}) <= ({@PartyMaxPlayers} - 1):
set {_Inviter} to player
add player to {invites.%arg 2%.list::*}
set {_Command} to "{@Command}"
set {_Invited} to arg 2
message "{@PartyInvitedPlayer}" to player
send "{@PartyInvite} tooltip {@PartyInviteTooltip} run %{_Command}% accept %player%" to arg 2
wait 10 seconds
remove player from {invites.%arg 2%.list::*}
else:
set {_MaxNumbers} to "{@PartyMaxPlayers}"
message "{@PartyInviteExceedsPartyLimit}" to player
else:
message "{@PartyNotOwner}" to player
else:
message "{@PartyNotInParty}" to player
else:
set {_Command} to "{@Command}"
message "{@PartyUsage}" to player
else if arg 1 is "accept":
if arg 2 is set:
if {invites.%player%.list::*} contains arg 2:
if {Ownerofparty.%player%} is not set:
add player to {party.%arg 2%.list::*}
set {Ownerofparty.%player%} to arg 2
message "{@PartyJoin}" to player
loop {party.%{Ownerofparty.%player%}%.list::*}:
add 1 to {_Number}
set {_Player} to player
message "{@PartyPlayerJoinedYourParty}" to loop-variable
else:
message "{@PartyAlreadyInParty}" to player
else:
message "{@PartyJoinNotInvited}" to player
else:
set {_Command} to "{@Command}"
message "{@PartyUsage}" to player
else if arg 1 is "leave":
if {Ownerofparty.%player%} is set:
if {Ownerofparty.%player%} is player:
make player execute command "{@Command} disband"
else:
loop {party.%{Ownerofparty.%player%}%.list::*}:
if loop-variable is player:
message "{@PartyLeave}" to player
else:
set {_Player} to player
message "{@PartyPlayerLeftYourParty}" to loop-variable
remove player from {party.%{Ownerofparty.%player%}%.list::*}
wait 1 tick
delete {Ownerofparty.%player%}
else:
message "{@PartyNotInParty}" to player
else if arg 1 is "list":
if {Ownerofparty.%player%} is set:
message "{@PartyListSpacer1}" to player
loop {party.%{Ownerofparty.%player%}%.list::*}:
add 1 to {_Number}
set {_Player} to loop-variable
message "{@PartyListFormat}" to player
message "{@PartyListSpacer2}" to player
else:
message "{@PartyNotInParty}" to player
else if arg 1 is "kick":
if arg 2 is set:
if {Ownerofparty.%player%} is set:
if {Ownerofparty.%player%} is player:
if {party.%player%.list::*} contains arg 2:
set {_Player} to arg 2
message "{@PartyKicked}" to player
message "{@PartyKick}" to arg 2
make arg 2 execute command "/party leave"
else:
message "{@PartyPlayerNotInYourParty}" to player
else:
message "{@PartyNotOwner}" to player
else:
message "{@PartyNotInParty}" to player
else:
set {_Command} to "{@Command}"
message "{@PartyUsage}" to player
else:
set {_Command} to "{@Command}"
message "{@PartyUsageNothingSet}" to player
I'm unsure how I should convert it, for example theres a line like so:
Code:
set {Ownerofparty.%player%} to player
Code:
set {Ownerofparty.%player's uuid%} to player
Code:
set {Ownerofparty.%player%} to player's uuid
Thanks