mR_bestKing
Paket Yapımcısı
- Mesajlar
- 64
- En iyi cevaplar
- 0
- Beğeniler
- 18
- Puanları
- 70
- Ruh hali
Hocam merhaba, internetten bulduğum bir takım skripti var. Bunu server'a yükledim Takım dosyası ve config dosyası falan oluşmadı. Bunu bayağı araştırdım addonlarınıda falan yükledim yine aynı. Bakacak varsa sevinirim. Denediğim sürüm spigot 1.12.2 , 1.8'de de denedim yine aynı. Kendim oluşturdum dosyaları configi vs yine aynı.
HATA BU:
hastebin
Kod:
#/!\ 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/TeamSk/Config.yml
#
#Copyright Rules:
#- Don't remove "Plugin made by Sitieno14", "CREATED BY SITIENO14" and similar lines
#- Don't sell this plugin
#- You are free to share this plugin with anyone, but do not claim the #plugin as yours
#
#=====================================================#
#CREATED BY SITIENO14 | YOU CAN'T REMOVE THIS LINE
#FOR BUG REPORTS, INFORMATIONS AND ANYTHING ELSE ABOUT THIS SKRIPT PLEASE #CONTACT ME ON SKYPE: sitieno14
#=====================================================#
#
on skript load:
if folder "plugins/TeamSk" doesn't exists:
log "Team Skript > Creating Folder..."
create folder "plugins/TeamSk"
log "Team Skript > TeamSk's Folder created!"
if file "plugins/TeamSk/Config.yml" doesn't exists:
log "Team Skript > Creating Config..."
create file "plugins/TeamSk/Config.yml"
set "opencommands" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "listcommand" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "friendlyfire" to "false" in yaml file "plugins/TeamSk/Config.yml"
set "friendlyfiremsg" to "&cYou can't attack your team members." in yaml file "plugins/TeamSk/Config.yml"
set "teamchat" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "teamchatspy" to "false" in yaml file "plugins/TeamSk/Config.yml"
set "teamchatformat" to "&bTeam &3Chat &9> &b" in yaml file "plugins/TeamSk/Config.yml"
set "teamheadquarters" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "teamprefix" to "&bTeam &3> " in yaml file "plugins/TeamSk/Config.yml"
log "Team Skript > TeamSk's Config created!"
if file "plugins/TeamSk/AutoUpdate.yml" doesn't exists:
create file "plugins/TeamSk/AutoUpdate.yml"
on skript start:
set {opencommands} to single value "opencommands" get of "plugins/TeamSk/Config.yml"
set {listcommand} to single value "listcommand" get of "plugins/TeamSk/Config.yml"
set {friendlyfire} to single value "friendlyfire" get of "plugins/TeamSk/Config.yml"
set {friendlyfiremsg} to single value "friendlyfiremsg" get of "plugins/TeamSk/Config.yml"
set {teamchat} to single value "teamchat" get of "plugins/TeamSk/Config.yml"
set {teamchatspy} to single value "teamchatspy" get of "plugins/TeamSk/Config.yml"
set {teamchatformat} to single value "teamchatformat" get of "plugins/TeamSk/Config.yml"
set {teamheadquarters} to single value "teamheadquarters" get of "plugins/TeamSk/Config.yml"
set {teamprefix} to single value "teamprefix" get of "plugins/TeamSk/Config.yml"
log "Team Skript > Config loaded"
stop
command /team [<text>] [<text>]:
trigger:
if arg-1 isn't set:
make player execute command "/team help"
if arg-1 is "help":
send " &bTeam &9Help"
send "&7/&eteam join &6name &7- &eJoin a team"
send "&7/&eteam &6leave &7- &eLeave your team"
if "%{listcommand}%" is "true":
send "&7/&eteam &6list &7- &eList your team members"
send "&7/&eteam &6chat &7- &eTo enable team chat"
send "&7/&eteam create &6name &7- &eCreate your team"
send "&7/&eteam invite &6name &7- &eInvite a player to your team"
send "&7/&eteam deinvite &6name &7- &eCancel a player's invite to your team"
send "&7/&eteam kick &6name &7- &eKick a player from your team"
if "%{opencommands}%" is "true":
send "&7/&eteam &6open &7- &eAllow anyone to join your team without invite"
send "&7/&eteam &6openlist &7- &eList the open teams"
if "%{teamheadquarters}%" is "true":
send "&7/&eteam &6setheadquarters &7- &eIf you want set your team's &6headquarters"
send "&7/&eteam &6headquarters &7- &eIf you want go to your team's &6headquarters"
send "&7/&eteam &6deleteheadquarters &7- &eIf you want delete your team's &6headquarters"
send ""
send "&bPlugin made by &3Sitieno14" #YOU CAN'T REMOVE THIS LINE
if arg-1 is "create":
if {isinateam::%player%} isn't set:
if arg-2 is set:
if {createdteam::%arg-2%} isn't set:
set {createdteam::%arg 2%} to 1
set {creatorteam::%arg-2%} to player
set {isinateam::%player%} to "%arg-2%"
add "%player%" to {team::%{isinateam::%player%}%::list::*}
add "%arg-2%" to {teams::list::*}
send "%{teamprefix}%&eYou have created your team with name: '&3 %arg-2%&e'"
else:
send "%{teamprefix}%&cA team with this (&4%arg-2%&c) name already exists."
else:
set {createdteam::%player%} to 1
set {creatorteam::%player%} to "%player%"
set {isinateam::%player%} to "%player%"
add "%player%" to {teams::list::*}
send "%{teamprefix}%&eYou have created your team with name&8: &3%player%&e"
else:
send "%{teamprefix}%&cYou are currently part of the team &4%{isinateam::%player%}%"
send "%{teamprefix}%&cTo create a team you must leave your current team with the command&8: &7/&eteam &6leave"
if arg-1 is "open":
"%{opencommands}%" is "true"
if {isinateam::%player%} is set:
if {creatorteam::%{isinateam::%player%}%} is "%player%":
if {openteam::%{isinateam::%player%}%} isn't set:
set {openteam::%{isinateam::%player%}%} to 1
add {isinateam::%player%} to {team::openlist::*}
send "%{teamprefix}%&eNow your team is open, anyone can join it without an invite"
else:
delete {openteam::%{isinateam::%player%}%}
remove "%{isinateam::%player%}%" from {team::openlist::*}
send "%{teamprefix}%&eYour team is no longer open, other players will need an invite to join it"
else:
send "%{teamprefix}%&cOnly the team's creator can do that"
else:
send "%{teamprefix}%&cYou aren't in a team"
if arg-1 is "openlist":
"%{opencommands}%" is "true"
send " &aOpen &3Teams:"
send "&6%{team::openlist::*}%"
if arg-1 is "list":
"%{listcommand}%" is "true"
if {isinateam::%player%} is set:
send " &3Team &bMembers:"
send "&6%{team::%{isinateam::%player%}%::list::*}%"
else:
send "%{teamprefix}%&cYou aren't in a team"
if arg-1 is "leave":
if {isinateam::%player%} is set:
if {creatorteam::%{isinateam::%player%}%} is "%player%":
delete {createdteam::%{isinateam::%player%}%}
delete {creatorteam::%{isinateam::%player%}%}
delete {teaminvited::%player%::%arg-2%}
delete {openteam::%{isinateam::%player%}%}
remove {isinateam::%player%} from {team::openlist::*}
remove "%{isinateam::%player%}%" from {teams::list::*}
loop {team::%{isinateam::%player%}%::list::*}:
delete {isinateam::%loop-value%}
remove loop-value from {team::%{isinateam::%player%}%::list::*}
delete {team::%{isinateam::%player%}%::list::*}
send "%{teamprefix}%&cSince you were the team's creator, the team was disbanded"
remove player from {team::%{isinateam::%player%}%::list::*}
delete {isinateam::%player%}
send "%{teamprefix}%&cYou have left your team"
else:
send "%{teamprefix}%&cYou aren't in a team"
stop
if arg-1 is "invite":
if {isinateam::%player%} is set:
if {creatorteam::%{isinateam::%player%}%} is "%player%":
if arg-2 is set:
if {teaminvited::%arg-2%::%{isinateam::%player%}%} isn't set:
if "%{isinateam::%arg-2%}%" isn't "%{isinateam::%player%}%":
arg-2 isn't player
set {teaminvited::%arg-2%::%{isinateam::%player%}%} to 1
send "%{teamprefix}%&eYou have invited &6%arg-2% &eto your team!"
set {_arg2} to arg-2 parsed as player
send "%{teamprefix}%&6%player% &einvited you to &6%{isinateam::%player%}% &eteam" to {_arg2}
else:
send "%{teamprefix}%&4%arg-2% &cis already part of your team"
else:
send "%{teamprefix}%&cYou already invited &4%arg-2% &cto your team"
send "%{teamprefix}%&cIf you want cancel the invite use the command&8: &7/&eteam deinvite &6%arg-2%&c"
else:
send "%{teamprefix}%&cYou must specify the player that you want to invite"
else:
send "%{teamprefix}%&cYou aren't the team's creator"
else:
send "%{teamprefix}%&cYou aren't in a team"
if arg-1 is "deinvite":
if {isinateam::%player%} is set:
if {creatorteam::%{isinateam::%player%}%} is "%player%":
if arg-2 is set:
if "%{isinateam::%arg-2%}%" isn't "%{isinateam::%player%}%":
if {teaminvited::%arg-2%::%{isinateam::%player%}%} is set:
arg-2 isn't player
delete {teaminvited::%arg-2%::%{isinateam::%player%}%}
send "%{teamprefix}%&eYou have removed &6%arg-2%&e's invite to your team"
set {_arg2} to arg-2 parsed as player
send "%{teamprefix}%&cYou are no longer invited to the &4%{isinateam::%player%}% &cteam!" to {_arg2}
else:
send "%{teamprefix}%&cYou haven't invited &4%arg-2% &cto your team"
else:
send "%{teamprefix}%&4%arg-2% &cis already part of your team"
send "%{teamprefix}%&eIf you want to kick &6%arg-2% &efrom your team use the command &7/&eteam kick &6%arg-2%&e"
else:
send "%{teamprefix}%&cYou must specify the player you want to deinvite"
else:
send "%{teamprefix}%&cYou aren't the team's creator"
else:
send "%{teamprefix}%&cYou aren't in a team"
if arg-1 is "kick":
arg-2 isn't player
if {isinateam::%player%} is set:
if {creatorteam::%{isinateam::%player%}%} is "%player%":
if arg-2 is set:
if {isinateam::%arg-2%} is set:
arg 2 isn't player
delete {isinateam::%arg-2%}
remove arg-2 from {team::%{isinateam::%player%}%::list}
send "%{teamprefix}%&eYou have kicked &6%arg-2% &efrom your team!"
set {_arg2} to arg-2 parsed as player
send "%{teamprefix}%&6%player% &ekicked you from &6%{isinateam::%player%}% &eteam" to {_arg2}
delete {teaminvited::%arg-2%::%{isinateam::%player%}%}
else:
send "%{teamprefix}%&4%arg-2% &cisn't part of your team"
else:
send "%{teamprefix}%&cYou must specify the player you want to kick"
else:
send "%{teamprefix}%&cYou aren't the team's creator"
else:
send "%{teamprefix}%&cYou aren't in a team"
if arg-1 is "join":
if arg 2 is set:
if {createdteam::%arg-2%} is 1:
if {isinateam::%player%} isn't set:
if {openteam::%arg-2%} isn't set:
if {teaminvited::%player%::%arg-2%} is 1:
set {isinateam::%player%} to arg-2
send "%{teamprefix}%&eYou have joined the &6%{isinateam::%player%}% &eteam"
send "%{teamprefix}%&6%player% &ejoined your team!" to {creatorteam::%{isinateam::%player%}%}
delete {teaminvited::%player%::%{isinateam::%player%}%}
add player to {team::%{isinateam::%player%}%::list::*}
else:
send "%{teamprefix}%&cYou can't join this team without an invite"
stop
else:
set {isinateam::%player%} to arg-2
send "%{teamprefix}%&eYou have joined the &6%{isinateam::%player%}% &eteam"
send "%{teamprefix}%&6%player% &ejoined your team!" to {creatorteam::%{isinateam::%player%}%}
delete {teaminvited::%player%::%arg-2%}
add player to {team::%{isinateam::%player%}%::list::*}
stop
else:
send "%{teamprefix}%&cYou are already in a team"
stop
else:
send "%{teamprefix}%&cThis team doesn't exist"
stop
else:
send "%{teamprefix}%&cYou must specify the name of the team you want to join"
stop
if arg-1 is "chat":
"%{teamchat}%" is "true"
if {isinateam::%player%} is set:
if {teamchat::%player%} isn't set:
set {teamchat::%player%} to true
set {teamchatting::%player%} to "%{isinateam::%player%}%"
send "%{teamprefix}%&eYou have enabled the team chat, only your team can read the messages you send now"
send "%{teamprefix}%&cTo disable the team chat use the command &4'&c/team chat&4' &cagain"
else:
delete {teamchat::%player%}
delete {teamchatting::%player%}
send "%{teamprefix}%&cYou have disabled the team chat, you are back in the public chat"
else:
send "%{teamprefix}%&cYou must be in a team to use the team chat"
if arg-1 is "headquarters", "headquarter" or "home":
"%{teamheadquarters}%" is "true"
if {isinateam::%player%} is set:
if {headquarters::%{isinateam::%player%}%} isn't set:
send "%{teamprefix}%&cYour team doesn't have a headquarters"
if {creatorteam::%{isinateam::%player%}%} is player:
send "%{teamprefix}%&eIf you want set the team &6headquarters &euse the command &6'&7/&eteam &6setheadquarters&6'"
stop
else:
teleport player to {headquarters::%{isinateam::%player%}%}
stop
else:
send "%{teamprefix}%&cYou must be in a team to use this command"
stop
if arg-1 is "setheadquarters", "setheadquarter" or "sethome":
"%{teamheadquarters}%" is "true"
if {isinateam::%player%} is set:
if {creatorteam::%{isinateam::%player%}%} is player:
if {headquarters::%{isinateam::%player%}%} isn't set:
set {headquarters::%{isinateam::%player%}%} to location of player
send "%{teamprefix}%&eYou have set your team's &6headquarters &eto these coordinates: &6%{headquarters::%{isinateam::%player%}%}%"
stop
else:
send "%{teamprefix}%&eYou have moved your &eteam's &6headquarters &efrom these coordinates: &6%{headquarters::%arg-2%}% &eto these coordinates: &6%location of player%"
set {headquarters::%{isinateam::%player%}%} to location of player
stop
else:
send "%{teamprefix}%&cOnly the team's creator can do that"
stop
else:
send "%{teamprefix}%&cYou must be in a team to use this command"
stop
if arg-1 is "deleteheadquarters", "deleteheadquarter", "deletehome" or "delhome":
"%{teamheadquarters}%" is "true"
if {isinateam::%player%} is set:
if {creatorteam::%{isinateam::%player%}%} is player:
if {headquarters::%{isinateam::%player%}%} is set:
delete {headquarters::%{isinateam::%player%}%}
send "%{teamprefix}%&eYou have deleted your team's &6headquarters &7(&eit was at &6%{headquarters::%{isinateam::%player%}%}%&7)"
stop
else:
send "%{teamprefix}%&cYour team doesn't have a &4headquarters"
stop
else:
send "%{teamprefix}%&cOnly the team's creator can do that"
stop
else:
send "%{teamprefix}%&cYou must be in a team to use this command"
stop
command /teamadmin [<text>] [<text>] [<text>]:
permission: team.admin
trigger:
if arg-1 isn't set:
make player execute command "/team help"
if arg-1 is "help":
send " &bTeam &cAdmin &9Help"
send "&7/&eteamadmin configreload &7- &eReload the config file"
send "&7/&eteamadmin open &6name &7- &eForce open a Team"
send "&7/&eteamadmin invite player &6team &7- &eForce invite a player to a Team"
send "&7/&eteamadmin kick &6name &7- &eForce kick a player from a team"
send "&7/&eteamadmin join &6name &7- &eForce join a team without invite"
send "&7/&eteamadmin delete &6name &7- &eForce disband a Team"
send "&7/&eteamadmin headquarters &6teamname"
send "&7/&eteamadmin deleteheadquarters &6name &7- &eForce delete the team's headquarters"
send "&7/&eteamadmin setheadquarters &6name &7- &eForce set a team's headquarters to your position"
send "&7/&eteamadmin &6list &7- &eList all teams"
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 "teamadmin.reload":
wait 1 tick
else:
send "%{teamprefix}%&cYou don't have the permission to execute this command!"
stop
if folder "plugins/TeamSk" doesn't exists:
send "%{teamprefix}%&eReload info sent to &6console"
log "Team Skript > Creating Folder..."
create folder "plugins/TeamSk"
log "Team Skript > TeamSk's Folder created!"
if file "plugins/TeamSk/Config.yml" doesn't exists:
log "Team Skript > Creating Config..."
create file "plugins/TeamSk/Config.yml"
set "opencommands" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "listcommand" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "friendlyfire" to "false" in yaml file "plugins/TeamSk/Config.yml"
set "friendlyfiremsg" to "&cYou can't attack your team members." in yaml file "plugins/TeamSk/Config.yml"
set "teamchat" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "teamchatspy" to "false" in yaml file "plugins/TeamSk/Config.yml"
set "teamchatformat" to "&bTeam &3Chat &9> &b" in yaml file "plugins/TeamSk/Config.yml"
set "teamheadquarters" to "true" in yaml file "plugins/TeamSk/Config.yml"
set "teamprefix" to "&bTeam &3> " in yaml file "plugins/TeamSk/Config.yml"
log "Team Skript > TeamSk's Config created!"
if file "plugins/TeamSk/AutoUpdate.yml" doesn't exists:
create file "plugins/TeamSk/AutoUpdate.yml"
set {opencommands} to single value "opencommands" get of "plugins/TeamSk/Config.yml"
set {listcommand} to single value "listcommand" get of "plugins/TeamSk/Config.yml"
set {friendlyfire} to single value "friendlyfire" get of "plugins/TeamSk/Config.yml"
set {friendlyfiremsg} to single value "friendlyfiremsg" get of "plugins/TeamSk/Config.yml"
set {teamchat} to single value "teamchat" get of "plugins/TeamSk/Config.yml"
set {teamchatspy} to single value "teamchatspy" get of "plugins/TeamSk/Config.yml"
set {teamchatformat} to single value "teamchatformat" get of "plugins/TeamSk/Config.yml"
set {teamheadquarters} to single value "teamheadquarters" get of "plugins/TeamSk/Config.yml"
set {teamprefix} to single value "teamprefix" get of "plugins/TeamSk/Config.yml"
log "Team Skript > Config loaded"
stop
if arg-1 is "open":
if arg-2 is set:
if {openteam::%arg-2%} isn't set:
set {openteam::%arg-2%} to 1
add arg-2 to {team::openlist::*}
send "%{teamprefix}%&eNow &6%arg-2% &eteam is open, anyone can join it without an invite"
else:
delete {openteam::%arg-2%}
remove arg-2 from {team::openlist::*}
send "%{teamprefix}%&6%arg-2% &eteam is no longer open, other players will need an invite to join it"
else:
send "%{teamprefix}%&cYou must specify the team you want to set to open"
if arg-1 is "invite":
if arg-2 is set:
if arg 3 is set:
if {createdteam::%arg-3%} is set:
set {teaminvited::%arg-2%::%arg-3%} to 1
send "%{teamprefix}%&eYou have invited &6%arg-2% &eto the team: &6%arg-3%!"
send "%{teamprefix}%&eYou were invited to the team &6%arg-3%"
else:
send "%{teamprefix}%&cThis team doesn't exist"
else:
send "%{teamprefix}%&cYou must specify the team you want invite &4%arg-2% &cto"
else:
send "%{teamprefix}%&cYou must specify the player that you want to invite and the team you want to invite them to"
if arg-1 is "kick":
if arg-2 is set:
if {isinateam::%arg-2%} is set:
set {_arg2} to arg 2 parsed as player
if {creatorteam::%{isinateam::%arg-2%}%} is arg-2:
delete {createdteam::%{isinateam::%arg-2%}%}
delete {creatorteam::%{isinateam::%arg-2%}%}
delete {teaminvited::%arg-2%::%{isinateam::%arg-2%}%}
delete {openteam::%{isinateam::%arg-2%}%}
remove {isinateam::%arg-2%} from {team::openlist::*}
remove "%{isinateam::%arg-2%}%" from {teams::list::*}
loop {team::%{isinateam::%arg-2%}%::list::*}:
delete {isinateam::%loop-value%}
send "%{teamprefix}%&cSince &6%arg-2%&c was the team's creator, the team was disbanded"
send "%{teamprefix}%&cSince you were the team creator, your team was disbanded" to {_arg2}
remove arg-2 from {team::%{isinateam::%arg-2%}%::list}
delete {isinateam::%arg-2%}
send "%{teamprefix}%&eYou have kicked &6%arg-2% &efrom his team!"
send "%{teamprefix}%&cYou were kicked from &4%{isinateam::%arg-2%}% &cteam" to {_arg2}
else:
send "%{teamprefix}%&4%arg-2% &cisn't in a team"
else:
send "%{teamprefix}%&cYou must specify the player that you want to kick"
if arg-1 is "join":
if arg 2 is set:
if {createdteam::%arg-2%} is 1:
if {isinateam::%player%} isn't set:
set {isinateam::%player%} to arg-2
send "%{teamprefix}%&eYou have joined &6%{isinateam::%player%}% &eteam"
send "%{teamprefix}%&6%player% &ejoined your team!" to {creatorteam::%{isinateam::%player%}%}
add player to {team::%{isinateam::%player%}%::list}
else:
send "%{teamprefix}%&cYou are already in a team"
else:
send "%{teamprefix}%&cThis team doesn't exist"
else:
send "%{teamprefix}%&cYou must specify the name of the team you want to join"
if arg-1 is "list":
send " &3Teams &bList"
send "&6%{teams::list::*}%"
if arg-1 is "delete":
if arg-2 is set:
if {createdteam::%arg-2%} is set:
delete {createdteam::%arg-2%}
delete {creatorteam::%arg-2%}
delete {teaminvited::%player%::%arg-2%}
delete {openteam::%arg-2%}
delete {team::%arg-2%::list::*}
loop {team::%arg-2%::list::*}:
delete {isinateam::%loop-value%}
remove loop-value from {team::%arg-2%::list::*}
delete {team::%arg-2%::list::*}
remove arg-2 from {team::openlist::*}
remove arg-2 from {teams::list::*}
send "%{teamprefix}%&eYou have deleted &6%arg-2% &eteam"
else:
send "%{teamprefix}%&cThis team doesn't exist"
else:
send "%{teamprefix}%&cYou must specify the name of the team you want force delete"
if arg-1 is "headquarters", "headquarter" or "home":
"%{teamheadquarters}%" is "true"
if arg-2 is set:
if {createdteam::%arg-2%} is set:
if {headquarters::%arg-2%} isn't set:
send "%{teamprefix}%&cThis team &7(&4%arg-2%&7) &cdoesn't have a &4headquarters"
stop
else:
teleport player to {headquarters::%arg-2%}
stop
else:
send "%{teamprefix}%&cA team with this &c(&4%arg-2%&c) name doesn't exists"
else:
send "%{teamprefix}%&cYou must specify a team"
stop
if arg-1 is "setheadquarters", "setheadquarter" or "sethome":
"%{teamheadquarters}%" is "true"
if arg-2 is set:
if {createdteam::%arg-2%} is set:
if {headquarters::%arg-2%} isn't set:
set {headquarters::%arg-2%} to location of player
send "%{teamprefix}%&eYou have set &6%arg 2% &eteam's &6headquarters &eto these coordinates: %{headquarters::%arg-2%}%"
stop
else:
send "%{teamprefix}%&eYou have moved &6%arg 2% &eteam'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 "%{teamprefix}%&cA team with this &c(&4%arg-2%&c) name doesn't exists"
stop
else:
send "%{teamprefix}%&cYou must specify a team"
stop
if arg-1 is "deleteheadquarters", "deleteheadquarter", "deletehome" or "delhome":
"%{teamheadquarters}%" is "true"
if arg-2 is set:
if {createdteam::%arg-2%} is set:
if {headquarters::%arg-2%} isn't set:
send "%{teamprefix}%&cThis team &7(&4%arg-2%&7) &cdoesn't have a &4headquarters"
stop
else:
delete {headquarters::%arg-2%}
send "%{teamprefix}%&eYou have deleted &6%arg-2% &eteam's headquarters"
stop
else:
send "%{teamprefix}%&cYou must be in a team to use this command"
stop
else:
send "%{teamprefix}%&cYou must specify a team"
stop
stop
every 10 minutes:
if text from "http://pastebin.com/raw.php?i=LQ320J6v" is not "0.9":
log "A new update for Team Skript was FOUND!"
log "Updating Team Skript plugin (Auto Update)"
download from "http://pastebin.com/raw.php?i=cR9RZic0" to "plugins/Skript/scripts/Team.sk"
wait 160 ticks
log "Update complete, reloading Team Skript..."
execute console command "/skript reload Team"
wait 5 seconds
log "Team Skript Update done, You are running latest version!"
if {teamsk::updated} isn't set:
set {teamsk::updated} to true
set "teamheadquarters" to "false" in yaml file "plugins/TeamSk/Config.yml"
set {teamheadquarters} to single value "teamheadquarters" get of "plugins/TeamSk/Config.yml"
set "teamprefix" to "&bTeam &3> " in yaml file "plugins/TeamSk/Config.yml"
set {teamprefix} to single value "teamprefix" get of "plugins/TeamSk/Config.yml"
if file "plugins/TeamSk/ChangeLog.txt" doesn't exists:
create file "plugins/TeamSk/ChangeLog.txt"
download from "http://pastebin.com/raw.php?i=D6sAiy1q" to "plugins/TeamSk/ChangeLog.txt"
stop
else:
stop
#SKRIPT CREATED BY SITIENO14
on damage:
"%{friendlyfire}%" is "false"
attacker is a player
victim is a player
if {isinateam::%victim%} is "%{isinateam::%attacker%}%":
cancel event
send "%{teamprefix}%%{friendlyfiremsg}%" to attacker
on chat:
"%{teamchat}%" is "true"
if {teamchat::%player%} is set:
cancel event
loop all players:
if "%{isinateam::%loop-player%}%" is "%{teamchatting::%player%}%":
send "%{teamchatformat}% %message%" to loop-player
"%{teamchatspy}%" is "true"
loop all players:
if loop-player has the permission "teamchat.spy":
if loop-player isn't player:
send "&bTeam&fChat&3Spy&9> &6%player% &ehas written in &6%{isinateam::%player%}% &eteam'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/TeamSk/Config.yml
#
#Copyright Rules:
#- Don't remove "Plugin made by Sitieno14", "CREATED BY SITIENO14", "YOU CAN'T REMOVE THIS LINE" line and similar lines
#- Don't sell this plugin
#- You are free to share this plugin with anyone, but do not claim the plugin as yours
#
#=====================================================#
#CREATED BY SITIENO14 | YOU CAN'T REMOVE THIS LINE
#FOR BUG REPORTS, INFORMATIONS AND ANYTHING ELSE ABOUT THIS SKRIPT PLEASE #CONTACT ME ON SKYPE: sitieno14
#=====================================================#
#
HATA BU:
hastebin
Son düzenleme: