MobHealth Code

Select a file to view contents.

.classpath
.gitignore
.project
.settings/org.eclipse.core.resources.prefs
README.md
bin/me/sablednah/MobHealth/API/MobHealthAPI.class
bin/me/sablednah/MobHealth/HeroesEventListener.class
bin/me/sablednah/MobHealth/MessageScheduler.class
bin/me/sablednah/MobHealth/Metrics$1.class
bin/me/sablednah/MobHealth/Metrics$Graph.class
bin/me/sablednah/MobHealth/Metrics$Plotter.class
bin/me/sablednah/MobHealth/Metrics.class
bin/me/sablednah/MobHealth/MobHealth$1.class
bin/me/sablednah/MobHealth/MobHealth.class
bin/me/sablednah/MobHealth/MobHealthCommandExecutor.class
bin/me/sablednah/MobHealth/NewWidgitActions.class
bin/me/sablednah/MobHealth/SaveToggle.class
bin/me/sablednah/MobHealth/ServerDamageEntityListener$ScheduledshowBar.class
bin/me/sablednah/MobHealth/ServerDamageEntityListener.class
bin/me/sablednah/MobHealth/SetHealth.class
bin/me/sablednah/MobHealth/SkillMessageScheduler.class
bin/me/sablednah/MobHealth/SpoutNotifications.class
bin/me/sablednah/MobHealth/Updater$UpdateResult.class
bin/me/sablednah/MobHealth/Updater$UpdateRunnable.class
bin/me/sablednah/MobHealth/Updater$UpdateType.class
bin/me/sablednah/MobHealth/Updater.class
licence.txt
pom.xml
src/main/java/me/sablednah/MobHealth/API/ActionBar.java
src/main/java/me/sablednah/MobHealth/API/ActionBar_1_8_1.java
src/main/java/me/sablednah/MobHealth/API/ActionBar_1_8_3.java
src/main/java/me/sablednah/MobHealth/API/ActionBar_1_8_4.java
src/main/java/me/sablednah/MobHealth/API/MobHealthAPI.java
src/main/java/me/sablednah/MobHealth/API/PlayerHealthEvent.java
src/main/java/me/sablednah/MobHealth/HeroesEventListener.java
src/main/java/me/sablednah/MobHealth/MessageScheduler.java
src/main/java/me/sablednah/MobHealth/Metrics.java
src/main/java/me/sablednah/MobHealth/MobHealth.java
src/main/java/me/sablednah/MobHealth/MobHealthCommandExecutor.java
src/main/java/me/sablednah/MobHealth/NewWidgitActions.java
src/main/java/me/sablednah/MobHealth/SaveToggle.java
src/main/java/me/sablednah/MobHealth/ServerDamageEntityListener.java
src/main/java/me/sablednah/MobHealth/SetHealth.java
src/main/java/me/sablednah/MobHealth/SkillMessageScheduler.java
src/main/java/me/sablednah/MobHealth/SpoutNotifications.java
src/main/java/me/sablednah/MobHealth/Updater.java
src/main/resources/config.yml
src/main/resources/lang.yml
src/main/resources/players.yml
src/main/resources/plugin.yml


2me/sablednah/MobHealth/Updaterjava/lang/ObjectpluginLorg/bukkit/plugin/Plugin;type+Lme/sablednah/MobHealth/Updater$UpdateType;versionTitleLjava/lang/String;versionLink	totalSizeJsizeLineI
multiplierannounceZurlLjava/net/URL;fileLjava/io/File;threadLjava/lang/Thread;DBOUrl
ConstantValue"http://dev.bukkit.org/server-mods/noUpdateTag[Ljava/lang/String;	BYTE_SIZEupdateFolderresult-Lme/sablednah/MobHealth/Updater$UpdateResult;TITLE&titleLINK)linkITEM,item<init>i(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Ljava/io/File;Lme/sablednah/MobHealth/Updater$UpdateType;Z)VCode
1-2()V4java/lang/String6-DEV8-PRE:	-SNAPSHOT	<>java/io/File@
bukkit.yml
=B-C(Ljava/lang/String;)V
EGF/org/bukkit/configuration/file/YamlConfigurationHIloadConfigurationA(Ljava/io/File;)Lorg/bukkit/configuration/file/YamlConfiguration;Ksettings.update-folder
EMNO	getString&(Ljava/lang/String;)Ljava/lang/String;	Q!
	SUT+me/sablednah/MobHealth/Updater$UpdateResultV#SUCCESS	X"#	Z	\	^	`bjava/net/URLdjava/lang/StringBuilder
cB
cghiappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;k
/files.rss
cmnotoString()Ljava/lang/String;
aB	rtvuorg/bukkit/plugin/Pluginwx	getLogger()Ljava/util/logging/Logger;zThe author of this plugin (t|}~getDescription+()Lorg/bukkit/plugin/PluginDescriptionFile;
'org/bukkit/plugin/PluginDescriptionFile
getAuthors()Ljava/util/List;java/util/Listget(I)Ljava/lang/Object;,) has misconfigured their Auto Update system
java/util/logging/LoggerCwarningThe project slug given ('0') is invalid. Please nag the author about this.	S#FAIL_BADSLUGjava/lang/Thread-me/sablednah/MobHealth/Updater$UpdateRunnable
-R(Lme/sablednah/MobHealth/Updater;Lme/sablednah/MobHealth/Updater$UpdateRunnable;)V
-(Ljava/lang/Runnable;)V	
2startjava/net/MalformedURLExceptionLineNumberTableLocalVariableTablethis Lme/sablednah/MobHealth/Updater;slugex Ljava/net/MalformedURLException;
StackMapTable)me/sablednah/MobHealth/Updater$UpdateType	getResult/()Lme/sablednah/MobHealth/Updater$UpdateResult;
2
waitForThreadgetFileSize()J	
getLatestVersionString		

isAlive()Z
2join
java/lang/InterruptedException2printStackTracee Ljava/lang/InterruptedException;saveFile5(Ljava/io/File;Ljava/lang/String;Ljava/lang/String;)V
=exists
=mkdir
aopenConnection()Ljava/net/URLConnection;
java/net/URLConnectiongetContentLength()Ijava/io/BufferedInputStream
a
openStream()Ljava/io/InputStream;
-(Ljava/io/InputStream;)Vjava/io/FileOutputStream
=ogetAbsolutePath
3valueOf&(Ljava/lang/Object;)Ljava/lang/String;/
B About to download a new update: 
Cinfo
write([BII)VdDownloading update: 
ch(I)Ljava/lang/StringBuilder;% of  bytes.

read([BII)Iplugins/
=	listFiles()[Ljava/io/File;
=ogetName.zip
3endsWith(Ljava/lang/String;)Z
=delete
= !ogetCanonicalPath
#$Cunzip&Finished updating.(FThe auto-updater tried to download a new update, but was unsuccessful.	S*+#
FAIL_DOWNLOAD
-.2close
-1java/lang/ExceptionfolderuinLjava/io/BufferedInputStream;foutLjava/io/FileOutputStream;
fileLengthdata[Bcount
downloadedpercentxFiledFileLjava/lang/Exception;:C[Ljava/io/File;Ejava/lang/Throwable
3GHlength
3JKL	substring(II)Ljava/lang/String;Njava/util/zip/ZipFile
MP-Q(Ljava/io/File;)V
MSTUentries()Ljava/util/Enumeration;WYXjava/util/EnumerationZ[nextElement()Ljava/lang/Object;]java/util/zip/ZipEntry
\
=`-a'(Ljava/lang/String;Ljava/lang/String;)V
=cde
getParentFile()Ljava/io/File;
=ghmkdirs
\jkisDirectory
MmnogetInputStream/(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
Prjava/io/BufferedOutputStream
qt-u(Ljava/io/OutputStream;I)V
q
qxy2flush
q-|.jar
~
pluginFile
=renameTo(Ljava/io/File;)ZWhasMoreElements
M-
=j
3equals(Ljava/lang/Object;)Z
c1
=egetCanonicalFile
ch-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
java/io/IOExceptionHThe auto-updater tried to unzip a new update file, but was unsuccessful.
fSourceZipzipPathzipFileLjava/util/zip/ZipFile;Ljava/util/Enumeration;entryLjava/util/zip/ZipEntry;destinationFilePathbisbbufferfosbosLjava/io/BufferedOutputStream;nameoFilecontentscFilefoundLjava/io/IOException;LocalVariableTypeTable2Ljava/util/Enumeration<+Ljava/util/zip/ZipEntry;>;pluginsgetFilejava/io/InputStreamReader
n
java/io/BufferedReader
-(Ljava/io/Reader;)V-<li class="user-action user-action-download">
3contains(Ljava/lang/CharSequence;)Z	<a href="
3split'(Ljava/lang/String;)[Ljava/lang/String;">Download</a>
<dt>Size</dt>	<dd>
3
replaceAll8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;</dd>MiB	 KiB
3replaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; MiB
java/lang/DoubleparseDouble(Ljava/lang/String;)D
oreadLine
-
0GThe auto-updater tried to contact dev.bukkit.org, but was unsuccessful.	S#FAIL_DBOdownloadurlConnLjava/net/URLConnection;inStreamLjava/io/InputStreamReader;buffLjava/io/BufferedReader;counterlinesizeversionCheck	NO_VERSION_CHECK
o
getVersion v	 

calVer'(Ljava/lang/String;)Ljava/lang/Integer;
java/lang/IntegerintValue
hasTag
3equalsIgnoreCase	S#	NO_UPDATExFiles uploaded to BukkitDev should contain the version number, seperated from the name by a 'v', such as PluginName v1.0'Please notify the author of this error.	S!"#FAIL_NOVERSION$java/lang/NumberFormatExceptionversion
remoteVersionremVercurVernfe!Ljava/lang/NumberFormatException;
Exceptions-.
3/01charAt(I)C
354java/lang/Character6(C)Ljava/lang/Character;
389:	charValue()C
3<=>isLetterOrDigit(C)Z
@ABparseInt(Ljava/lang/String;)I
DE(I)Ljava/lang/Integer;ssbLjava/lang/StringBuilder;icLjava/lang/Character;stringreadFeed
PRQ javax/xml/stream/XMLInputFactorySTnewInstance$()Ljavax/xml/stream/XMLInputFactory;
V
PXYZcreateXMLEventReader8(Ljava/io/InputStream;)Ljavax/xml/stream/XMLEventReader;\^]javax/xml/stream/XMLEventReader_`	nextEvent$()Ljavax/xml/stream/events/XMLEvent;bdc javax/xml/stream/events/XMLEventeisStartElementbghiasStartElement(()Ljavax/xml/stream/events/StartElement;kml$javax/xml/stream/events/StartElementn()Ljavax/xml/namespace/QName;
prqjavax/xml/namespace/QNamesogetLocalPartbuvwasCharacters&()Ljavax/xml/stream/events/Characters;y{z"javax/xml/stream/events/Characters|ogetDatab~isEndElementbasEndElement&()Ljavax/xml/stream/events/EndElement;m"javax/xml/stream/events/EndElement	
\hasNextBCould not reach dev.bukkit.org for update checking. Is it offline?#javax/xml/stream/XMLStreamExceptioninputFactory"Ljavax/xml/stream/XMLInputFactory;Ljava/io/InputStream;eventReader!Ljavax/xml/stream/XMLEventReader;event"Ljavax/xml/stream/events/XMLEvent;%Ljavax/xml/stream/XMLStreamException;java/io/InputStreamUCould not reach BukkitDev file stream for update checking. Is dev.bukkit.org offline?access$00(Lme/sablednah/MobHealth/Updater;)Ljava/net/URL;access$1#(Lme/sablednah/MobHealth/Updater;)Z
Naccess$24(Lme/sablednah/MobHealth/Updater;)Ljava/lang/String;access$35(Lme/sablednah/MobHealth/Updater;Ljava/lang/String;)Z
access$4access$5F(Lme/sablednah/MobHealth/Updater;Ljava/lang/String;)Ljava/lang/String;
Oaccess$6M(Lme/sablednah/MobHealth/Updater;)Lme/sablednah/MobHealth/Updater$UpdateType;access$70(Lme/sablednah/MobHealth/Updater;)Ljava/io/File;access$8access$9U(Lme/sablednah/MobHealth/Updater;Ljava/io/File;Ljava/lang/String;Ljava/lang/String;)V
	access$10P(Lme/sablednah/MobHealth/Updater;Lme/sablednah/MobHealth/Updater$UpdateResult;)V
SourceFileUpdater.javaInnerClassesUpdateResultUpdateRunnable
UpdateType!	



 !
"#$
%'
(*
+-./*0*3Y5SY7SY9S;*=Y?ADJLP*RW*+Y*[*]*-_*aYcYe,fjflpqY:+scYye+{3ffl+scYe,ffl*W*YY**MmpB790:7<BHMprH
rTpt3=U/7	**W
	/7	**
	o/7	**
	2/s**ħL+DZ

T/
+К+W::aY-p:ֶ6Y:YcY+ef,fl::*]"*YscYe*fl	7
f
	a7
	
im6*]
p~2*YscYeffl	Y6	=YcY
e*PflAY:66
!
2:	W

޻=YcY+ef,flA:*"*]g*Ys%U:*Ys'*)W,G/?:::,
/:,
/:000
01&4W^e0>DNq


2


3
4567&{8^C9:c;	;	<

D=0>q0?@Vw	=33aA.=33aA=33aA2=33aA;=33aAB@=33aA==330!	B0BD=33D	B0=33		B0$C/N=Y+AM++FdINMY,O:R:V\:=Y-^_:bfWiYl::
Yp:qYs:

	v
	Y6	wz,:

{7*
}.=YcY
e*Pff
flAW:: ::=Y-AY:	66	2:*}=YcY
eflA:

:Y:66

2:6Y:66#2:	6
2=YcY
fflAW	W

W=Y-AW,WM,*Ys*)W=Y+AW#&7	&)5DMUX h"o#z$%'%)*+,-/2356795;==I?g@nACDFHIDLOTAY9[\&]'_+`:aAcMdNN
	
&5Dh5
	Y	o:
z7t?

5?g
nCro>'&)3=3MW.\=2
3=3MW\=Aq	
3=3MW\=Aqf3=3MW\=+
3=3MWBP3=3MW=B=BB3=3MW=B=B=BB3=3MW=B=B=B33=3MW=B=BB
3=3MW=B
3=3MWB3/5=YAY:6>2M,+km(o*k3r 55

3BO/
MaY+pN-:Y:Y:6¶2ȶ2Mvʶ*`̧`*̠Wжж:	*	ض	ڧ	жж:	*	*ۇkY:a::: N-*Ys*W,0rz~*-03>T_jsz)

*-0

>
	@0	33a3#0
33a33
33a33(330/*[*Y{M+ľW+22N66*-
6*,
6:6*,,-
h*W*YscYye*Y{3ffl*Ys*Ys* W;OR#J
#5;ERTWnuwH&
%
5B&
8?';<(T)*"R333#[
+#/Q+,BcYM>"+.2:7;
,W+F,l?C+?C&	
!,3>I4QQF
7GH*I!JKc/)*;Y:6>2M+,' ))%

L
3MN/LMON*U:-W:[:acfjo%[:txLafjo(J[:txM1}'o+*+*,
XL*Ysr"	+
5LUbe|!%)+-.R&
)
4+6"33P\Bb/-	/n*qL*Ys9:	<=	H/%*q3/%*/%*,/&*+/%*-/&*+x/%*[+/%*_4/%*P9/(*+,-/&*+W:S@@

Leave a Reply