hey im trying to make a friend system but i cant figure out how to
- make the name not yellow and to follow the prefix's color
heres the code:
- make the name not yellow and to follow the prefix's color
heres the code:
Code:
else if arg-1 is "add":
if arg-2 is set:
set {arg2player} to arg-2 parsed as offline player
if {arg2player} has played before:
send "&9----------------------------------------------------"
send "&eYou sent a friend request to %{arg2player}%&e! They have 5 minutes to accept it!"
send "&9----------------------------------------------------"
if {arg2player} is online:
send "&9&m----------------------------------------------------" to {arg2player}
send "&eFriend request from %player's prefix%%player's displayname%" to {arg2player}
send "&a&l[ACCEPT] &8- &c&l[DENY] &8- &7&l[IGNORE]" to {arg2player}
send "&9&m----------------------------------------------------" to {arg2player}
wait 5 minutes
send "&9----------------------------------------------------"
send "&eThe friend request to %{arg2player}%&e has expired."
send "&9----------------------------------------------------"
else:
send "&cNo player found with the name %arg-2%&c!"
else:
send "&9----------------------------------------------------"
send "&cInvalid Usage! Valid usage: /friend add Player"
send "&9----------------------------------------------------"
Last edited: