Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Autor: Twaq
- #Wersja: 1.0 Beta
- #Nazwa: TQGuilds
- #
- # ──────────────────────────────────────────────────────────────────────────────────────
- # ██████████████─██████──██████─██████████─██████─────────████████████───██████████████─
- # ██████████████-██████──██████──████████──██████─────────█████████████──██████████████─
- # ██████████████-██████──██████───██████───██████─────────██████████████─██████████████─
- # ██████─────────██████──██████───██████───██████─────────██████──██████─█████──────────
- # ██████─────────██████──██████───██████───██████─────────██████──██████─██████████████─
- # ██████──██████─██████──██████───██████───██████─────────██████──██████─██████████████─
- # ██████──██████─██████──██████───██████───██████─────────██████──██████─██████████████─
- # ██████──██████─██████──██████───██████───██████─────────██████──██████──────────█████─
- # ██████████████─██████████████───██████───██████████████─█████████████──██████████████─
- # ██████████████─██████████████──████████──██████████████─████████████───██████████████─
- # ██████████████─██████████████─██████████─██████████████─███████████────██████████████─
- # ──────────────────────────────────────────────────────────────────────────────────────
- # BY: Twaq
- options:
- #Itemy na gildie:
- item1: 64 diamonds
- item2: none
- item3: none
- item4: none
- item5: none
- item6: none
- item7: none
- item8: none
- #Opcje gildii:
- t: &2[Gildia]&7
- odleglosc_od_spawnu: 300 #Kratek
- wielkosc_cuboida: 50
- command /zaloz [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "{@t} poprawne uzycie /zaloz <TAG> <NAZWA>"
- stop
- if {gildia.tag.%arg 1%} is true:
- send "{@t} Gildia o takim tagu juz jest zalozona!"
- stop
- if {gildia.%player%.owner} is true:
- send "{@t} Posiadasz juz gildie!"
- stop
- if {gildia.%player%.member} is true:
- send "{@t} Jestes juz w gildii!"
- stop
- if arg 1 is not empty:
- if arg 2 is not empty:
- player don't have {@item1}:
- send "&cNie posiadasz itemow na gildie!"
- stop
- player don't have {@item2}:
- send "&7Nie posiadasz {@item2}"
- stop
- player don't have {@item3}:
- send "&7Nie posiadasz {@item3}"
- stop
- player don't have {@item4}:
- send "&7Nie posiadasz {@item4}"
- stop
- player don't have {@item5}:
- send "&7Nie posiadasz {@item5}"
- stop
- player don't have {@item6}:
- send "&7Nie posiadasz {@item6}"
- stop
- player don't have {@item7}:
- send "&7Nie posiadasz {@item7}"
- stop
- player don't have {@item8}:
- send "&7Nie posiadasz {@item8}"
- stop
- player cannot build at block under player:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters northwest:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters north:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters northeast:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters west:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters east:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters southwest:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters south:
- send "&CJestes zbyt blisko innej gildii!"
- stop
- player cannot build at block 100 meters southeast:
- send "&4Teren na poludniowy wschod jest zajety"
- stop
- if distance between {spawn} and location of player is greater than {@odleglosc_od_spawnu}:
- execute console command "pex user %player% add *"
- wait 1 tick
- execute player command "//pos1"
- execute player command "//pos2"
- execute player command "//expand {@wielkosc_cuboida} w"
- execute player command "//expand {@wielkosc_cuboida} n"
- wait 1 tick
- execute player command "//expand {@wielkosc_cuboida} e"
- execute player command "//expand {@wielkosc_cuboida} s"
- execute player command "//expand vert"
- execute player command "region define gildia-%arg 1%"
- execute player command "rg flag gildia-%arg 1% greeting &6** &7Wchodzisz na teren gildii: %arg 1% %arg 2% &6**"
- execute player command "rg flag gildia-%arg 1% farewell &6** &7Opuszczasz teren gildii: %arg 1% %arg 2% &6**"
- wait 1 tick
- execute player command "region addowner gildia-%arg 1% %name of player%"
- execute player command "rg flag %arg 1% blocked-cmds zaloz"
- loop 98 times:
- send ""
- send "&5Zalozyles gildie :)!"
- set block under the player to bedrock
- set {gildia.tag.%name of player%} to arg 1
- set {gildia.%name of player%.owner} to true
- set {gildia.home.%arg 1%} to location of player
- loop all players:
- display "&aGracz %name of player% Zalozyl gildie: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
- set {gildia.%name of player%} to true
- set {_cos} to "%{gildia.tag.%name of player%}%"
- add player to {gildia.ownerklanu.%{_cos}%::*}
- add arg 1 to {listagildii::*}
- edit tag of player to "&7[&c%{gildia.tag.%name of player%}%&7] "
- remove {@item1} from the player's inventory
- remove {@item2} from the player's inventory
- remove {@item3} from the player's inventory
- remove {@item4} from the player's inventory
- remove {@item5} from the player's inventory
- remove {@item6} from the player's inventory
- remove {@item7} from the player's inventory
- remove {@item8} from the player's inventory
- set {gildia.tag.%arg 1%} to true
- wait 2 tick
- set {baza.%arg 1%} to true
- execute console command "pex user %player% remove *"
- else:
- send "&6Zbyt blisko spawnu!"
- command /baza:
- trigger:
- if {baza.%{gildia.tag.%name of player%}%} is true:
- send "&5Za 5 sekund zostaniesz przeteleportowany do bazy gildii!"
- set {tpg.%name of player%} to true
- apply slowness 500 to the player for 6 seconds
- apply Mining Fatigue 10 to the player for 6 seconds
- wait 5 real second
- set {tpg.%name of player%} to false
- teleport player to {gildia.home.%{gildia.tag.%name of player%}%}
- send "&7Zostales przeteleportowany do bazy!"
- stop
- send "&cNie posiadasz gildii!"
- stop
- command /zamknij:
- trigger:
- if {gildia.%name of player%.owner} is true:
- set {_tag} to {gildia.tag.%name of player%}
- loop {czlonkowie.%{_tag}%::*}:
- edit tag of loop-value to ""
- delete {gildia.tag.%loop-value%}
- set {gildia.%loop-value%.member} to false
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "rg remove gildia-%{gildia.tag.%player%}%"
- execute console command "pex user %name of player% remove worldguard.*"
- loop all players:
- display "&aGracz %name of player% Zamknol gildie: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
- set {gildia.tag.%{gildia.tag.%name of player%}%} to false
- wait 1 tick
- set {baza.%{gildia.tag.%name of player%}%} to false
- set {gildia.tag.%name of player%} to ""
- set {gildia.%player%.owner} to false
- set {gildia.%name of player%.tagg} to false
- edit tag of player to ""
- command /zapros [<player>]:
- trigger:
- if arg 1 is not set:
- send "&6Poprawne uzycie &a/zapros <nick>"
- else:
- if {gildia.%name of player%.owner} is true:
- send "&2Zaproszono cie do gildi %{gildia.tag.%name of player%}% wpisz &6/dolacz %{gildia.tag.%name of player%}% &7baby dolaczyc" to arg player
- send "&2Zaproszono gracza %arg player% do gildii"
- set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to true
- wait 180 seconds
- set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to false
- send "&cZAPROSZENIE ZOSTALO ANULOWANE Z POWODU DLUGIEGO OCZEKIWANIA!" to arg player
- command /dolacz [<text>]:
- trigger:
- if arg 1 is not set:
- send "&6Porawne uzycie &b/dolacz <tag gildii>"
- else:
- if {gildia.%name of player%.owner} is true:
- send "&4Posiadasz juz gildie!"
- if {gildie.%name of player%.member} is true:
- send "&4Jestes juz w gildii!"
- stop
- if {gildia.zapro.%name of player%.%arg 1%} is true:
- set {gildia.tag.%name of player%} to arg 1
- set {gildia.%name of player%.member} to true
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "rg addmember gildia-%{gildia.tag.%name of player%}% %player%"
- execute console command "pex user %name of player% remove worldguard.*"
- remove 24 diamonds from the player's inventory
- add player to {czlonkowie.%arg 1%::*}
- add player to {members.%{gildia.tag.%name of player%}%::*}
- edit tag of player to "&7[&c%{gildia.tag.%name of player%}%&7] "
- loop all players:
- display "&aGracz %name of player% Dolaczyl do gildii: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
- stop
- send "&6Nie masz zaproszenia do gildii %arg 1%"
- command /opusc:
- trigger:
- if {gildia.%name of player%.owner} is true:
- send "&4Masz juz gildie!"
- else:
- set {gildia.%name of player%.member} to false
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %player%"
- execute console command "pex user %name of player% remove worldguard.*"
- set {gildia.tag.%name of player%} to ""
- edit tag of player to ""
- loop all players:
- display "&aGracz %name of player% Opuscil gildiec%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
- command /wyrzuc [<player>]:
- trigger:
- if arg 1 is not set:
- send "&6Poprawne uzycie &b/wyrzuc <nick>"
- else:
- if {gildia.%name of player%.owner} is true:
- if {gildia.tag.%name of player%} is {gildia.tag.%arg player%}:
- if {gildia.%arg player%.owner} is true:
- send "&cNie mozesz wyrzucic siebie sam."
- stop
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %arg player%"
- execute console command "pex user %name of player% remove worldguard.*"
- set {gildia.%arg player%.member} to false
- edit tag of player to ""
- loop all players:
- display "&aGracz %name of player% Zostal wyrzucony z gildii: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
- command /ustawbaza:
- trigger:
- if {gildia.%name of player%.owner} is true:
- set {gildia.home.%{gildia.tag.%name of player%}%} to location of player
- send "&2[Gildia] &7ustawiles baze gildii!"
- set {gildia.%name of player%.tagg} to true
- else:
- send "&6Nie jestes zalozycielem nie mozesz przestawiac bazy!"
- command /gildia:
- aliases: f, g, guild, guilds
- trigger:
- send "&6<-------------------- &2[Gildie] &6-------------------->"
- send "&9/zaloz <tag> <nazwa> &7- Zakladasz gildie"
- send "&9/wyrzuc <nick> &7- Wywalasz wybrana osobe z gildii"
- send "&9/zapros <nick> &7- Zapraszasz wybrana osobe do gildii"
- send "&9/ginfo <tag> &7- Informacje o wybranej gildii"
- send "&9/dolacz <tag> &7- Dolaczasz do wybranej gildii"
- send "&9/setbaza &7- Ustawiasz baze gildii w miejscu stania"
- send "&9/baza &7- Teleport Do Gildii"
- send "&9/opusc &7- Opuszczasz Gildie"
- send "&9/zamknij &7- Usuwasz swoja gildie"
- send "&6<-------------------- &2[Gildie] &6-------------------->"
- command /ginfo [<text>]:
- trigger:
- if arg 1 is not set:
- send "&6Poprawne uzycie &a/ginfo <TAG GILDII>"
- else:
- if size of {members.%arg 1%::*} is 0:
- send "&6Czlonkowie: &cBrak"
- send "&6Zalozona przez : %{gildia.ownerklanu.%arg 1%::*}%"
- stop
- send "&6Czlonkowie: &a%{members.%arg 1%::*}%"
- send "&6Gildia - &9%arg 1%"
- send "&6Zalozona przez : %{gildia.ownerklanu.%arg 1%::*}%"
Advertisement
Add Comment
Please, Sign In to add comment