Facebook
From Reliable Marmoset, 9 Years ago, written in StoneScript.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

- view diff
Embed
Download Paste or View Raw
Hits: 779
  1. options:
  2.         t: &6[&9EasySV&6]&b
  3.         czat: &6{RANK} &8[&a{TAG}&8] {DISPLAY}: {MESSAGE}
  4.         pobraniejeslibrak: &8[&a{TAG}&8]
  5.         item1: none
  6.         item2: none
  7.         item3: none
  8.         item4: none
  9.        
  10. variables:
  11.         {ranking.%player%} = 1000
  12.        
  13. on first join:
  14.         set join message to "&9{@t} &a%player% +"
  15.         set {gildia.%name of player%.brak} to true
  16.         set {prez.%player%} to true
  17.         add 1000 to {ranking.%player%}
  18.  
  19. on join:
  20.         if {ranking.%player%.jest} is false:
  21.                 add 100 to {ranking.%player%}
  22.                 set {ranking.%player%.jest} to true
  23.        
  24. command /zaloz [<text>] [<text>]:
  25.         trigger:
  26.                 if arg 1 is not set:
  27.                         send "{@t} Poprawne uzycie /zaloz <TAG> <NAZWA>"
  28.                         stop
  29.                 if {gildia.tag.%arg 1%} is true:
  30.                         send "{@t} Gildia o podanym tagu juz istnieje!"
  31.                         stop
  32.                 if {gildia.%player%.owner} is true:
  33.                         send "{@t} Masz juz gildie!"
  34.                         stop
  35.                 if {gildia.%player%.member} is true:
  36.                         send "{@t} Jestes czlonkiem gildii!"
  37.                         stop
  38.                 if arg 2 is not set:
  39.                         send "{@t} Nie podales nazwy gildii"
  40.                         stop
  41.                 if arg 1 is not empty:
  42.                         if arg 2 is not empty:
  43.                                 player don't have {@item1}:
  44.                                         send "&6Itemy"
  45.                                         send "&9Proch &c%number of gunpowder in the player's inventory%&a/5"
  46.                                         send "&9Zlote Jablka &c%number of golden apple in the player's inventory%&a/2"
  47.                                         send "&9Diamenty &c%number of diamond in the player's inventory%&a/5"
  48.                                         send "&9Ender Perly &c%number of ender pearl in the player's inventory%&a/3"
  49.                                         stop
  50.                                 player don't have {@item2}:
  51.                                         send "&6Nie posiadasz {@item2}"
  52.                                         stop
  53.                                 player don't have {@item3}:
  54.                                         send "&6Nie posiadasz {@item3}"
  55.                                         stop
  56.                                 player don't have {@item4}:
  57.                                         send "&6Nie posiadasz {@item4}"
  58.                                         stop
  59.                                 player cannot build at block under player:
  60.                                         send "&4Teren pod toba jest zajety :P"
  61.                                         stop
  62.                                 player cannot build at block 100 meters northwest:
  63.                                         send "&4Teren na polnocny zachod jest zajety"
  64.                                         stop
  65.                                 player cannot build at block 100 meters north:
  66.                                         send "&4Teren na polnoc jest zajety"
  67.                                         stop
  68.                                 player cannot build at block 100 meters northeast:
  69.                                         send "&4Teren na polnocny wschod jest zajety"
  70.                                         stop
  71.                                 player cannot build at block 100 meters west:
  72.                                         send "&4Teren na zachod jest zajety"
  73.                                         stop
  74.                                 player cannot build at block 100 meters east:
  75.                                         send "&4Teren na wschod jest zajety"
  76.                                         stop
  77.                                 player cannot build at block 100 meters southwest:
  78.                                         send "&4Teren na poludniowy zachud jest zajety"
  79.                                         stop
  80.                                 player cannot build at block 100 meters south:
  81.                                         send "&4Teren na poludnie jest zajety"
  82.                                         stop
  83.                                 player cannot build at block 100 meters southeast:
  84.                                         send "&4Teren na poludniowy wschod jest zajety"
  85.                                         stop
  86.                                 if distance between {spawn} and location of player is greater than 150+50/2:
  87.                                         execute console command "pex user %name of player% add worldedit.*"
  88.                                         execute console command "pex user %name of player% add worldguard.*"
  89.                                         wait 1 tick
  90.                                         execute player command "//pos1"
  91.                                         execute player command "//pos2"
  92.                                         execute player command "//expand 50 w"
  93.                                         execute player command "//expand 50 n"
  94.                                         wait 2 tick
  95.                                         execute player command "//expand 50 e"
  96.                                         execute player command "//expand 50 s"
  97.                                         execute player command "//expand vert"
  98.                                         execute player command "region define gildia-%arg 1%"
  99.                                         execute player command "region flag gildia-%arg 1% chest-access allow"
  100.                                         execute player command "region flag gildia-%arg 1% use allow"
  101.                                         wait 2 tick
  102.                                         execute player command "region addowner gildia-%arg 1% %name of player%"
  103.                                         execute console command "pex user %name of player% remove worldedit.*"
  104.                                         execute console command "pex user %name of player% remove worldguard.*"
  105.                                         loop 98 times:
  106.                                                 send ""
  107.                                         message "{@t}Stworzyles Gildie"
  108.                                         set block at player to dragon egg
  109.                                         wait 3 tick
  110.                                         set {gildia.%name of player%.brak} to true
  111.                                         set {gildia.tag.%name of player%} to arg 1
  112.                                         execute console command "ne prefix %name of player% &c[**][%arg 1%]"
  113.                                         set {gildia.%name of player%.owner} to true
  114.                                         set {gildia.home.%arg 1%} to location of player
  115.                                         broadcast "{@t}&a Gildia o TAGu [%arg 1%] zostala zalozona przez &9%name of player%"
  116.                                         set {gildia.%name of player%} to true
  117.                                         set {_cos} to "%{gildia.tag.%name of player%}%"
  118.                                         add player to {gildia.ownerklanu.%{_cos}%::*}
  119.                                         add arg 1 to {listagildii::*}
  120.                                         wait 1 seconds
  121.                                         remove {@item1} from the player's inventory
  122.                                         remove {@item2} from the player's inventory
  123.                                         remove {@item3} from the player's inventory
  124.                                         remove {@item4} from the player's inventory
  125.                                         set {gildia.tag.%arg 1%} to true
  126.                                         wait 2 tick
  127.                                         set {baza.%arg 1%} to true
  128.                                 else:
  129.                                         send "&6Zbyt blisko spawnu!"
  130.                                        
  131.                                
  132.                                        
  133. command /lista:
  134.         trigger:
  135.                 if size of {listagildii::*} is 0:
  136.                         send "&7Nie ma jeszcze gildii na serwerze :)"
  137.                 else:
  138.                         send "&9Lista gildii: &6 %{listagildii::*}%"
  139.                        
  140. command /baza:
  141.         trigger:
  142.                 if {baza.%{gildia.tag.%name of player%}%} is true:
  143.                         teleport player to {gildia.home.%{gildia.tag.%name of player%}%}
  144.                         send "&bPrzeteleportowales sie na Home swojej Gildii :)"
  145.                         stop
  146.                 send "&6Nie posiadasz gildii!"
  147.                
  148. command /opis [<text>]:
  149.         trigger:
  150.                 if arg 1 is not set:
  151.                         send "&cNie poprawne uzycie. poprawne /opis <opis gildii>"
  152.                         stop
  153.                 if {gildia.%name of player%.owner} is true:
  154.                         execute console command "pex user %name of player% add worldguard.*"
  155.                         execute player command "region flag gildia-%{gildia.tag.%name of player%}% greeting %arg 1%"
  156.                         execute player command "region flag gildia-%{gildia.tag.%name of player%}% farewell %arg 1%"
  157.                         execute console command "pex user %name of player% remove worldguard.*"
  158.                         broadcast "&6Opis gildii &2(%{gildia.tag.%name of player%}%) &6zostal ustawiony na &b%arg 1%"
  159.                 else:
  160.                         send "&9Nie masz gildii lub nie posiadasz zalozyciela"
  161.                
  162. command /usun:
  163.         trigger:
  164.                 if {gildia.%name of player%.owner} is true:
  165.                         broadcast "{@t} Gracz %player% usunal gildie (%{gildia.tag.%name of player%}%)"
  166.                         set {_cot} to {gildia.tag.%name of player%}
  167.                         remove {_cot} from {listagildii::*}
  168.                         set {gildia.%name of player%.brak} to false
  169.                         set {_tag} to {gildia.tag.%name of player%}
  170.                         loop {czlonkowie.%{_tag}%::*}:
  171.                                 set {gildia.tag.%loop-value%} to ""
  172.                                 execute console command "ne prefix %loop-value% &7"
  173.                                 delete {gildia.tag.%loop-value%}
  174.                                 set {gildia.%loop-value%.member} to false
  175.                         execute console command "pex user %name of player% add worldguard.*"
  176.                         execute player command "rg remove gildia-%{gildia.tag.%player%}%"
  177.                         execute console command "pex user %name of player% remove worldguard.*"
  178.                         set {gildia.tag.%{gildia.tag.%name of player%}%} to false
  179.                         wait 1 tick
  180.                         set {baza.%{gildia.tag.%name of player%}%} to false
  181.                         set {gildia.%name of player%.brak} to true
  182.                         execute console command "ne prefix %name of player% &7"
  183.                         set {gildia.tag.%name of player%} to ""
  184.                         set {gildia.%player%.owner} to false
  185.                         set {gildia.%name of player%.tagg} to false
  186.                 else:
  187.                         send "{@t} Nie masz gildii"
  188.                        
  189.                        
  190.                        
  191. command /zapros [<player>]:
  192.         trigger:
  193.                 if arg 1 is not set:
  194.                         send "&6Poprawne uzycie &a/zapros <nick>"
  195.                 else:
  196.                         if {gildia.%name of player%.owner} is true:
  197.                                 send "&6Zaproszono cie do gildi %{gildia.tag.%name of player%}% wpisz /dolaczam %{gildia.tag.%name of player%}% &baby dolaczyc" to arg player
  198.                                 send "&2Zaproszono gracza %arg player% do gildii"
  199.                                 set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to true
  200.                                 wait 30 seconds
  201.                                 set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to false
  202.                                
  203. command /dolaczam [<text>]:
  204.         trigger:
  205.                 if arg 1 is not set:
  206.                         send "&6Porawne uzycie &b/dolaczam <tag gildii>"
  207.                 else:
  208.                         if {gildia.%name of player%.owner} is true:
  209.                                 send "&4Posiadasz juz gildie!"
  210.                         if {gildie.%name of player%.member} is true:
  211.                                 send "&4Jestes juz w gildii!"
  212.                                 stop
  213.                         if {gildia.zapro.%name of player%.%arg 1%} is true:
  214.                                 set {gildia.tag.%name of player%} to arg 1
  215.                                 broadcast "{@t} Gracz %player% dolaczyl do gildii &2(%{gildia.tag.%name of player%}%)"
  216.                                 set {gildia.%name of player%.member} to true
  217.                                 execute console command "pex user %name of player% add worldguard.*"
  218.                                 execute player command "rg addmember gildia-%{gildia.tag.%name of player%}% %player%"
  219.                                 execute console command "ne prefix %name of player% &c[%arg 1%]"
  220.                                 execute console command "pex user %name of player% remove worldguard.*"
  221.                                 set {gildia.%name of player%.brak} to true
  222.                                 add player to {czlonkowie.%arg 1%::*}
  223.                                 add player to {members.%{gildia.tag.%name of player%}%::*}
  224.                                 stop
  225.                         send "&6Nie masz zaproszenia do gildii %arg 1%"
  226.                        
  227. command /opusc:
  228.         trigger:
  229.                 if {gildia.%name of player%.owner} is true:
  230.                         send "&4Jestes adminem gildii nie mozesz jej opuscic /usun!"
  231.                         stop
  232.                 if {gildia.%name of player%.brak} is false:
  233.                         send "{@t} Nie masz gildii!"
  234.                         stop
  235.                 else:
  236.                         if {gildia.%name of player%.member} is true:
  237.                                 set {gildia.%name of player%.member} to false
  238.                                 execute console command "pex user %name of player% add worldguard.*"
  239.                                 execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %player%"
  240.                                 execute console command "pex user %name of player% remove worldguard.*"
  241.                                 broadcast "{@t} Gracz %player% opuscil gildie &2(%{gildia.tag.%name of player%}%)"
  242.                                 execute console command "ne prefix %name of player% &7"
  243.                                 set {gildia.%name of player%.brak} to true
  244.                                 set {gildia.tag.%name of player%} to ""
  245.                         else:
  246.                                 send "&8Nie jestes w gildii"
  247.                        
  248. command /wywal [<player>]:
  249.         trigger:
  250.                 if arg 1 is not set:
  251.                         send "&6Poprawne uzycie &b/wywal <nick>"
  252.                 else:
  253.                         if {gildia.%name of player%.owner} is true:
  254.                                 if {gildia.tag.%name of player%} is {gildia.tag.%arg player%}:
  255.                                         if {gildia.%arg player%.owner} is true:
  256.                                                 send "&6Nie wywalisz siebie xd"
  257.                                                 stop
  258.                                         execute console command "pex user %name of player% add worldguard.*"
  259.                                         execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %arg player%"
  260.                                         execute console command "pex user %name of player% remove worldguard.*"
  261.                                         broadcast "{@t} &4Gracz %player% wyzucil z gildii gracza &c%arg player% &2(%{gildia.tag.%name of player%}%)"
  262.                                         execute console command "ne prefix %arg-player% &c[%arg 1%]"
  263.                                         set {gildia.tag.%arg player%} to ""
  264.                                         set {gildia.%arg player%.member} to false
  265.                                         set {gildia.%arg-player%.brak} to false
  266.                                         teleport argument to spawn
  267.                                         send "&3Wywalono Ciebie z gildi! &bPrzeteleportowano cie na spawn!" to arg player
  268.                                        
  269. command /setbaza:
  270.         trigger:
  271.                 if {gildia.%name of player%.owner} is true:
  272.                         set {gildia.home.%{gildia.tag.%name of player%}%} to location of player
  273.                         send "&{@t} ustawiles baze gildii!"
  274.                         set {gildia.%name of player%.tagg} to true
  275.                 else:
  276.                         send "&6Nie jestes zalozycielem nie mozesz przestawiac bazy!"
  277.                        
  278. on death of player:
  279.         set {_x} to a random integer between 1 and 500
  280.         set {_z} to a random integer between 1 and 300
  281.         attacker is a player
  282.         victim is a player
  283.         set death message to "&c%victim% &c-%{_z} &bzostal zabity przez &c%attacker% &6+%{_x}%"
  284.         add {_x} to {ranking.%attacker%}
  285.         remove {_z} from {ranking.%victim%}
  286.                                                
  287. on chat:
  288.         set {_chat} to "{@czat}"
  289.         if {gildia.%name of player%.owner} is true:
  290.                 replace all "{TAG}" with "**%{gildia.tag.%name of player%}%" in {_chat}
  291.         if {gildia.%name of player%.member} is true:
  292.                 replace all "{TAG}" with "%{gildia.tag.%name of player%}%" in {_chat}
  293.         if {gildia.%name of player%.mod} is true:
  294.                 replace all "{TAG}" with "*%{gildia.tag.%name of player%}%" in {_chat}
  295.         replace all "{@pobraniejeslibrak}" with "" in {_chat}
  296.         replace all "{PLAYER}" with "%player%" in {_chat}
  297.         replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  298.         replace all "{MESSAGE}" with "%message%" in {_chat}
  299.         replace all "{RANK}" with "%{ranking.%name of player%}%" in {_chat}
  300.         send "%{_chat}%" to all players
  301.         cancel event
  302.        
  303. command /Gildie_Setspawn:
  304.         trigger:
  305.                 if player has permission "sk":
  306.                         set {spawn} to location of player
  307.                         send "{@t} ustawiono set spawn blokady cuboidow!"
  308.                 else:
  309.                         send "&6Brak permisji"
  310.                        
  311. command /lider <player>:
  312.         trigger:
  313.                 if {gildia.%name of player%.owner} is true:
  314.                         if arg 1 is set:
  315.                                 if {gildia.%arg-player%.brak} is false:
  316.                                         send "&9Ten gracz nie ma gildii"
  317.                                         stop
  318.                                 set {gildia.%arg-player%.owner} to true
  319.                                 set {gildia.%name of player%.owner} to false
  320.                                 set {gildia.%name of player%.member} to true
  321.                                 execute console command "pex user %name of player% add worldguard.*"
  322.                                 execute console command "ne prefix %name of player% &c[%{gildia.tag.%name of player%}%]"
  323.                                 execute console command "ne prefix %arg-player% &c[**][%{gildia.tag.%name of player%}%]"
  324.                                 execute player command "rg removeowner %{gildia.tag.%name of player%}% %name of player%"
  325.                                 execute player command "rg addowner %{gildia.tag.%name of player%}% %arg-player%"
  326.                                 execute console command "pex user %name of player% remove worldguard.*"
  327.                                 broadcast "&6Lider gildii &2(%{gildia.tag.%name of player%}%) zostal oddany &b%arg-player%"
  328.                         else:
  329.                                 send "&6Poprawne uzycie &b/lider <nick>"
  330.                 else:
  331.                         send "&9Nie jestes Liderem gildii"
  332.                        
  333.                                        
  334. command /f:
  335.         aliases: g, gildia, factions, frakcje, gildie
  336.         trigger:
  337.                 send "&7======================&9PlaYMaX&7===================="
  338.                 send "&6/Zaloz <TAG> <NAZWA> - &a Zakladasz gildie"
  339.                 send "&6/Wywal <nick> - &a Wywalasz wybrana osobe z gildii"
  340.                 send "&6/Zapros <nick> - &a Zapraszasz wybrana osobe do gildii"
  341.                 send "&6/Dolaczam <NAZWA GILDII> - &a Dolaczasz do wybranej gildii"
  342.                 send "&6/Gildia <TAG> - &aInfo o wybranej gildii"
  343.                 send "&6/SetBaza - &a Ustawiasz baze gildii w miejscu stania"
  344.                 send "&6/Baza - &a Teleport Do Gildii"
  345.                 send "&6/Opusc - &a Opuszczasz Gildie"
  346.                 send "&6/Usun - &a Usuwasz swoja gildie"
  347.                 send "&6/Opis <opis> - &a Ustawiasz opis swojej gildii"
  348.                 send "&6/Lider <Nick> - &a Oddajesz lidera gildii"
  349.                 send "&6/Lista - &a Lista gildii na serwerze"
  350.                 send "-----------------------------------------------------"
  351.                
  352. command /help:
  353.         aliases: pomoc, pl, pluginy, plugins
  354.         trigger:
  355.                 send "&bDostepne dla Ciebie komendy:"
  356.                 send "&a/gildie - gildie"
  357.         send "&4I wiecej nie patrz w pluginy :D"
  358.                
  359. #command /drop:
  360.         #trigger:
  361.                 #send "&6Dropy - Informacje"
  362.                 #send ""
  363.                 #send "&9Wszystkie Przedmioty &c30 Procent!!"
  364.                 #send "&b Diaxy &a30 Procent"
  365.                 #send ""
  366.                 #send "&e Zloto &a30 Procent"
  367.                 #send ""
  368.                 #send "&c RedStone &a7 Procent"
  369.                 #send ""
  370.                 #send "&1 Lapis &a5 Procent"
  371.                 #send ""
  372.                 #send "&8 Zelazo &a30 Procent"
  373.                 #send ""
  374.                 #send "&0 Wegiel &a6 Procent"
  375.                 #send "&9{@t} - &a Z nami masz zawsze koxy! :)"
  376.                                                        
  377.                        
  378. on region enter:
  379.         if player is the owner of the region:
  380.                 create timed bar with text "&2Wszedles na teren swojej gildii :)" to player for 10 seconds
  381.                 stop
  382.         if player is member of the region:
  383.                 create timed bar with text "&bCzlonek twojej gildii - %player% wszedl na wasz cuboid!" to all owners of the region for 10 seconds
  384.                 create timed bar with text "&bCzlonek twojej gildii - %player% wszedl na wasz cuboid!" to all members of the region for 10 seconds
  385.                 stop
  386.         create timed bar with text "&cNie Przyjaciel - %player% wszedl na twoj teren!" to all owners of the region for 10 seconds
  387.         create timed bar with text "&cNie Przyjaciel - %player% wszedl na wasz teren!" to all members of the region for 10 seconds
  388.         create timed bar with text "&cWszedles na teren gildyjny - %{gildia.tag.%owner of region%}%" to player for 10 seconds
  389.  
  390. on region exit:
  391.         if player is the owner of the region:
  392.                 create timed bar with text "&cWychodzisz z terenu swojej gildii uwazaj na siebie!" to player for 10 seconds
  393.                 stop
  394.         if player is member of the region:
  395.                 create timed bar with text "&cCzlonek twojej gildii - %player% opuscil teren!" to all owners of the region for 10 seconds
  396.                 create timed bar with text "&bOpuszczasz teren swojej gildii!" to player for 10 seconds
  397.                 stop
  398.         create timed bar with text "&aKtos opuscil twoj teren" to all owners of the region for 10 seconds
  399.         create timed bar with text "&aKtos opuscil twoj teren" to all members of the region for 10 seconds
  400.         create timed bar with text "&7Opusciles teren gildii %{gildia.tag.%owner of region%}%" to player for 10 seconds
  401.                         set {_cot} to {gildia.tag.%name of player%}
  402.                         remove {_cot} from {listagildii::*}
  403.                         set {gildia.%name of player%.brak} to false
  404.                         set {_tag} to {gildia.tag.%name of player%}
  405.                         loop {czlonkowie.%{_tag}%::*}:
  406.                                 set {gildia.tag.%loop-value%} to