From a045b02cfeba39209eeda709d2732a027d5660c4 Mon Sep 17 00:00:00 2001 From: Travis Eggett Date: Tue, 15 May 2012 22:00:06 -0600 Subject: [PATCH] Getting the README up --- .classpath | 8 + .project | 17 + .settings/org.eclipse.jdt.core.prefs | 12 + .../Travja/HungerArena/DeathListener$1.class | Bin 0 -> 1216 bytes .../Travja/HungerArena/DeathListener$2.class | Bin 0 -> 1364 bytes .../Travja/HungerArena/DeathListener$3.class | Bin 0 -> 3234 bytes bin/me/Travja/HungerArena/DeathListener.class | Bin 0 -> 15387 bytes bin/me/Travja/HungerArena/Main$1.class | Bin 0 -> 837 bytes bin/me/Travja/HungerArena/Main$10.class | Bin 0 -> 838 bytes bin/me/Travja/HungerArena/Main$11.class | Bin 0 -> 1037 bytes bin/me/Travja/HungerArena/Main$2.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main$3.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main$4.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main$5.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main$6.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main$7.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main$8.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main$9.class | Bin 0 -> 836 bytes bin/me/Travja/HungerArena/Main.class | Bin 0 -> 31073 bytes config.yml | 47 + plugin.yml | 11 + src/me/Travja/HungerArena/Main.java | 1313 +++++++++++++++++ 22 files changed, 1408 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 bin/me/Travja/HungerArena/DeathListener$1.class create mode 100644 bin/me/Travja/HungerArena/DeathListener$2.class create mode 100644 bin/me/Travja/HungerArena/DeathListener$3.class create mode 100644 bin/me/Travja/HungerArena/DeathListener.class create mode 100644 bin/me/Travja/HungerArena/Main$1.class create mode 100644 bin/me/Travja/HungerArena/Main$10.class create mode 100644 bin/me/Travja/HungerArena/Main$11.class create mode 100644 bin/me/Travja/HungerArena/Main$2.class create mode 100644 bin/me/Travja/HungerArena/Main$3.class create mode 100644 bin/me/Travja/HungerArena/Main$4.class create mode 100644 bin/me/Travja/HungerArena/Main$5.class create mode 100644 bin/me/Travja/HungerArena/Main$6.class create mode 100644 bin/me/Travja/HungerArena/Main$7.class create mode 100644 bin/me/Travja/HungerArena/Main$8.class create mode 100644 bin/me/Travja/HungerArena/Main$9.class create mode 100644 bin/me/Travja/HungerArena/Main.class create mode 100644 config.yml create mode 100644 plugin.yml create mode 100644 src/me/Travja/HungerArena/Main.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..f2c0a67 --- /dev/null +++ b/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..a9ff7a0 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + HungerArena + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..9598429 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +#Thu Mar 29 22:18:31 MDT 2012 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/bin/me/Travja/HungerArena/DeathListener$1.class b/bin/me/Travja/HungerArena/DeathListener$1.class new file mode 100644 index 0000000000000000000000000000000000000000..321f305f7f68207906b1a1c5adcc0408bbdfdea1 GIT binary patch literal 1216 zcma)5YflqF6g|_fENxe*Q$!L>Q(Hg|*}HMx9$PLRl5wh9@Mqo(Ue* z3br2zDZKQO4visM=M8Q-Tvn|&rMf5wI(isV=hpY3l)U5!hMu5i`{_l3FLZ&QV~97n zlRk3zvG5p13$9nSO5wqQ9ausJc5rOHZJv>5&#Eo$V4Yzz(-ro=v1WD|w7gppF);KQ z(9x?_*A2uFk0XkH0|^W;L^H~@uV72@Iy@{1Z>N=Is^FHnv&%hO?b}98rOq(j4Y~9Z zB^32SspBTY@OdS-1J9P#&Cqr#!i!@R{V|Ne)G^L5&{3RxjR$$xaXkYQxI^h|y!)`h zFw~j!AD^58N*kEMT`D6#Iuf$NFrO)$$8Ei9Zl=R@fl96y8HSZTH#BR!Axxi!ih1mY zo-dqzbKi3h&5|JMrceT*v!*Gi36m>bO(+UkMPc?*NF4J^Q7=ndSKKUE|1 zH`!bQOSq?FnPH@(SQnIJ;65HOBz!7DQTRTul57V%Yw?>AJ$-zeGAxVdw$gU2$Zffx zYDSval4ZyBDdD0BYHmfx3d3X3lfRAjVefQ?&K3+_scC zrxa$HkfI7NZlFYI48ivR!s literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/DeathListener$2.class b/bin/me/Travja/HungerArena/DeathListener$2.class new file mode 100644 index 0000000000000000000000000000000000000000..205b71090f99fd321036e506caaa97d4f4c82d49 GIT binary patch literal 1364 zcma)6X;TwH5Pg%ZgoFiRX>k-< zvsSXcoIT@VQ5Pj%MPz@aO0^jOTw9UgyhDo z;9farx}K22Nlb*GF+?|bl^Yh9CF5m&LlnFaS{Py{tBbyrJZ}kx7O!l&iR%BM8)FU!eQvo*-pvG` z3PW8qCkvMC(tRuluWT1Xm|+-fLT5T=F~^|WvaY7*wn-uyJJkcCN&+zIN<0*ug3YPr zjOt1;GodY}w;Do4y+@XCyhxQR;+NTDx^dVUg4~a5>M|e!5 QhG}FmPqPRmppv5J7kUq1fdBvi literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/DeathListener$3.class b/bin/me/Travja/HungerArena/DeathListener$3.class new file mode 100644 index 0000000000000000000000000000000000000000..04a83a62fecbee917eeabeaba6e7d83653dbd281 GIT binary patch literal 3234 zcma)9YkL$$7Je&J(8;8L7{Ckb;vi8bAuzfqyE=GDVu0WzXcB{E|=1=PO&eO&bhwhK6BTlqpNv zxzzT-VU_g_EM#b$q4pMRTMk-^VWFQly{0QjeP$l|(+mrW(rOxGSdnquTxzf|GGh8E zW&5T-p1Q@7r0T%1M8H6;UY#dUhj<(@EETB7 zGKN@Evo6V)w(2R24l1`l46rfdWTiDAT~qJNM6RP|STi5znl?~CF}GmX;Sczufr}Yd z&m&a=D{%>BV$3S!Oq=22Ic#-H(@xi66;>O#l+t=`)tXD7370V#I?JY=V_2RE5H0wo zm1=WcIj+kf9mg6p8%Q!NJ;$*?3)V8!W*yrnos@*-$xuzCT++?Ev`6a%)+0q0v(g@R zbPz0{Un!_4$&=Xjg0HPzC2+M?y3kdlPLYsWg+B}YMYHf*3ueG`tw37y#N^PBmbp&g zdfY$^p1GIGkkISWEL2VfwxWxa z+v+}_VOd2(G(-b8Gh8@V4cB8Ex&?Z$ox;y4zekRem$Mc1`7Xggj%>rN0=?*Cs3X=s zf!i1^nCZk&NqfPxhLjseKbF?vcI+~+lgvfLJMz-+a4g3axC3`m z8*b_C?ChcJL~T@=s0jM;SAn~655XeG#*{t8u`^uJxTzO+AKT85p51k0c<> zpTH=n4jTqtM-FAB=XWd5lR2_CtBflyc4=_N1nva^A_$x=yGXOjamN{wv+*%2C*>(t zkg`7%3_ zZXVF0e;4?N7F|T59eL&XW0v%lKG`SmpgyUildZ}cRlcU~7kF4x>xr6CIT}1U&%mP$ zE6?e9)tqkG#{?e76I3p}YL9fOToS+Mqqg{zz(E|MCZWF8>KHaA@Ay5zXhUz6UcOt7 z1^s+j;0T@}WqIlK1g%SRAs9JF1)kIMq;`k&vv~?j13Mvb9Fq)-DcUy6a`tSt%v_!t zo+o!T59pX)5O@(UQA{-McAGRZuZ+4D5(_kEOvg^`HZ7IfOkW)VZ<(B~#miJWZ3W-C zyO#ivE{(HS@w$Q67*dg}&PSQRNxV^>62b6bxIEgEm9qU!Pm&jJQCR(MLB;V7-ZSv- ztXn=56nGyW5MA9{ke1h#vmIA;NN=v@2on2|z{kO$rguazn2S1Zp9!486y
+Dt3 za7!a2SR>Y_^hI-8_r>Sbr!yB#`H)2Sm^Qsg7~hZ$r~HJVtMnaM~{l%AX3N zd{f8!oPwKG8W&>J*Wh|>jBff)J8L-}l|r}j^UjdKfAKXT<=EjXL|;4%t+N_U>E=&S z578^7+~%6CQfxdX?4Cryhb%7t!iE z+Q;a3Nz2+PEN*F?LPN`GG=35=E~oE!AVA6BPvCsoYe8bi1-OuY87{)IP*u$VGRKKj zYB`0)r?BD_60~Y4;qpm#vPx^6WE0iR6;+1)Ra#kS!;UItW5{*Q45cg=;YpORiNC@& zRfULfWA|G)+B%J!82*iInYGi%F!X3;)3}AgR~p|e;q6ImuaZA3;gjlyBA?l8jBd!#%*m%ERFH~Ip;aRu zgGPK9D**l!uI2}^g&)FB{xnATVcgG;V1hq`6Z~0x$B*I%{v3Yf$M6%Mz|Z_RV|~FS0KB?d2z!$zNtg!e&2zl^y1|K76P4TybifRd~rd&}II6z5{ zQ%#+~K72ta#aKI)@K*ut4Ec8n7M!Kg9W#i>ptlr$!QqP<&SC^ilXMvRzmFRHi(scn Q=<)j>d_ya(RG-t|uetwtWB>pF literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/DeathListener.class b/bin/me/Travja/HungerArena/DeathListener.class new file mode 100644 index 0000000000000000000000000000000000000000..a4915992643bb270b5f23a036caf94d998b04c41 GIT binary patch literal 15387 zcmbta31Ae}`TxE*Z!(+BaE1WkkVUQ#5+bLXh(az11cD?IE{#hvBrD5q+}!{{t9aC_ zR%>f(!5;Qd)E+9;V4zy9)@rS7wQ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x zh4fHm9WzNgz>hfRO@7lo)v9CK+O2M(Z?gR%_r2e%uuglM&Y+e8T05u|Yt NSN!qW?)5z9`u}zg5W)Ze literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$1.class b/bin/me/Travja/HungerArena/Main$1.class new file mode 100644 index 0000000000000000000000000000000000000000..8a548a4285786c2884e7ea80d55a55f498ed4f96 GIT binary patch literal 837 zcmaJA=LYjT#ybEVv9cPZJuwREm$)I1=h`+C{UM$2>dYD%J4}tn1bo zHW%F2>QHMnRY@E7@W8}2bZ(Jo4k6jI+ETUSE{Q`Otv}pD4NP=HoG!LxykO)i&cP9L&-KA%{YR3mD;iM_=b5 z{|ke&FQri3j2DF{uuW5}(YgWVx_X%O3=LWqY(iJ)^qOLg*zKJkaN6g%_5Fggsqwn2fUlgP#|q@YQt0x_utX`P0|emRNB(zTA{Bz-R= zJ_J8_0Nw(@b0DtQN}H%wOO}0)&pp0A*FXP${{i4Bwk;S8>mv~yDn1_Y;B_TapoC!9V8dlFJxyqIGb!Fwqe!U3Nfpg*9`oT5SDB8d zU`>}s7tXnl9!#~Fs*-iw!W|2@8CEZUhl5qzWw29G_JtY?#jxV}-CU(XRGpq?WiWxm zMXWQh-6d>b%fcqZ@(jnpeLNtmBbDFN52HyRrW&B3N_;W$aoobnA XQMQ4HctmTB{=#FlX{W2yx-|X)24BV7 literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$11.class b/bin/me/Travja/HungerArena/Main$11.class new file mode 100644 index 0000000000000000000000000000000000000000..470867ae70fbff1e19b8c9d4d75d0689939e6eab GIT binary patch literal 1037 zcmaJ=+iuf95IyUpHE~T7(uPYfw9o)aTI#0U2_T_}s+CfZNL8frv~d>Ksk4^Wb{_aE zq^1ZS_y9fxarp#3Q7!31W;p`~h>u_f?k)BX5 zm5|)o=DsXet0vM6xeo7fC*aa^-n2TxjZKU*2~IOszVygF{>+zt{DPrcIuB>`YI&C-T@TwL1BR>(6Bo30$wmg2g%qZ2 zOkkQJRnno^hA+kIq}vi|XFwp|2wfiRa^>su(3sY&7#7Z{g?dGGr&J;{n8mz_Ifj|D zTVUfl7KrDD3O@?TFg2i(#D3sx@@T&);+lmUSTb>w%0F(=X{U{%W-;alf-8$M-nMZE zC5DVA;-*kNp%@CKawAlp(@G8w{MZ?oYZIto#l$kfjyP@H#VQTFr9$3zc@%GpDB>Os zwov*{v$r(YH5*l|(@0$|JE2cx*dBw`3=`#w4PS3XMsL%qCP6KKCEXy5XwKUr-VfV0 z9^o;Cgt8uXyIi&zK9o+E?GDV&(A^ZWEmZBCh}vkS??+8#D$?GPQmA^sqew(pq(w>5 zI|d_{)0+e2@_KLRZ!zedfKA?uq&=r|ie$F3+{a{PrH@?YGxDE~0}J%EjxSIbj32m6 zXMK^vaRpaNGF-#-5NeMiwXaw?#N;7njZ2P kHGX5s_;V^xahNBCdxUJ@J|2)v)2tri327E()H&(-2kNKyasU7T literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$2.class b/bin/me/Travja/HungerArena/Main$2.class new file mode 100644 index 0000000000000000000000000000000000000000..6d770e2064e0bedba89305d8d753f461c10fdff0 GIT binary patch literal 836 zcmaJhgO9T@3fN@O5KanLH*F~R-yl036??F+ml{a%7U zn2I034<+8W7B(zv;PKu)_uTVt&V7IW{`d``gIyB_!^T(y2Z~RIJa|*dRH&CqNFMZg zCR-g7bq06HCp;K&nFjBop@>TpOAO6(^nE2Ik4A!FsXWe#)>BgLT`n6E??ooFa*tul zTSW8^8S33U5f&J(Ixw+pqlSh93ob*=(}YGZlj3bPj)XdxcG2wRF&`armFai})^%$P zn+xu1b*QzPs-%ruxMSir!}{gF;b0wi8LU*41ED5DF|2uhFIQ<0RVOD|8BF1D8TT02 z^A&92zKLyy)j5uX9XueXBbD755zcpXG!OY7 z8JvA7h3bxYQHTQDG{hRMD`2jxXGyQnpk=`(bcIgODAtJG-u()v{TqNq4Dr>H7zh|HTUc literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$3.class b/bin/me/Travja/HungerArena/Main$3.class new file mode 100644 index 0000000000000000000000000000000000000000..f99a6efec36b10b6549a2aac62a58489597c8f59 GIT binary patch literal 836 zcmaJnvt3OJ-(_LtB=>~?Gd+xbsZqA)Qe}A3u3kwXb3-q9pl82dKSSU}@qWzpygR5nI;=N2|TJAAy zxbujeBZgWpk3}5}*KJr>Y`{d*MjZ}=>1skVNTqmJjY6RgCtb9HJmT3ASE-JtU`@Bi zus-L$_71gXs!BF+2lp)8WmvuXH*BopK0`ebC&*Reh1Kb4T6z=MU&I3j zw!4H4Y+2Z3Sf1h7c!)>jbf|J3N4zNeq9}Mmj;^@Dh0%jjr84n5`wWdiUa3gDNww{D zJ*{V&M|QlHQI;3P>x=Rvk8QZ<5G9wrd^F-RX87b@?lPLd-ZVWBG8W38!|-Q2I-Z3( z9~ta@DTV4~yeLG0O&X#}>l&Ej=vmS$G-%b)AasdNyA*4r(cS(EyZaqCKA&@zHFln% zYU2zoifyXV=uOC}txTS)9noY(u+w24;$^I|F z5A?wo(FcE&c&EG2;?fNaGxywc&)l3lfBt^|0pJO?Ef@@IBM}}bJ|6P$btMy_UML}X z*yE{e?pUZXctbwsVa8<=?hl3{DlIH9G|tesm6Uvt35JF8I4zowNws^iY@2w`Q<;{# z3>*GDVsOY%>*TSp!Eo7yg+&J@>Mm?}45qIM^=>M~n`$%=>R{4Eqnk%OJLD?W@f57- z))?03+}GTp)=X7N2RCrb!cB(Ni+{t#DsD5_i75L*jfG-Z@q=!zl5kL+oTOzqf!m9? z!@!;{VFPz9Y%(m*a9nKR9yvWwIgcY=ls!=tJRwI{{O+02{ZgeeX$N}@PCu_yBwnT3 zc3V&Dk>-&dFJ+YF1@U^KJkDbmJ_4fTvXhTST*eF^{PSH#6F8iv`$EP-wdXL}vmG7H zLcx0mcTY;8IvFntQDBpXXwtd_=6QOS^a>4HHXK5i==6+YjX16C&v08`apmJFXIW#X z8LBpZqCv4sH5$E&YqXP5@TMxe#MC*j^$G45TyLy>!@7ZY|7jV&P&a;`)AFWTCYn@j V;65JEUZc105G^|CF10Rw{{W~?Gd+xbsZqA+4zdwHgc!q5g2E*D&_y>xQ2i$*K$yBIUN=WYa zcqZFBCh82%fRDL9BC69)JVWB+EiuO}d4KJ4si1#v+S-H!w z;m#v^hYa;@o(KyJS8bSBY@mjw4GRuK&DDfvm`U-j8bv}KOuA@=dCZ50TxB|*f_2>* z!}^^2+B?)*O;xgiTexH5HpA-WzhPq)cNwfylzpMbLNTnkUYM)YkE)ZCtn?>vu!wsM z?D-NlaNoox!}1Kr#ugrs(~-(~67!<$iK5^sIlAJ8=SKHSmB}>l_81!dyi&1vlWE&6 zJ*_92M|QlH@h~rl*AwM&p4f2V5ha)1d^F-RVff@;>@uFf{xsbeG7&16!w6xXR1|0o2m^w T#3S14^cEhYLnqy()}`+sthvQI literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$6.class b/bin/me/Travja/HungerArena/Main$6.class new file mode 100644 index 0000000000000000000000000000000000000000..8ff684424ddcd5ac1651608e94581214332816eb GIT binary patch literal 836 zcmaJC}txTS*qHJglSw%G|xl6^11 z5A=r*Ac#JZc&EG2;?fNaGxywc&)l3lKmUIJ0pJO?Ef@@IBM}}bJ|6P$btMy_UML}X z*yE{e?pUZXctbwsVa8<=?hl3{DlIH9G|tesm6Uvt35JF8I4zowNws^iY@2w`Q<;{# z3>*GDVsOY%>*TSp!Eo7yg+&J@>Mm?}45qIM^=>M~n`$%=>R{4Eqnk%OJLD?W@f57- z))?03+}GTp)=X7N2RCrb!cB(Ni+{t#DsD5_i75L*jfG-Z@q=!zl5kL+oTOzqf!m9? z!@!;{VFPz9Y%(m*a9nKR9yvWwIgcY=ls!=tJRwI{{O+02{ZgeeX$N}@PCu_yBwnT3 zc3V&Dk>-&dFJ+YF1@U^KJkDbmJ_4fTvXhTST*eF^{PSH#6F8iv`$EP-wdXL}vmG7H zLcx0mcTY;8IvFntQDBpXXwtd_=6QOS^a>4HHXK5i==6+YjX16C&v08`apmJFXIW#X z8LBpZp+T`rH5$E&YqXP5@TMxe#MC*j^$G45TyLy>!@7ZY|7jV&Q8)ga)AFWTCYn@j V;65JEUZc105G^|CF10Rw{{Xc2#Y+GH literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$7.class b/bin/me/Travja/HungerArena/Main$7.class new file mode 100644 index 0000000000000000000000000000000000000000..ad51a15c590d405c5f0a382b7db4580c0dc1f826 GIT binary patch literal 836 zcmaJC}txTS)9noY(u+w24;$^I|F z5A?ww;G^i@5$|*tT3ot;VdkED?wOl&=jY$=KL9+zwgrP>Z6v}2#m7S)zOG~<)C(mf z4|_b7%^eFh25-p6Jj}RE!u`QeM5ToVhQ=BCwvv($GQqG=9;Zd~F{yShmTeR7c`DO# zmtn)7M+^=bYMne5HW)6uu(0UBMBRlAkHPdcq25iUcvFoALLE%HXms<4XNO#+I-Y_x z-5SICoco$P)S9U(>EH%#S-8otdhu_#SjBAyI}v4HsIgECD}K<;RT2)WlasUzCvbZa zcNo~yC2ZiXg-wR#8IFrB+#{z4D(7*;i?Sz*f+ytYir+mmx?iePChcI4!RhCfio~l_ z+ivS=J<>d~7j-KEy0?;pK2#ajRX literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$8.class b/bin/me/Travja/HungerArena/Main$8.class new file mode 100644 index 0000000000000000000000000000000000000000..8288995c19c5ede7784badadbe9612e8d705c124 GIT binary patch literal 836 zcmaJ`SKZEIaM*@6-Mv#?T-MX|7};Fb#Z*CZL!Y_k)XB>P^1 zALtJsz!wmG81YVbp~a;e7-sId=bpJacYgl;{sX`h>{>7wHpU`2P<%4t!K+FpLOoYP z@?gMI+3HxRF}Nc>;X%e_61)jVA}TE`F*MK6x0RGU%ml+yd7Kul$E4c7Shh>NXQ@of zJ%%lB5z#+nsP*z#*kHKqz`}AJCK?WGxD2MJ35|X##p`Mu3Ux5;qS?Uaj$ zbZZQo3+`)ms5MhnvW^?LW#J~n`o+KDU>&y^>_n79p(a8xta*MvS4j|7CnsqcOyTY_ z?l7>YE7-za3)>87kIZP~8QL?tDi_ z^N|0Z!P%Ems9wg4LKN7hA)2%n{f;u`H_6x^B09x-*!ZGVFE1=pJ!->_-m-G5rfZ#0ZQ=d|3JmWdWs V8@P`LwAbh@JVcvLx=XD~-#^83#cKcn literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main$9.class b/bin/me/Travja/HungerArena/Main$9.class new file mode 100644 index 0000000000000000000000000000000000000000..128354b08afe670e009a9b679aa68f197af167ab GIT binary patch literal 836 zcmaJaz|j~E;=)H-=0Y%pAPVPVmMiMk6L9)sy?LcNX#AU+p!N1sLJb}Y$x-VoRRC^AiJ=@Xo zEEK$FaQCGYsx#z8Aqs5L5KUTFz&uaSl3t-f%Z5Yf5}lq=tP!WR{TXiSE3SP!<1B0J zEJM}CFEl82sYavMaf5a;3f@#@kC-~=wLZc9f}4%CZ&)|*?msQ#H|oZp3tHY(%S4l^ V4Lrmn+H3R{9-~Dk-KEy0?;p*v#d`n% literal 0 HcmV?d00001 diff --git a/bin/me/Travja/HungerArena/Main.class b/bin/me/Travja/HungerArena/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..79cf9941335d9438bac0629a53f748fb14dd0c2a GIT binary patch literal 31073 zcmcg#349bq)_<=m$#f>2naq{UWO7XI6T*E26uGZ(UvfJnLlOuxVUlp8sH_Sq9w->p z^+08H6-6Zw6>ry*Ro83Pb#+x-_48bBQTSeUPxthY;F^UW`ANE_>(#&h_3G7ouc|xa zb4MO{7yx?l%S^x!(w7A)ricA2miQ~iv;=Dd;i2I`&|fjZUmr9<970YgTwAfIW$DuT z=8DFKmfHGY#S;Gtf5kZZHCg$Lz#BrfgjA(ev^3W@RL~8QtgWb`Yal!b!8EzSznbnK zxC~-L!(spGs`{p8l1Q9ZUmNr{w}b--Jv);bTxFmV2sYO@udWcNgnv4-&|d%be}Xa5U3d*3NEe>FGENe6%MTl1Q8sD9>@5b>ZS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BD_IQ+@`PhFKJZXntL|>Y7 zl)ggfcY+s|9i{Id>MDHS-wV%3wI9;Hue13%Mzu6)+KegsaRcppI+@l^nt_95kTGQZ z3VDb}(E*;{(^A;d4pe@d7<~i2$;7NCz8N5Mw27r3rSFjXU6V?G#tT0|!cqE`qu(X3 z4w4LD%I{TTMz_N-^f2ZfhRe18$oQ`OAO8ClS1QYCM|XPum~q@iaTxA946U*MT@(B9 znA*-ivJ7DS5_-_d_@#UcUFSd&eQ~t%Lth50ULTEIw??klM6TCIt~W=nyCT;+BUkZ7 MQ1nCJLahA!KTjYceE Playing = new ArrayList(); + public ArrayList Ready = new ArrayList(); + public ArrayList Dead = new ArrayList(); + public ArrayList Quit = new ArrayList(); + public ArrayList Out = new ArrayList(); + public ArrayList Watching = new ArrayList(); + public ArrayList NeedConfirm = new ArrayList(); + public HashSet Frozen = new HashSet(); + public boolean canjoin; + public boolean exists; + public FileConfiguration config; + public ItemStack Reward; + public ItemStack Cost; + public void onEnable(){ + log = this.getLogger(); + log.info("HungerArena has been Enabled"); + config = getConfig(); + config.options().copyDefaults(true); + this.saveDefaultConfig(); + getServer().getPluginManager().registerEvents(new DeathListener(this), this); + Reward = new ItemStack(config.getInt("Reward.ID"), config.getInt("Reward.Amount")); + Cost = new ItemStack(config.getInt("Sponsor_Cost.ID"), config.getInt("Sponsor_Cost.Amount")); + } + public void onDisable(){ + log = this.getLogger(); + log.info("HungerArena has been Disabled"); + } + @SuppressWarnings("unchecked") + public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ + Player p = (Player) sender; + String pname = p.getName(); + if(cmd.getName().equalsIgnoreCase("Sponsor")){ + Player target = Bukkit.getPlayer(args[0]); + if(!Playing.contains(p)){ + if(args.length== 0){ + p.sendMessage(ChatColor.RED + "You didn't specify a tribute!"); + return false; + } + if(args.length== 1){ + p.sendMessage(ChatColor.RED + "You didn't specify an item!"); + } + if(args.length== 2){ + p.sendMessage(ChatColor.RED + "You didn't specify an amount!"); + } + if(args.length== 3){ + if(args[1].equalsIgnoreCase("57") || args[1].equalsIgnoreCase("7")){ + p.sendMessage(ChatColor.RED + "You can't sponsor that item!"); + }else{ + int ID = Integer.parseInt(args[1]); + int Amount = Integer.parseInt(args[2]); + Cost = new ItemStack(config.getInt("Sponsor_Cost.ID"), config.getInt("Sponsor_Cost.Amount")*Amount); + ItemStack sponsoritem = new ItemStack(ID, Amount); + if(p.getInventory().contains(Cost)){ + if(!Playing.contains(target)){ + p.sendMessage(ChatColor.RED + "That person isn't playing!"); + }else{ + if(args[0].equalsIgnoreCase(pname)){ + p.sendMessage(ChatColor.RED + "You can't sponsor yourself!"); + }else{ + target.sendMessage(ChatColor.AQUA + "You have been Sponsored!"); + target.getInventory().addItem(sponsoritem); + p.sendMessage("You have sponsored " + target.getName() + "!"); + p.getInventory().removeItem(Cost); + } + } + }else{ + p.sendMessage(ChatColor.RED + "You don't have the necessary items to sponsor!"); + } + } + } + }else{ + p.sendMessage(ChatColor.RED + "You are playing, you can't sponsor yourself!"); + } + } + if(cmd.getName().equalsIgnoreCase("Ha")){ + if(args.length== 0){ + p.sendMessage(ChatColor.GREEN + "[HungerArena] by " + ChatColor.AQUA + "travja!"); + return false; + } + if(args[0].equalsIgnoreCase("List")){ + if(p.hasPermission("HungerArena.GameMaker")){ + p.sendMessage(ChatColor.AQUA + "-----People Playing-----"); + for(Player players:Playing){ + p.sendMessage(ChatColor.GREEN + players.getDisplayName() + " Life: " + players.getHealth() + "/20"); + } + if(Playing.size()== 0){ + p.sendMessage(ChatColor.GRAY + "No one is playing!"); + } + p.sendMessage(ChatColor.AQUA + "----------------------"); + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + if(args[0].equalsIgnoreCase("SetSpawn")){ + if(p.hasPermission("HungerArena.SetSpawn")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Spawn_coords", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn for dead tributes!"); + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + String[] Spawncoords = config.getString("Spawn_coords").split(","); + double spawnx = Double.parseDouble(Spawncoords[0]); + double spawny = Double.parseDouble(Spawncoords[1]); + double spawnz = Double.parseDouble(Spawncoords[2]); + String spawnworld = Spawncoords[3]; + World spawnw = getServer().getWorld(spawnworld); + Location Spawn = new Location(spawnw, spawnx, spawny, spawnz); + if(args[0].equalsIgnoreCase("Join")){ + if(p.hasPermission("HungerArena.Join")){ + if(Playing.contains(p)){ + p.sendMessage(ChatColor.RED + "You are already playing!"); + }else if(Dead.contains(p) || Quit.contains(p)){ + p.sendMessage(ChatColor.RED + "You DIED/QUIT! You can't join again!"); + }else if(Playing.size()== 24){ + p.sendMessage(ChatColor.RED + "There are already 24 Tributes!"); + }else if(canjoin== true){ + p.sendMessage(ChatColor.RED + "The game is in progress!"); + }else{ + NeedConfirm.add(p); + p.sendMessage(ChatColor.GOLD + "You're inventory will be cleared! Type /ha confirm to procede"); + } + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + if(args[0].equalsIgnoreCase("Confirm") && NeedConfirm.contains(p)){ + Playing.add(p); + NeedConfirm.remove(p); + p.getInventory().clear(); + p.getInventory().setBoots(null); + p.getInventory().setChestplate(null); + p.getInventory().setHelmet(null); + p.getInventory().setLeggings(null); + getServer().broadcastMessage(ChatColor.AQUA + pname + " has Joined the Game!"); + } + if(args[0].equalsIgnoreCase("Ready")){ + if(Playing.contains(p)){ + Ready.add(p); + p.sendMessage(ChatColor.AQUA + "You have marked yourself as READY!"); + if(Playing.size()== Ready.size()){ + p.performCommand("Ha Warpall"); + } + }else if(!Playing.contains(p)){ + p.sendMessage(ChatColor.RED + "You aren't playing!"); + } + } + if(args[0].equalsIgnoreCase("Leave")){ + if(!Playing.contains(p)){ + p.sendMessage(ChatColor.RED + "You aren't playing!"); + }else{ + Playing.remove(p); + Quit.add(p); + p.sendMessage(ChatColor.AQUA + "You have left the game!"); + p.getServer().broadcastMessage(ChatColor.RED + pname + " Quit!"); + p.getInventory().clear(); + p.getInventory().setBoots(null); + p.getInventory().setChestplate(null); + p.getInventory().setHelmet(null); + p.getInventory().setLeggings(null); + p.teleport(Spawn); + if(Frozen.contains(p)){ + Frozen.remove(p); + } + if(Playing.size()== 1 && canjoin== true){ + for(Player winner:Playing){ + String winnername = winner.getName(); + p.getServer().broadcastMessage(ChatColor.GREEN + winnername + " is the victor of this Hunger Games!"); + winner.getInventory().clear(); + winner.getInventory().addItem(Reward); + } + for(Player spectator:Watching){ + spectator.setAllowFlight(false); + } + canjoin= false; + Watching.clear(); + } + } + } + if(args[0].equalsIgnoreCase("Watch")){ + if(p.hasPermission("HungerArena.Watch")){ + if(!Watching.contains(p) && !Playing.contains(p) && canjoin== true){ + Watching.add(p); + for(Player online:getServer().getOnlinePlayers()){ + online.hidePlayer(p); + } + p.setAllowFlight(true); + p.sendMessage(ChatColor.AQUA + "You can now spectate!"); + }else if(canjoin == false){ + p.sendMessage(ChatColor.RED + "The game isn't in progress!"); + }else if(Playing.contains(p)){ + p.sendMessage(ChatColor.RED + "You can't watch while you're playing!"); + }else if(Watching.contains(p)){ + Watching.remove(p); + for(Player online:getServer().getOnlinePlayers()){ + online.showPlayer(p); + } + p.teleport(Spawn); + p.setAllowFlight(false); + p.sendMessage(ChatColor.AQUA + "You are not spectating anymore"); + } + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + if(args[0].equalsIgnoreCase("Kick")){ + Player target = getServer().getPlayer(args[1]); + if(p.hasPermission("HungerArena.Kick")){ + if(Playing.contains(target)){ + if(p.isOnline()){ + Playing.remove(target); + getServer().broadcastMessage(ChatColor.RED + target.getName() + " was kicked from the game!"); + target.teleport(Spawn); + target.getInventory().clear(); + target.getInventory().setBoots(null); + target.getInventory().setChestplate(null); + target.getInventory().setHelmet(null); + target.getInventory().setLeggings(null); + Quit.add(target); + if(Playing.size()== 1 && canjoin== true){ + for(Player winner:Playing){ + String winnername = winner.getName(); + p.getServer().broadcastMessage(ChatColor.GREEN + winnername + " is the victor of this Hunger Games!"); + winner.getInventory().clear(); + winner.getInventory().addItem(Reward); + } + for(Player spectator:Watching){ + spectator.setAllowFlight(false); + } + canjoin= false; + Watching.clear(); + }else{ + Playing.remove(target); + Quit.add(target); + } + } + }else{ + p.sendMessage(ChatColor.RED + "That player isn't in the game!"); + } + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + if(args[0].equalsIgnoreCase("Refill")){ + int list056; + list056 = 0; + int limit; + limit = getConfig().getStringList("StorageXYZ").size(); + while(limit > list056){ + String xyz2 = getConfig().getStringList("StorageXYZ").get(list056); + int chestx = getConfig().getInt("Storage." + xyz2 + ".Location.X"); + int chesty = getConfig().getInt("Storage." + xyz2 + ".Location.Y"); + int chestz = getConfig().getInt("Storage." + xyz2 + ".Location.Z"); + String chestw = getConfig().getString("Storage." + xyz2 + ".Location.W"); + Block blockatlocation = Bukkit.getWorld(chestw).getBlockAt(chestx, chesty, chestz); + exists = false; + if(blockatlocation.getState() instanceof Chest){ + exists = true; + Chest chest = (Chest) blockatlocation.getState(); + chest.getInventory().clear(); + ItemStack[] itemsinchest = null; + Object o = getConfig().get("Storage." + xyz2 + ".ItemsInStorage"); + if(o instanceof ItemStack[]){ + itemsinchest = (ItemStack[]) o; + }else if(o instanceof List){ + itemsinchest = (ItemStack[]) ((List) o).toArray(new ItemStack[0]); + }else{ + try{ + throw new Exception(); + }catch (Exception e) { + e.printStackTrace(); + } + chest.getInventory().setContents(itemsinchest); + } + } + } + } + if(args[0].equalsIgnoreCase("Restart")){ + if(p.hasPermission("HungerArena.Restart")){ + for(Player spectator:Watching){ + spectator.setAllowFlight(false); + } + Dead.clear(); + Playing.clear(); + Quit.clear(); + Watching.clear(); + Frozen.clear(); + canjoin = false; + p.sendMessage(ChatColor.AQUA + "The games have been reset!"); + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + if(args[0].equalsIgnoreCase("Reload")){ + reloadConfig(); + p.sendMessage(ChatColor.AQUA + "HungerArena Reloaded!"); + } + if(args[0].equalsIgnoreCase("WarpAll")){ + if(p.hasPermission("HungerArena.Warpall")){ + if(Playing.size()== 1){ + p.sendMessage(ChatColor.RED + "There are not enough players!"); + } + if(Playing.size()>= 2){ + config.getString("Tribute_one_spawn"); + String[] onecoords = config.getString("Tribute_one_spawn").split(","); + Player Tribute_one = Playing.get(0); + double x = Double.parseDouble(onecoords[0]); + double y = Double.parseDouble(onecoords[1]); + double z = Double.parseDouble(onecoords[2]); + String world = onecoords[3]; + World w = getServer().getWorld(world); + Location oneloc = new Location(w, x, y, z); + Tribute_one.teleport(oneloc); + Frozen.add(Tribute_one); + Tribute_one.setFoodLevel(20); + config.getString("Tribute_two_spawn"); + String[] twocoords = config.getString("Tribute_two_spawn").split(","); + Player Tribute_two = Playing.get(1); + double twox = Double.parseDouble(twocoords[0]); + double twoy = Double.parseDouble(twocoords[1]); + double twoz = Double.parseDouble(twocoords[2]); + String twoworld = twocoords[3]; + World twow = getServer().getWorld(twoworld); + Location twoloc = new Location(twow, twox, twoy, twoz); + Tribute_two.teleport(twoloc); + Frozen.add(Tribute_two); + Tribute_two.setFoodLevel(20); + p.getWorld().setTime(0); + } + if(Playing.size()>= 3){ + config.getString("Tribute_three_spawn"); + String[] coords = config.getString("Tribute_three_spawn").split(","); + Player Tribute_three = Playing.get(2); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_three.teleport(loc); + Frozen.add(Tribute_three); + Tribute_three.setFoodLevel(20); + } + if(Playing.size()>= 4){ + config.getString("Tribute_four_spawn"); + String[] coords = config.getString("Tribute_four_spawn").split(","); + Player Tribute_four = Playing.get(3); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_four.teleport(loc); + Frozen.add(Tribute_four); + Tribute_four.setFoodLevel(20); + } + if(Playing.size()>= 5){ + config.getString("Tribute_five_spawn"); + String[] coords = config.getString("Tribute_five_spawn").split(","); + Player Tribute_five = Playing.get(4); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_five.teleport(loc); + Frozen.add(Tribute_five); + Tribute_five.setFoodLevel(20); + } + if(Playing.size()>= 6){ + config.getString("Tribute_six_spawn"); + String[] coords = config.getString("Tribute_six_spawn").split(","); + Player Tribute_six = Playing.get(5); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_six.teleport(loc); + Frozen.add(Tribute_six); + Tribute_six.setFoodLevel(20); + } + if(Playing.size()>= 7){ + config.getString("Tribute_seven_spawn"); + String[] coords = config.getString("Tribute_seven_spawn").split(","); + Player Tribute_seven = Playing.get(6); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_seven.teleport(loc); + Frozen.add(Tribute_seven); + Tribute_seven.setFoodLevel(20); + } + if(Playing.size()>= 8){ + config.getString("Tribute_eight_spawn"); + String[] coords = config.getString("Tribute_eight_spawn").split(","); + Player Tribute_eight = Playing.get(7); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_eight.teleport(loc); + Frozen.add(Tribute_eight); + Tribute_eight.setFoodLevel(20); + } + if(Playing.size()>= 9){ + config.getString("Tribute_nine_spawn"); + String[] coords = config.getString("Tribute_nine_spawn").split(","); + Player Tribute_nine = Playing.get(8); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_nine.teleport(loc); + Frozen.add(Tribute_nine); + Tribute_nine.setFoodLevel(20); + } + if(Playing.size()>= 10){ + config.getString("Tribute_ten_spawn"); + String[] coords = config.getString("Tribute_ten_spawn").split(","); + Player Tribute_ten = Playing.get(9); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_ten.teleport(loc); + Frozen.add(Tribute_ten); + Tribute_ten.setFoodLevel(20); + } + if(Playing.size()>= 11){ + config.getString("Tribute_eleven_spawn"); + String[] coords = config.getString("Tribute_eleven_spawn").split(","); + Player Tribute_eleven = Playing.get(10); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_eleven.teleport(loc); + Frozen.add(Tribute_eleven); + Tribute_eleven.setFoodLevel(20); + } + if(Playing.size()>= 12){ + config.getString("Tribute_twelve_spawn"); + String[] coords = config.getString("Tribute_twelve_spawn").split(","); + Player Tribute_twelve = Playing.get(11); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_twelve.teleport(loc); + Frozen.add(Tribute_twelve); + Tribute_twelve.setFoodLevel(20); + } + if(Playing.size()>= 13){ + config.getString("Tribute_thirteen_spawn"); + String[] coords = config.getString("Tribute_thirteen_spawn").split(","); + Player Tribute_thirteen = Playing.get(12); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_thirteen.teleport(loc); + Frozen.add(Tribute_thirteen); + Tribute_thirteen.setFoodLevel(20); + } + if(Playing.size()>= 14){ + config.getString("Tribute_fourteen_spawn"); + String[] coords = config.getString("Tribute_fourteen_spawn").split(","); + Player Tribute_fourteen = Playing.get(13); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_fourteen.teleport(loc); + Frozen.add(Tribute_fourteen); + Tribute_fourteen.setFoodLevel(20); + } + if(Playing.size()>= 15){ + config.getString("Tribute_fifteen_spawn"); + String[] coords = config.getString("Tribute_fifteen_spawn").split(","); + Player Tribute_fifteen = Playing.get(14); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_fifteen.teleport(loc); + Frozen.add(Tribute_fifteen); + Tribute_fifteen.setFoodLevel(20); + } + if(Playing.size()>= 16){ + config.getString("Tribute_sixteen_spawn"); + String[] coords = config.getString("Tribute_sixteen_spawn").split(","); + Player Tribute_sixteen = Playing.get(15); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_sixteen.teleport(loc); + Frozen.add(Tribute_sixteen); + Tribute_sixteen.setFoodLevel(20); + } + if(Playing.size()>= 17){ + config.getString("Tribute_seventeen_spawn"); + String[] coords = config.getString("Tribute_seventeen_spawn").split(","); + Player Tribute_seventeen = Playing.get(16); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_seventeen.teleport(loc); + Frozen.add(Tribute_seventeen); + Tribute_seventeen.setFoodLevel(20); + } + if(Playing.size()>= 18){ + config.getString("Tribute_eighteen_spawn"); + String[] coords = config.getString("Tribute_eighteen_spawn").split(","); + Player Tribute_eighteen = Playing.get(17); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_eighteen.teleport(loc); + Frozen.add(Tribute_eighteen); + Tribute_eighteen.setFoodLevel(20); + } + if(Playing.size()>= 19){ + config.getString("Tribute_nineteen_spawn"); + String[] coords = config.getString("Tribute_nineteen_spawn").split(","); + Player Tribute_nineteen = Playing.get(18); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_nineteen.teleport(loc); + Frozen.add(Tribute_nineteen); + Tribute_nineteen.setFoodLevel(20); + } + if(Playing.size()>= 20){ + config.getString("Tribute_twenty_spawn"); + String[] coords = config.getString("Tribute_twenty_spawn").split(","); + Player Tribute_twenty = Playing.get(19); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_twenty.teleport(loc); + Frozen.add(Tribute_twenty); + Tribute_twenty.setFoodLevel(20); + } + if(Playing.size()>= 21){ + config.getString("Tribute_twentyone_spawn"); + String[] coords = config.getString("Tribute_twentyone_spawn").split(","); + Player Tribute_twentyone = Playing.get(20); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_twentyone.teleport(loc); + Frozen.add(Tribute_twentyone); + Tribute_twentyone.setFoodLevel(20); + } + if(Playing.size()>= 22){ + config.getString("Tribute_twentytwo_spawn"); + String[] coords = config.getString("Tribute_twentytwo_spawn").split(","); + Player Tribute_twentytwo = Playing.get(21); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_twentytwo.teleport(loc); + Frozen.add(Tribute_twentytwo); + Tribute_twentytwo.setFoodLevel(20); + } + if(Playing.size()>= 23){ + config.getString("Tribute_twentythree_spawn"); + String[] coords = config.getString("Tribute_twentythree_spawn").split(","); + Player Tribute_twentythree = Playing.get(22); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_twentythree.teleport(loc); + Frozen.add(Tribute_twentythree); + Tribute_twentythree.setFoodLevel(20); + } + if(Playing.size()>= 24){ + config.getString("Tribute_twentyfour_spawn"); + String[] coords = config.getString("Tribute_twentyfour_spawn").split(","); + Player Tribute_twentyfour = Playing.get(23); + double x = Double.parseDouble(coords[0]); + double y = Double.parseDouble(coords[1]); + double z = Double.parseDouble(coords[2]); + String world = coords[3]; + World w = getServer().getWorld(world); + Location loc = new Location(w, x, y, z); + Tribute_twentyfour.teleport(loc); + Frozen.add(Tribute_twentyfour); + Tribute_twentyfour.setFoodLevel(20); + } + } + } + if(args[0].equalsIgnoreCase("Start")){ + String begin = config.getString("Start_Message"); + begin = begin.replaceAll("(&([a-f0-9]))", "\u00A7$2"); + final String msg = begin; + if(p.hasPermission("HungerArena.Start")){ + if(config.getString("Countdown").equalsIgnoreCase("true")){ + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("10"); + } + }, 20L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("9"); + } + }, 40L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("8"); + } + }, 60L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("7"); + } + }, 80L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("6"); + } + }, 100L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("5"); + } + }, 120L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("4"); + } + }, 140L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("3"); + } + }, 160L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("2"); + } + }, 180L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + getServer().broadcastMessage("1"); + } + }, 200L); + getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){ + public void run(){ + Frozen.clear(); + getServer().broadcastMessage(msg); + canjoin = true; + } + }, 220L); + }else{ + Frozen.clear(); + p.getServer().broadcastMessage(ChatColor.AQUA + "Let the Games Begin!!"); + canjoin = true; + } + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + } + if(cmd.getName().equalsIgnoreCase("StartPoint")){ + if(p.hasPermission("HungerArena.StartPoint")){ + if(args[0].equalsIgnoreCase("1")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_one_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute one!"); + } + if(args[0].equalsIgnoreCase("2")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_two_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute two!"); + } + if(args[0].equalsIgnoreCase("3")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_three_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute three!"); + } + if(args[0].equalsIgnoreCase("4")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_four_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute four!"); + } + if(args[0].equalsIgnoreCase("5")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_five_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute five!"); + } + if(args[0].equalsIgnoreCase("6")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_six_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute six!"); + } + if(args[0].equalsIgnoreCase("7")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_seven_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seven!"); + } + if(args[0].equalsIgnoreCase("8")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_eight_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eight!"); + } + if(args[0].equalsIgnoreCase("9")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_nine_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nine!"); + } + if(args[0].equalsIgnoreCase("10")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_ten_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute ten!"); + } + if(args[0].equalsIgnoreCase("11")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_eleven_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eleven!"); + } + if(args[0].equalsIgnoreCase("12")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_twelve_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twelve!"); + } + if(args[0].equalsIgnoreCase("13")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_thirteen_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute thirteen!"); + } + if(args[0].equalsIgnoreCase("14")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_fourteen_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fourteen!"); + } + if(args[0].equalsIgnoreCase("15")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_fifteen_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fifteen!"); + } + if(args[0].equalsIgnoreCase("16")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_sixteen_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute sixteen!"); + } + if(args[0].equalsIgnoreCase("17")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_seventeen_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seventeen!"); + } + if(args[0].equalsIgnoreCase("18")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_eighteen_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eighteen!"); + } + if(args[0].equalsIgnoreCase("19")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_nineteen_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nineteen!"); + } + if(args[0].equalsIgnoreCase("20")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_twenty_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twenty!"); + } + if(args[0].equalsIgnoreCase("21")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_twentyone_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyone!"); + } + if(args[0].equalsIgnoreCase("22")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_twentytwo_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentytwo!"); + } + if(args[0].equalsIgnoreCase("23")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_twentythree_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentythree!"); + } + if(args[0].equalsIgnoreCase("24")){ + double x = p.getLocation().getX(); + double y = p.getLocation().getY(); + double z = p.getLocation().getZ(); + String w = p.getWorld().getName(); + config.set("Tribute_twentyfour_spawn", x + "," + y + "," + z + "," + w); + saveConfig(); + p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyfour!"); + } + }else{ + p.sendMessage(ChatColor.RED + "You don't have permission!"); + } + } + return true; + } +} +class DeathListener implements Listener{ + public Main plugin; + public DeathListener(Main m){ + this.plugin = m; + } + public FileConfiguration config; + @EventHandler + public void onPlayerMove(PlayerMoveEvent event){ + Player p = event.getPlayer(); + if(p.getWorld().getFullTime()== 18000){ + for(Player dead:plugin.Dead){ + p.getServer().broadcastMessage(ChatColor.GREEN + dead.getName() + " was killed today!"); + } + } + if(plugin.Frozen.contains(p) && plugin.config.getString("Frozen_Teleport").equalsIgnoreCase("True")){ + event.setCancelled(true); + } + } + @EventHandler + public void onPlayerRespawn(PlayerRespawnEvent event){ + Player p = event.getPlayer(); + if(plugin.Dead.contains(p)){ + String[] Spawncoords = plugin.config.getString("Spawn_coords").split(","); + World spawnw = p.getWorld(); + double spawnx = Double.parseDouble(Spawncoords[0]); + double spawny = Double.parseDouble(Spawncoords[1]); + double spawnz = Double.parseDouble(Spawncoords[2]); + Location Spawn = new Location(spawnw, spawnx, spawny, spawnz); + event.setRespawnLocation(Spawn); + } + } + @EventHandler + public void onPlayerDeath(PlayerDeathEvent event){ + Player p = event.getEntity(); + Server s = p.getServer(); + String pname = p.getName(); + if(plugin.Playing.contains(p)){ + if(plugin.config.getString("Cannon_Death").equalsIgnoreCase("True")){ + p.getWorld().playEffect(p.getLocation(), Effect.ZOMBIE_CHEW_WOODEN_DOOR, 0, 300); + } + plugin.Dead.add(p); + plugin.Playing.remove(p); + String leftmsg = ChatColor.BLUE + "There are now " + plugin.Playing.size() + " tributes left!"; + if(p.getKiller() instanceof Player){ + if(p.getKiller().getItemInHand().getType().getId()== 0){ + Player killer = p.getKiller(); + String killername = killer.getName(); + event.setDeathMessage(""); + s.broadcastMessage(ChatColor.LIGHT_PURPLE + "**BOOM** Tribute " + pname + " was killed by tribute " + killername + " with their FIST!"); + s.broadcastMessage(leftmsg); + if(plugin.Playing.size()== 1){ + for(Player winner:plugin.Playing){ + String winnername = winner.getName(); + s.broadcastMessage(ChatColor.GREEN + winnername + " is the victor of this Hunger Games!"); + winner.getInventory().clear(); + winner.getInventory().setBoots(null); + winner.getInventory().setChestplate(null); + winner.getInventory().setHelmet(null); + winner.getInventory().setLeggings(null); + winner.getInventory().addItem(plugin.Reward); + } + for(Player spectator:plugin.Watching){ + spectator.setAllowFlight(false); + } + if(plugin.config.getString("Auto_Restart").equalsIgnoreCase("True")){ + plugin.Dead.clear(); + plugin.Playing.clear(); + plugin.Quit.clear(); + plugin.Watching.clear(); + plugin.Frozen.clear(); + plugin.canjoin = false; + } + } + }else{ + Player killer = p.getKiller(); + String killername = killer.getName(); + Material weapon = killer.getItemInHand().getType(); + String msg = ChatColor.LIGHT_PURPLE + "**BOOM** Tribute " + pname + " was killed by tribute " + killername + " with a(n) " + weapon; + event.setDeathMessage(""); + s.broadcastMessage(msg); + s.broadcastMessage(leftmsg); + if(plugin.Playing.size()== 1){ + for(Player winner:plugin.Playing){ + String winnername = winner.getName(); + s.broadcastMessage(ChatColor.GREEN + winnername + " is the victor of this Hunger Games!"); + winner.getInventory().clear(); + winner.getInventory().setBoots(null); + winner.getInventory().setChestplate(null); + winner.getInventory().setHelmet(null); + winner.getInventory().setLeggings(null); + winner.getInventory().addItem(plugin.Reward); + } + for(Player spectator:plugin.Watching){ + spectator.setAllowFlight(false); + } + if(plugin.config.getString("Auto_Restart").equalsIgnoreCase("True")){ + plugin.Dead.clear(); + plugin.Playing.clear(); + plugin.Quit.clear(); + plugin.Watching.clear(); + plugin.Frozen.clear(); + plugin.canjoin = false; + } + } + } + }else{ + event.setDeathMessage(""); + s.broadcastMessage(ChatColor.LIGHT_PURPLE + pname + " died of natural causes!"); + s.broadcastMessage(leftmsg); + if(plugin.Playing.size()== 1){ + for(Player winner:plugin.Playing){ + String winnername = winner.getName(); + s.broadcastMessage(ChatColor.GREEN + winnername + " is the victor of this Hunger Games!"); + winner.getInventory().clear(); + winner.getInventory().setBoots(null); + winner.getInventory().setChestplate(null); + winner.getInventory().setHelmet(null); + winner.getInventory().setLeggings(null); + winner.getInventory().addItem(plugin.Reward); + } + for(Player spectator:plugin.Watching){ + spectator.setAllowFlight(false); + } + if(plugin.config.getString("Auto_Restart").equalsIgnoreCase("True")){ + plugin.Dead.clear(); + plugin.Playing.clear(); + plugin.Quit.clear(); + plugin.Watching.clear(); + plugin.Frozen.clear(); + plugin.canjoin = false; + } + } + } + } + if(plugin.Watching.contains(p)){ + for(Player online:plugin.getServer().getOnlinePlayers()) + online.showPlayer(p); + } + } + @EventHandler + public void onPlayerJoin(PlayerJoinEvent event){ + Player p = event.getPlayer(); + final Player player = event.getPlayer(); + if(plugin.Out.contains(p)){ + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable(){ + public void run(){ + player.sendMessage(ChatColor.AQUA + "You have saved yourself from being ejected from the arena!"); + } + }, 40L); + plugin.Out.remove(p); + plugin.Playing.add(p); + } + if(plugin.Quit.contains(p) || plugin.Dead.contains(p)){ + String[] Spawncoords = plugin.config.getString("Spawn_coords").split(","); + String w = Spawncoords[3]; + World spawnw = plugin.getServer().getWorld(w); + double spawnx = Double.parseDouble(Spawncoords[0]); + double spawny = Double.parseDouble(Spawncoords[1]); + double spawnz = Double.parseDouble(Spawncoords[2]); + final Location Spawn = new Location(spawnw, spawnx, spawny, spawnz); + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable(){ + public void run(){ + player.teleport(Spawn); + player.sendMessage(ChatColor.RED + "You have been teleported to spawn because you quit/forfieted!"); + } + }, 40L); + } + } + @EventHandler + public void onPlayerQuit(PlayerQuitEvent event){ + final Player p = event.getPlayer(); + if(plugin.Playing.contains(p) && plugin.canjoin== true){ + plugin.Out.add(p); + } + if(plugin.Playing.contains(p) && plugin.canjoin== false){ + plugin.Out.add(p); + plugin.Playing.remove(p); + } + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable(){ + public void run(){ + if(plugin.Playing.contains(p) && plugin.canjoin== true && plugin.Out.contains(p)){ + plugin.Playing.remove(p); + plugin.Quit.add(p); + plugin.Out.remove(p); + if(plugin.Playing.size()== 1){ + for(Player winner:plugin.Playing){ + String winnername = winner.getName(); + p.getServer().broadcastMessage(ChatColor.GREEN + winnername + " is the victor of this Hunger Games!"); + winner.getInventory().clear(); + winner.getInventory().setBoots(null); + winner.getInventory().setChestplate(null); + winner.getInventory().setHelmet(null); + winner.getInventory().setLeggings(null); + winner.getInventory().addItem(plugin.Reward); + } + for(Player spectator:plugin.Watching){ + spectator.setAllowFlight(false); + } + if(plugin.config.getString("Auto_Restart").equalsIgnoreCase("True")){ + plugin.Dead.clear(); + plugin.Playing.clear(); + plugin.Quit.clear(); + plugin.Watching.clear(); + plugin.Frozen.clear(); + plugin.canjoin = false; + } + } + } + } + }, 1200L); + } + @EventHandler + public void BreakBlock(BlockBreakEvent event){ + Player p = event.getPlayer(); + if(plugin.Playing.contains(p)){ + if(plugin.config.getString("Protected_Arena").equalsIgnoreCase("True")){ + event.setCancelled(true); + p.sendMessage(ChatColor.RED + "You can't break blocks when you're playing!"); + } + } + if(plugin.Watching.contains(p)){ + event.setCancelled(true); + p.sendMessage(ChatColor.RED + "You are spectating, you can't interfere with the game!"); + } + } + @EventHandler + public void Chat(PlayerChatEvent event){ + Player p = event.getPlayer(); + if(plugin.Playing.contains(p)){ + String msg = "<" + ChatColor.RED + "[Tribute] " + ChatColor.WHITE + p.getName() + ">" + " " + event.getMessage(); + if(plugin.config.getString("ChatClose").equalsIgnoreCase("True")){ + double radius = plugin.config.getDouble("ChatClose_Radius"); + List near = p.getNearbyEntities(radius, radius, radius); + p.sendMessage(msg); + for(Entity e:near){ + if(e instanceof Player){ + ((Player) e).sendMessage(msg); + }else if(e instanceof Entity || !(e instanceof Player)){ + p.sendMessage("Why are you talking to an animal?"); + }else if(near.size()== 0){ + p.sendMessage("No one is near"); + } + } + event.setCancelled(true); + } + } + } + @EventHandler + public void PvP(EntityDamageByEntityEvent event){ + Entity p = event.getEntity(); + Entity offense = event.getDamager(); + if(p instanceof Player){ + if(plugin.Playing.contains(p) && plugin.canjoin== false){ + event.setCancelled(true); + } + } + if(offense instanceof Player){ + Player Attacker = (Player) event.getDamager(); + if(plugin.Watching.contains(Attacker)){ + event.setCancelled(true); + Attacker.sendMessage(ChatColor.RED + "You are spectating, you can't interfere with the game!"); + } + }else if(event.getDamager() instanceof Projectile){ + Projectile arrow = (Projectile) offense; + if(arrow.getShooter() instanceof Player){ + Player BowMan = (Player) arrow.getShooter(); + if(plugin.Watching.contains(BowMan)){ + event.setCancelled(true); + BowMan.sendMessage(ChatColor.RED + "You are spectating, you can't interfere with the game!"); + } + } + } + } + @EventHandler + public void Drops(PlayerDropItemEvent event){ + Player p = event.getPlayer(); + if(plugin.Watching.contains(p)){ + event.setCancelled(true); + p.sendMessage(ChatColor.RED + "You are spectating, you can't interfere with the game!"); + } + } + @EventHandler + public void Interactions(PlayerInteractEvent event){ + Player p = event.getPlayer(); + if(plugin.Watching.contains(p)){ + event.setCancelled(true); + p.sendMessage(ChatColor.RED + "You are spectating, you can't interfere with the game!"); + } + } + @EventHandler + public void SpectatorItems(PlayerPickupItemEvent event){ + Player p = event.getPlayer(); + if(plugin.Watching.contains(p)){ + event.setCancelled(true); + p.sendMessage(ChatColor.RED + "You are spectating, you can't interfere with the game!"); + } + } + @EventHandler + public void ChestSaves(PlayerInteractEvent event){ + Block block = event.getClickedBlock(); + Player p = event.getPlayer(); + //currently crashes the server when refilling.... + if(block.getState() instanceof Chest && p.getItemInHand().getType()== Material.BLAZE_ROD && event.getAction() == Action.LEFT_CLICK_BLOCK){ + + ItemStack[] itemsinchest = ((Chest) block.getState()).getInventory().getContents(); + int blockx = block.getX(); + int blocky = block.getY(); + int blockz = block.getZ(); + String blockw = block.getWorld().getName().toString(); + if(!plugin.getConfig().contains("Storage." + blockx + "," + blocky + "," + blockz + ".Location.X")){ + plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.X", blockx); + plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Y", blocky); + plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Z",blockz); + plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.W", blockw); + plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".ItemsInStorage", itemsinchest); + }else{ + plugin.getConfig().set("Storage." + blockx + "," + blocky+ "," + blockz + ".Location.X",blockx); + plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Y", blocky); + plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Z", blockz); + plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.W", blockw); + plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".ItemsInStorage", itemsinchest); + } + List list2 = plugin.getConfig().getStringList("StorageXYZ"); + list2.add(blockx + "," + blocky + "," + blockz); + plugin.getConfig().set("StorageXYZ", list2); + plugin.getConfig().options().copyDefaults(true); + plugin.saveConfig(); + } + } +}