Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=====================================================#
- #CREATED BY HITURYG| YOU CAN'T REMOVE THIS LINE
- #FOR BUG REPORTS, INFORMATIONS AND ANYTHING ELSE ABOUT THIS SKRIPT PLEASE #CONTACT ME ON SKYPE: hituryboli
- #=====================================================#
- #
- on skript load:
- if folder "plugins/GangSk" doesn't exists:
- log "Gang Skript > Creating Folder..."
- create folder "plugins/GangSk"
- log "Gang Skript > GangSk's Folder created!"
- if file "plugins/GangSk/Config.yml" doesn't exists:
- log "Gang Skript > Creating Config..."
- create file "plugins/GangSk/Config.yml"
- set "opencommands" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "listcommand" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "friendlyfire" to "false" in yaml file "plugins/GangSk/Config.yml"
- set "friendlyfiremsg" to "&cYou can't attack your Gang members." in yaml file "plugins/GangSk/Config.yml"
- set "Gangchat" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "Gangchatspy" to "false" in yaml file "plugins/GangSk/Config.yml"
- set "Gangchatformat" to "&bGang &3Chat &9> &b" in yaml file "plugins/GangSk/Config.yml"
- set "Gangheadquarters" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "Gangprefix" to "&cGang &8» " in yaml file "plugins/GangSk/Config.yml"
- log "Gang Skript > GangSk's Config created!"
- if file "plugins/GangSk/AutoUpdate.yml" doesn't exists:
- create file "plugins/GangSk/AutoUpdate.yml"
- on skript start:
- set {opencommands} to single value "opencommands" get of "plugins/GangSk/Config.yml"
- set {listcommand} to single value "listcommand" get of "plugins/GangSk/Config.yml"
- set {friendlyfire} to single value "friendlyfire" get of "plugins/GangSk/Config.yml"
- set {friendlyfiremsg} to single value "friendlyfiremsg" get of "plugins/GangSk/Config.yml"
- set {Gangchat} to single value "Gangchat" get of "plugins/GangSk/Config.yml"
- set {Gangchatspy} to single value "Gangchatspy" get of "plugins/GangSk/Config.yml"
- set {Gangchatformat} to single value "Gangchatformat" get of "plugins/GangSk/Config.yml"
- set {Gangheadquarters} to single value "Gangheadquarters" get of "plugins/GangSk/Config.yml"
- set {Gangprefix} to single value "Gangprefix" get of "plugins/GangSk/Config.yml"
- log "Gang Skript > Config loaded"
- stop
- command /Gang [<text>] [<text>]:
- trigger:
- if arg-1 isn't set:
- make player execute command "/Gang help"
- if arg-1 is "help":
- send " &bGang &9Help"
- send "&7/&eGang join &6name &7- &eJoin a Gang"
- send "&7/&eGang &6leave &7- &eLeave your Gang"
- if "%{listcommand}%" is "true":
- send "&7/&eGang &6list &7- &eList your Gang members"
- send "&7/&eGang &6chat &7- &eTo enable Gang chat"
- send "&7/&eGang create &6name &7- &eCreate your Gang"
- send "&7/&eGang invite &6name &7- &eInvite a player to your Gang"
- send "&7/&eGang deinvite &6name &7- &eCancel a player's invite to your Gang"
- send "&7/&eGang kick &6name &7- &eKick a player from your Gang"
- if "%{opencommands}%" is "true":
- send "&7/&eGang &6open &7- &eAllow anyone to join your Gang without invite"
- send "&7/&eGang &6openlist &7- &eList the open Gangs"
- if "%{Gangheadquarters}%" is "true":
- send "&7/&eGang &6setheadquarters &7- &eIf you want set your Gang's &6headquarters"
- send "&7/&eGang &6headquarters &7- &eIf you want go to your Gang's &6headquarters"
- send "&7/&eGang &6deleteheadquarters &7- &eIf you want delete your Gang's &6headquarters"
- send ""
- send "&bPlugin made by &3HituryGameYT4" #YOU CAN'T REMOVE THIS LINE
- if arg-1 is "create":
- if {isinaGang::%player%} isn't set:
- if arg-2 is set:
- if {createdGang::%arg-2%} isn't set:
- set {createdGang::%arg 2%} to 1
- set {creatorGang::%arg-2%} to player
- set {isinaGang::%player%} to "%arg-2%"
- add "%player%" to {Gang::%{isinaGang::%player%}%::list::*}
- add "%arg-2%" to {Gangs::list::*}
- send "%{Gangprefix}%&eYou have created your Gang with name: '&3 %arg-2%&e'"
- else:
- send "%{Gangprefix}%&cA Gang with this (&4%arg-2%&c) name already exists."
- else:
- set {createdGang::%player%} to 1
- set {creatorGang::%player%} to "%player%"
- set {isinaGang::%player%} to "%player%"
- add "%player%" to {Gangs::list::*}
- send "%{Gangprefix}%&eYou have created your Gang with name&8: &3%player%&e"
- else:
- send "%{Gangprefix}%&cYou are currently part of the Gang &4%{isinaGang::%player%}%"
- send "%{Gangprefix}%&cTo create a Gang you must leave your current Gang with the command&8: &7/&eGang &6leave"
- if arg-1 is "open":
- "%{opencommands}%" is "true"
- if {isinaGang::%player%} is set:
- if {creatorGang::%{isinaGang::%player%}%} is "%player%":
- if {openGang::%{isinaGang::%player%}%} isn't set:
- set {openGang::%{isinaGang::%player%}%} to 1
- add {isinaGang::%player%} to {Gang::openlist::*}
- send "%{Gangprefix}%&eNow your Gang is open, anyone can join it without an invite"
- else:
- delete {openGang::%{isinaGang::%player%}%}
- remove "%{isinaGang::%player%}%" from {Gang::openlist::*}
- send "%{Gangprefix}%&eYour Gang is no longer open, other players will need an invite to join it"
- else:
- send "%{Gangprefix}%&cOnly the Gang's creator can do that"
- else:
- send "%{Gangprefix}%&cYou aren't in a Gang"
- if arg-1 is "openlist":
- "%{opencommands}%" is "true"
- send " &aOpen &3Gangs:"
- send "&6%{Gang::openlist::*}%"
- if arg-1 is "list":
- "%{listcommand}%" is "true"
- if {isinaGang::%player%} is set:
- send " &3Gang &bMembers:"
- send "&6%{Gang::%{isinaGang::%player%}%::list::*}%"
- else:
- send "%{Gangprefix}%&cYou aren't in a Gang"
- if arg-1 is "leave":
- if {isinaGang::%player%} is set:
- if {creatorGang::%{isinaGang::%player%}%} is "%player%":
- delete {createdGang::%{isinaGang::%player%}%}
- delete {creatorGang::%{isinaGang::%player%}%}
- delete {Ganginvited::%player%::%arg-2%}
- delete {openGang::%{isinaGang::%player%}%}
- remove {isinaGang::%player%} from {Gang::openlist::*}
- remove "%{isinaGang::%player%}%" from {Gangs::list::*}
- loop {Gang::%{isinaGang::%player%}%::list::*}:
- delete {isinaGang::%loop-value%}
- remove loop-value from {Gang::%{isinaGang::%player%}%::list::*}
- delete {Gang::%{isinaGang::%player%}%::list::*}
- send "%{Gangprefix}%&cSince you were the Gang's creator, the Gang was disbanded"
- remove player from {Gang::%{isinaGang::%player%}%::list::*}
- delete {isinaGang::%player%}
- send "%{Gangprefix}%&cYou have left your Gang"
- else:
- send "%{Gangprefix}%&cYou aren't in a Gang"
- stop
- if arg-1 is "invite":
- if {isinaGang::%player%} is set:
- if {creatorGang::%{isinaGang::%player%}%} is "%player%":
- if arg-2 is set:
- if {Ganginvited::%arg-2%::%{isinaGang::%player%}%} isn't set:
- if "%{isinaGang::%arg-2%}%" isn't "%{isinaGang::%player%}%":
- arg-2 isn't player
- set {Ganginvited::%arg-2%::%{isinaGang::%player%}%} to 1
- send "%{Gangprefix}%&eYou have invited &6%arg-2% &eto your Gang!"
- set {_arg2} to arg-2 parsed as player
- send "%{Gangprefix}%&6%player% &einvited you to &6%{isinaGang::%player%}% &eGang" to {_arg2}
- else:
- send "%{Gangprefix}%&4%arg-2% &cis already part of your Gang"
- else:
- send "%{Gangprefix}%&cYou already invited &4%arg-2% &cto your Gang"
- send "%{Gangprefix}%&cIf you want cancel the invite use the command&8: &7/&eGang deinvite &6%arg-2%&c"
- else:
- send "%{Gangprefix}%&cYou must specify the player that you want to invite"
- else:
- send "%{Gangprefix}%&cYou aren't the Gang's creator"
- else:
- send "%{Gangprefix}%&cYou aren't in a Gang"
- if arg-1 is "deinvite":
- if {isinaGang::%player%} is set:
- if {creatorGang::%{isinaGang::%player%}%} is "%player%":
- if arg-2 is set:
- if "%{isinaGang::%arg-2%}%" isn't "%{isinaGang::%player%}%":
- if {Ganginvited::%arg-2%::%{isinaGang::%player%}%} is set:
- arg-2 isn't player
- delete {Ganginvited::%arg-2%::%{isinaGang::%player%}%}
- send "%{Gangprefix}%&eYou have removed &6%arg-2%&e's invite to your Gang"
- set {_arg2} to arg-2 parsed as player
- send "%{Gangprefix}%&cYou are no longer invited to the &4%{isinaGang::%player%}% &cGang!" to {_arg2}
- else:
- send "%{Gangprefix}%&cYou haven't invited &4%arg-2% &cto your Gang"
- else:
- send "%{Gangprefix}%&4%arg-2% &cis already part of your Gang"
- send "%{Gangprefix}%&eIf you want to kick &6%arg-2% &efrom your Gang use the command &7/&eGang kick &6%arg-2%&e"
- else:
- send "%{Gangprefix}%&cYou must specify the player you want to deinvite"
- else:
- send "%{Gangprefix}%&cYou aren't the Gang's creator"
- else:
- send "%{Gangprefix}%&cYou aren't in a Gang"
- if arg-1 is "kick":
- arg-2 isn't player
- if {isinaGang::%player%} is set:
- if {creatorGang::%{isinaGang::%player%}%} is "%player%":
- if arg-2 is set:
- if {isinaGang::%arg-2%} is set:
- arg 2 isn't player
- delete {isinaGang::%arg-2%}
- remove arg-2 from {Gang::%{isinaGang::%player%}%::list}
- send "%{Gangprefix}%&eYou have kicked &6%arg-2% &efrom your Gang!"
- set {_arg2} to arg-2 parsed as player
- send "%{Gangprefix}%&6%player% &ekicked you from &6%{isinaGang::%player%}% &eGang" to {_arg2}
- delete {Ganginvited::%arg-2%::%{isinaGang::%player%}%}
- else:
- send "%{Gangprefix}%&4%arg-2% &cisn't part of your Gang"
- else:
- send "%{Gangprefix}%&cYou must specify the player you want to kick"
- else:
- send "%{Gangprefix}%&cYou aren't the Gang's creator"
- else:
- send "%{Gangprefix}%&cYou aren't in a Gang"
- if arg-1 is "join":
- if arg 2 is set:
- if {createdGang::%arg-2%} is 1:
- if {isinaGang::%player%} isn't set:
- if {openGang::%arg-2%} isn't set:
- if {Ganginvited::%player%::%arg-2%} is 1:
- set {isinaGang::%player%} to arg-2
- send "%{Gangprefix}%&eYou have joined the &6%{isinaGang::%player%}% &eGang"
- send "%{Gangprefix}%&6%player% &ejoined your Gang!" to {creatorGang::%{isinaGang::%player%}%}
- delete {Ganginvited::%player%::%{isinaGang::%player%}%}
- add player to {Gang::%{isinaGang::%player%}%::list::*}
- else:
- send "%{Gangprefix}%&cYou can't join this Gang without an invite"
- stop
- else:
- set {isinaGang::%player%} to arg-2
- send "%{Gangprefix}%&eYou have joined the &6%{isinaGang::%player%}% &eGang"
- send "%{Gangprefix}%&6%player% &ejoined your Gang!" to {creatorGang::%{isinaGang::%player%}%}
- delete {Ganginvited::%player%::%arg-2%}
- add player to {Gang::%{isinaGang::%player%}%::list::*}
- stop
- else:
- send "%{Gangprefix}%&cYou are already in a Gang"
- stop
- else:
- send "%{Gangprefix}%&cThis Gang doesn't exist"
- stop
- else:
- send "%{Gangprefix}%&cYou must specify the name of the Gang you want to join"
- stop
- if arg-1 is "chat":
- "%{Gangchat}%" is "true"
- if {isinaGang::%player%} is set:
- if {Gangchat::%player%} isn't set:
- set {Gangchat::%player%} to true
- set {Gangchatting::%player%} to "%{isinaGang::%player%}%"
- send "%{Gangprefix}%&eYou have enabled the Gang chat, only your Gang can read the messages you send now"
- send "%{Gangprefix}%&cTo disable the Gang chat use the command &4'&c/Gang chat&4' &cagain"
- else:
- delete {Gangchat::%player%}
- delete {Gangchatting::%player%}
- send "%{Gangprefix}%&cYou have disabled the Gang chat, you are back in the public chat"
- else:
- send "%{Gangprefix}%&cYou must be in a Gang to use the Gang chat"
- if arg-1 is "headquarters", "headquarter" or "home":
- "%{Gangheadquarters}%" is "true"
- if {isinaGang::%player%} is set:
- if {headquarters::%{isinaGang::%player%}%} isn't set:
- send "%{Gangprefix}%&cYour Gang doesn't have a headquarters"
- if {creatorGang::%{isinaGang::%player%}%} is player:
- send "%{Gangprefix}%&eIf you want set the Gang &6headquarters &euse the command &6'&7/&eGang &6setheadquarters&6'"
- stop
- else:
- teleport player to {headquarters::%{isinaGang::%player%}%}
- stop
- else:
- send "%{Gangprefix}%&cYou must be in a Gang to use this command"
- stop
- if arg-1 is "setheadquarters", "setheadquarter" or "sethome":
- "%{Gangheadquarters}%" is "true"
- if {isinaGang::%player%} is set:
- if {creatorGang::%{isinaGang::%player%}%} is player:
- if {headquarters::%{isinaGang::%player%}%} isn't set:
- set {headquarters::%{isinaGang::%player%}%} to location of player
- send "%{Gangprefix}%&eYou have set your Gang's &6headquarters &eto these coordinates: &6%{headquarters::%{isinaGang::%player%}%}%"
- stop
- else:
- send "%{Gangprefix}%&eYou have moved your &eGang's &6headquarters &efrom these coordinates: &6%{headquarters::%arg-2%}% &eto these coordinates: &6%location of player%"
- set {headquarters::%{isinaGang::%player%}%} to location of player
- stop
- else:
- send "%{Gangprefix}%&cOnly the Gang's creator can do that"
- stop
- else:
- send "%{Gangprefix}%&cYou must be in a Gang to use this command"
- stop
- if arg-1 is "deleteheadquarters", "deleteheadquarter", "deletehome" or "delhome":
- "%{Gangheadquarters}%" is "true"
- if {isinaGang::%player%} is set:
- if {creatorGang::%{isinaGang::%player%}%} is player:
- if {headquarters::%{isinaGang::%player%}%} is set:
- delete {headquarters::%{isinaGang::%player%}%}
- send "%{Gangprefix}%&eYou have deleted your Gang's &6headquarters &7(&eit was at &6%{headquarters::%{isinaGang::%player%}%}%&7)"
- stop
- else:
- send "%{Gangprefix}%&cYour Gang doesn't have a &4headquarters"
- stop
- else:
- send "%{Gangprefix}%&cOnly the Gang's creator can do that"
- stop
- else:
- send "%{Gangprefix}%&cYou must be in a Gang to use this command"
- stop
- command /Gangadmin [<text>] [<text>] [<text>]:
- permission: Gang.admin
- trigger:
- if arg-1 isn't set:
- make player execute command "/Gang help"
- if arg-1 is "help":
- send " &bGang &cAdmin &9Help"
- send "&7/&eGangadmin configreload &7- &eReload the config file"
- send "&7/&eGangadmin open &6name &7- &eForce open a Gang"
- send "&7/&eGangadmin invite player &6Gang &7- &eForce invite a player to a Gang"
- send "&7/&eGangadmin kick &6name &7- &eForce kick a player from a Gang"
- send "&7/&eGangadmin join &6name &7- &eForce join a Gang without invite"
- send "&7/&eGangadmin delete &6name &7- &eForce disband a Gang"
- send "&7/&eGangadmin headquarters &6Gangname"
- send "&7/&eGangadmin deleteheadquarters &6name &7- &eForce delete the Gang's headquarters"
- send "&7/&eGangadmin setheadquarters &6name &7- &eForce set a Gang's headquarters to your position"
- send "&7/&eGangadmin &6list &7- &eList all Gangs"
- send ""
- send "&bPlugin made by &3Sitieno14" #YOU CAN'T REMOVE THIS LINE
- #SKRIPT MADE BY SITIENO14
- if arg-1 is "configreload" or "reload":
- if executor isn't console:
- if player has the permission "Gangadmin.reload":
- wait 1 tick
- else:
- send "%{Gangprefix}%&cYou don't have the permission to execute this command!"
- stop
- if folder "plugins/GangSk" doesn't exists:
- send "%{Gangprefix}%&eReload info sent to &6console"
- log "Gang Skript > Creating Folder..."
- create folder "plugins/GangSk"
- log "Gang Skript > GangSk's Folder created!"
- if file "plugins/GangSk/Config.yml" doesn't exists:
- log "Gang Skript > Creating Config..."
- create file "plugins/GangSk/Config.yml"
- set "opencommands" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "listcommand" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "friendlyfire" to "false" in yaml file "plugins/GangSk/Config.yml"
- set "friendlyfiremsg" to "&cYou can't attack your Gang members." in yaml file "plugins/GangSk/Config.yml"
- set "Gangchat" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "Gangchatspy" to "false" in yaml file "plugins/GangSk/Config.yml"
- set "Gangchatformat" to "&bGang &3Chat &9> &b" in yaml file "plugins/GangSk/Config.yml"
- set "Gangheadquarters" to "true" in yaml file "plugins/GangSk/Config.yml"
- set "Gangprefix" to "&bGang &3» " in yaml file "plugins/GangSk/Config.yml"
- log "Gang Skript > GangSk's Config created!"
- if file "plugins/GangSk/AutoUpdate.yml" doesn't exists:
- create file "plugins/GangSk/AutoUpdate.yml"
- set {opencommands} to single value "opencommands" get of "plugins/GangSk/Config.yml"
- set {listcommand} to single value "listcommand" get of "plugins/GangSk/Config.yml"
- set {friendlyfire} to single value "friendlyfire" get of "plugins/GangSk/Config.yml"
- set {friendlyfiremsg} to single value "friendlyfiremsg" get of "plugins/GangSk/Config.yml"
- set {Gangchat} to single value "Gangchat" get of "plugins/GangSk/Config.yml"
- set {Gangchatspy} to single value "Gangchatspy" get of "plugins/GangSk/Config.yml"
- set {Gangchatformat} to single value "Gangchatformat" get of "plugins/GangSk/Config.yml"
- set {Gangheadquarters} to single value "Gangheadquarters" get of "plugins/GangSk/Config.yml"
- set {Gangprefix} to single value "Gangprefix" get of "plugins/GangSk/Config.yml"
- log "Gang Skript > Config loaded"
- stop
- if arg-1 is "open":
- if arg-2 is set:
- if {openGang::%arg-2%} isn't set:
- set {openGang::%arg-2%} to 1
- add arg-2 to {Gang::openlist::*}
- send "%{Gangprefix}%&eNow &6%arg-2% &eGang is open, anyone can join it without an invite"
- else:
- delete {openGang::%arg-2%}
- remove arg-2 from {Gang::openlist::*}
- send "%{Gangprefix}%&6%arg-2% &eGang is no longer open, other players will need an invite to join it"
- else:
- send "%{Gangprefix}%&cYou must specify the Gang you want to set to open"
- if arg-1 is "invite":
- if arg-2 is set:
- if arg 3 is set:
- if {createdGang::%arg-3%} is set:
- set {Ganginvited::%arg-2%::%arg-3%} to 1
- send "%{Gangprefix}%&eYou have invited &6%arg-2% &eto the Gang: &6%arg-3%!"
- send "%{Gangprefix}%&eYou were invited to the Gang &6%arg-3%"
- else:
- send "%{Gangprefix}%&cThis Gang doesn't exist"
- else:
- send "%{Gangprefix}%&cYou must specify the Gang you want invite &4%arg-2% &cto"
- else:
- send "%{Gangprefix}%&cYou must specify the player that you want to invite and the Gang you want to invite them to"
- if arg-1 is "kick":
- if arg-2 is set:
- if {isinaGang::%arg-2%} is set:
- set {_arg2} to arg 2 parsed as player
- if {creatorGang::%{isinaGang::%arg-2%}%} is arg-2:
- delete {createdGang::%{isinaGang::%arg-2%}%}
- delete {creatorGang::%{isinaGang::%arg-2%}%}
- delete {Ganginvited::%arg-2%::%{isinaGang::%arg-2%}%}
- delete {openGang::%{isinaGang::%arg-2%}%}
- remove {isinaGang::%arg-2%} from {Gang::openlist::*}
- remove "%{isinaGang::%arg-2%}%" from {Gangs::list::*}
- loop {Gang::%{isinaGang::%arg-2%}%::list::*}:
- delete {isinaGang::%loop-value%}
- send "%{Gangprefix}%&cSince &6%arg-2%&c was the Gang's creator, the Gang was disbanded"
- send "%{Gangprefix}%&cSince you were the Gang creator, your Gang was disbanded" to {_arg2}
- remove arg-2 from {Gang::%{isinaGang::%arg-2%}%::list}
- delete {isinaGang::%arg-2%}
- send "%{Gangprefix}%&eYou have kicked &6%arg-2% &efrom his Gang!"
- send "%{Gangprefix}%&cYou were kicked from &4%{isinaGang::%arg-2%}% &cGang" to {_arg2}
- else:
- send "%{Gangprefix}%&4%arg-2% &cisn't in a Gang"
- else:
- send "%{Gangprefix}%&cYou must specify the player that you want to kick"
- if arg-1 is "join":
- if arg 2 is set:
- if {createdGang::%arg-2%} is 1:
- if {isinaGang::%player%} isn't set:
- set {isinaGang::%player%} to arg-2
- send "%{Gangprefix}%&eYou have joined &6%{isinaGang::%player%}% &eGang"
- send "%{Gangprefix}%&6%player% &ejoined your Gang!" to {creatorGang::%{isinaGang::%player%}%}
- add player to {Gang::%{isinaGang::%player%}%::list}
- else:
- send "%{Gangprefix}%&cYou are already in a Gang"
- else:
- send "%{Gangprefix}%&cThis Gang doesn't exist"
- else:
- send "%{Gangprefix}%&cYou must specify the name of the Gang you want to join"
- if arg-1 is "list":
- send " &3Gangs &bList"
- send "&6%{Gangs::list::*}%"
- if arg-1 is "delete":
- if arg-2 is set:
- if {createdGang::%arg-2%} is set:
- delete {createdGang::%arg-2%}
- delete {creatorGang::%arg-2%}
- delete {Ganginvited::%player%::%arg-2%}
- delete {openGang::%arg-2%}
- delete {Gang::%arg-2%::list::*}
- loop {Gang::%arg-2%::list::*}:
- delete {isinaGang::%loop-value%}
- remove loop-value from {Gang::%arg-2%::list::*}
- delete {Gang::%arg-2%::list::*}
- remove arg-2 from {Gang::openlist::*}
- remove arg-2 from {Gangs::list::*}
- send "%{Gangprefix}%&eYou have deleted &6%arg-2% &eGang"
- else:
- send "%{Gangprefix}%&cThis Gang doesn't exist"
- else:
- send "%{Gangprefix}%&cYou must specify the name of the Gang you want force delete"
- if arg-1 is "headquarters", "headquarter" or "home":
- "%{Gangheadquarters}%" is "true"
- if arg-2 is set:
- if {createdGang::%arg-2%} is set:
- if {headquarters::%arg-2%} isn't set:
- send "%{Gangprefix}%&cThis Gang &7(&4%arg-2%&7) &cdoesn't have a &4headquarters"
- stop
- else:
- teleport player to {headquarters::%arg-2%}
- stop
- else:
- send "%{Gangprefix}%&cA Gang with this &c(&4%arg-2%&c) name doesn't exists"
- else:
- send "%{Gangprefix}%&cYou must specify a Gang"
- stop
- if arg-1 is "setheadquarters", "setheadquarter" or "sethome":
- "%{Gangheadquarters}%" is "true"
- if arg-2 is set:
- if {createdGang::%arg-2%} is set:
- if {headquarters::%arg-2%} isn't set:
- set {headquarters::%arg-2%} to location of player
- send "%{Gangprefix}%&eYou have set &6%arg 2% &eGang's &6headquarters &eto these coordinates: %{headquarters::%arg-2%}%"
- stop
- else:
- send "%{Gangprefix}%&eYou have moved &6%arg 2% &eGang's &6headquarters &efrom these coordinates: &6%{headquarters::%arg-2%}% &eto these coordinates: &6%location of player%"
- set {headquarters::%arg-2%} to location of player
- stop
- else:
- send "%{Gangprefix}%&cA Gang with this &c(&4%arg-2%&c) name doesn't exists"
- stop
- else:
- send "%{Gangprefix}%&cYou must specify a Gang"
- stop
- if arg-1 is "deleteheadquarters", "deleteheadquarter", "deletehome" or "delhome":
- "%{Gangheadquarters}%" is "true"
- if arg-2 is set:
- if {createdGang::%arg-2%} is set:
- if {headquarters::%arg-2%} isn't set:
- send "%{Gangprefix}%&cThis Gang &7(&4%arg-2%&7) &cdoesn't have a &4headquarters"
- stop
- else:
- delete {headquarters::%arg-2%}
- send "%{Gangprefix}%&eYou have deleted &6%arg-2% &eGang's headquarters"
- stop
- else:
- send "%{Gangprefix}%&cYou must be in a Gang to use this command"
- stop
- else:
- send "%{Gangprefix}%&cYou must specify a Gang"
- stop
- stop
- #SKRIPT DAMAGE AND CHAT (DO NOT TOUCH UNLESS U KNOW WHAT U DO)
- on damage:
- "%{friendlyfire}%" is "false"
- attacker is a player
- victim is a player
- if {isinaGang::%victim%} is "%{isinaGang::%attacker%}%":
- cancel event
- send "%{Gangprefix}%%{friendlyfiremsg}%" to attacker
- on chat:
- "%{Gangchat}%" is "true"
- if {Gangchat::%player%} is set:
- cancel event
- loop all players:
- if "%{isinaGang::%loop-player%}%" is "%{Gangchatting::%player%}%":
- send "%{Gangchatformat}% %message%" to loop-player
- "%{Gangchatspy}%" is "true"
- loop all players:
- if loop-player has the permission "Gangchat.spy":
- if loop-player isn't player:
- send "&bGang&fChat&3Spy&9> &6%player% &ehas written in &6%{isinaGang::%player%}% &eGang's chat this message&8: &b%message%" to loop-player
- #/!\ Warning /!\ /!\ Warning /!\ /!\ Warning /!\ /!\ Warning /!\
- #EVERYTHING YOU WILL WRITE IN THIS FILE WILL BE ERASED ON NEW UPDATES
- #To set this plugin's options there is a config in serverfolder/plugins/GangSk/Config.yml
- #
- #thisismyskript Rules:
- #- Don't remove "Plugin made by HituryGameYT", "CREATED BY URMOM (HITURY)", "YOU CAN'T REMOVE THIS LINE" line and similar lines
- #- Don't take credit
- #- You are free to change this ok
- #
- #=====================================================#
- #CREATED BY HITURYMOM123 | YOU CAN'T REMOVE THIS LINE
- #FOR BUG REPORTS, INFORMATIONS AND ANYTHING ELSE ABOUT THIS SKRIPT PLEASE #CONTACT ME ON SKYPE: sitieno14
- #=====================================================#
- #
Advertisement
Add Comment
Please, Sign In to add comment