code_language.skript:
command /gang [<text>] [<type>]:
trigger:
if arg-1 is not set:
#Help Section#
send "/gang new : &7Creates a gang"
send "/gang invite : &7Invites player's to gang"
send "/gang accept : &7Accepts gang invite"
send "/gang deny : &7Denies gang invite"
send "/gang leave : &7Leaves current gang"
send "/gang info : &7Sends info on gang"
send "/gang desc : &7Sets a description of the gang"
#Create new Gang#
else if arg-1 is "new":
if arg-2 is set:
set {gang.%player's uuid%} to arg-2
set {gangprefix.%player's uuid%} to "<yellow>%{gang.%player's uuid%}%<reset> "
send "&7[&eGangManager&7]&r You have created a gang named %arg-2%"
else:
send "&7[&eGangManager&7]&r Please set a name of the gang!"
#Invite to Gang#
else if arg-1 is "invite":
if arg-2 is a player:
set {gangi.%arg-2%} to "Invited"
set {gangg.%arg-2%} to "%{gangprefix.%command sender's uuid%}%"
send "&7[&eGangManager&7]&r You have been invited to %{gangprefix.%command sender's uuid%}%by %command sender%" to arg-2
send "&7[&eGangManager&7]&r Successfully invited %arg-2% to %{gangprefix.%command sender's uuid%}%"
else:
send "&7[&eGangManager&7]&r Please set the player you want to invite!"
#Accept invite#
else if arg-1 is "accept":
if {gangi.%player%} is "Invited":
set {gangi.%player%} to 0
set {gangprefix.%player's uuid%} to "%{gangg.%arg-2%}%"
Code:
send "&7[&eGangManager&7]&r You have been invited to %{gangprefix.%command sender's uuid%}%by %command sender%" to arg-2