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


2F me/sablednah/MobHealth/MobHealth!org/bukkit/plugin/java/JavaPluginplugin"Lme/sablednah/MobHealth/MobHealth;EntityListener3Lme/sablednah/MobHealth/ServerDamageEntityListener;HeroesDamageEventListener,Lme/sablednah/MobHealth/HeroesEventListener;loggerLjava/util/logging/Logger;usePermissionsLjava/lang/Boolean;disableSpoutdisableChatshowRPGshowSideNotificationshowPlayerHeadHealthshowMobHeadHealthusePercentForPlayer
useBarForMobs
hideBarForNPChideBarForAnimalhideBarForVillagershowbarCustomNameOnlyforceBarHideLjava/util/List;	Signature$Ljava/util/List<Ljava/lang/String;>;cleanDeathMessagesdisablePlayersdisableMonstersdisableAnimalsdisablePetsdamageDisplayTypeI
hideNoDammage
defaultToggleupdateCheckdoUpdate	debugModehealthPrefixLjava/lang/String;
alwaysVisablechatMessagechatKilledMessageplayerLabelplayerLabelPercenthealthBarCharacter
healthBarSizechatMessageEggchatMessageSnowballspoutDamageTitlespoutDamageMessagespoutKilledMessage
spoutEggTitlespoutEggMessagespoutSnowballTitlespoutSnowballMessage	RPGnotifyheroesSkillSpoutDamageTitleheroesSkillSpoutDamageMessageheroesSkillSpoutKilledMessageheroesSkillChatMessageheroesSkillChatKilledMessage
myExecutor1Lme/sablednah/MobHealth/MobHealthCommandExecutor;
LangConfig1Lorg/bukkit/configuration/file/FileConfiguration;LangConfigurationFileLjava/io/File;PlayerConfigPlayerConfigurationFile
pluginEnabledLjava/util/Map;>Ljava/util/Map<Lorg/bukkit/entity/Player;Ljava/lang/Boolean;>;
hesGotAWidgetMLjava/util/Map<Lorg/bukkit/entity/Player;Lorg/getspout/spoutapi/gui/Widget;>;entityLookup5Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;hesGotASideWidgethesGotASideGradienthesGotASideIcon
animalList[Ljava/lang/String;monsterList
entityListhasLikeABoss
hasCorruption	hasHeroeshasMobArenahasMobshasMAhasZMhasBloodMoonhasEpicBoss
notifications
setHealths"Lme/sablednah/MobHealth/SetHealth;9$SWITCH_TABLE$me$sablednah$MobHealth$Updater$UpdateResult[I<clinit>()VCode	km|	o2,	q3%	sIF	uJH	wKLyjava/util/HashMap
x{|h<init>	~NL	PL	RL	SL	TLjava/lang/StringDonkeyMuleHorseBatPigSheepCowChickenMushroomCowGolem	IronGolemSnowmanSquidVillagerWolfOcelot	UVWitchWitherBlazeZombieZombieVillagerBabyZombieVillager
ZombieBabyCreeperSkeletonSkeletonWitherSpiderGhast	MagmaCubeSlime
CaveSpiderEnderDragonEndermanGiant	PigZombie
Silverfish	WV	b%	cdLineNumberTableLocalVariableTable
{1me/sablednah/MobHealth/ServerDamageEntityListener
|%(Lme/sablednah/MobHealth/MobHealth;)V	*me/sablednah/MobHealth/HeroesEventListener
		
	EF	GH
concat;([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;V	XVthis	onDisable
	getServer()Lorg/bukkit/Server;org/bukkit/ServergetScheduler(()Lorg/bukkit/scheduler/BukkitScheduler;$org/bukkit/scheduler/BukkitSchedulercancelTasks(Lorg/bukkit/plugin/Plugin;)V
getDescription+()Lorg/bukkit/plugin/PluginDescriptionFile;	
java/lang/StringBuilder[
|(Ljava/lang/String;)V
'org/bukkit/plugin/PluginDescriptionFilegetName()Ljava/lang/String;
append-(Ljava/lang/String;)Ljava/lang/StringBuilder;] --- END OF LINE ---
 toString
"$#java/util/logging/Logger%infopdfFile)Lorg/bukkit/plugin/PluginDescriptionFile;onEnable	*
,-.	getLogger()Ljava/util/logging/Logger;
01
getVersion345getPluginManager#()Lorg/bukkit/plugin/PluginManager;7/me/sablednah/MobHealth/MobHealthCommandExecutor
6	:CD<	MobHealth
>?@
getCommand6(Ljava/lang/String;)Lorg/bukkit/command/PluginCommand;
BDC org/bukkit/command/PluginCommandEFsetExecutor'(Lorg/bukkit/command/CommandExecutor;)V
HIhloadConfigurationKLMgetMessenger)()Lorg/bukkit/plugin/messaging/Messenger;OSimpleNoticeQSR%org/bukkit/plugin/messaging/MessengerTUregisterOutgoingPluginChannel/(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)VW	LikeabossY[Zorg/bukkit/plugin/PluginManager\]isPluginEnabled(Ljava/lang/String;)Z
_a`java/lang/BooleanbcvalueOf(Z)Ljava/lang/Boolean;	eYg
Corruption	iZkHeroes	m[oMobArena	q\sMobs	u]wMonster Apocalypse	y^{	ZombieMod	}_	BloodMoon	`EpicBossRecoded	aYregisterEvents8(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)V
_booleanValue()ZLikeaboss Support EnabledCorruption Support EnabledMobArena Support EnabledHeroes Support EnabledMobs Support Enabled"Monster Apocalypse Support EnabledZombieMod Support EnabledBloodMoon Support Enabled EpicBossReloaded Support Enabled	*DebugMode Enabled.	
Using Permissions.Permissions Disabled.	Spout Disabled.Spout Enabled.	 Player Notifications Disabled.Player Notifications Enabled.	!Monster Notifications Disabled.Monster Notifications Enabled.	"Animals Notifications Disabled.Animals Notifications Enabled.	#Pet Notifications Disabled.Pet Notifications Enabled.		 org.bukkit.scoreboard.Scoreboard
java/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; me/sablednah/MobHealth/SetHealth
Scoreboard API not detected.
"warningZPlease update craftbukkit or disable showPlayerHeadHealth and showMobHeadHealth in config.Disabling HealthBars...me/sablednah/MobHealth/Metrics
|"me/sablednah/MobHealth/MobHealth$1
Notifications
|7(Lme/sablednah/MobHealth/MobHealth;Ljava/lang/String;)V

addCustomData+(Lme/sablednah/MobHealth/Metrics$Plotter;)V
start	(	)me/sablednah/MobHealth/Updater$UpdateTypeNO_DOWNLOAD+Lme/sablednah/MobHealth/Updater$UpdateType;	)	DEFAULTme/sablednah/MobHealth/Updater	mobhealth
getFile()Ljava/io/File;
|	i(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Ljava/io/File;Lme/sablednah/MobHealth/Updater$UpdateType;Z)V

	getResult/()Lme/sablednah/MobHealth/Updater$UpdateResult;
e()[I
+me/sablednah/MobHealth/Updater$UpdateResultordinal()I
getLatestVersionString
b&(Ljava/lang/Object;)Ljava/lang/String; is upto date. ,http://dev.bukkit.org/server-mods/mobhealth/
"#$getFileSize()J& is available (
()(J)Ljava/lang/StringBuilder;+ bytes) (You're using -)/&Automatic Download Failed please visit1Error during version check - 
4 java/lang/ClassNotFoundException6java/io/IOExceptionVersionCurrentpm!Lorg/bukkit/plugin/PluginManager;	exception"Ljava/lang/ClassNotFoundException;metrics Lme/sablednah/MobHealth/Metrics;updupdater Lme/sablednah/MobHealth/Updater;result-Lme/sablednah/MobHealth/Updater$UpdateResult;namesizeJ
StackMapTable
HIJ	getConfig3()Lorg/bukkit/configuration/file/FileConfiguration;
LNM/org/bukkit/configuration/file/FileConfigurationOPoptions:()Lorg/bukkit/configuration/file/FileConfigurationOptions;
RTS6org/bukkit/configuration/file/FileConfigurationOptionsUVcopyDefaults;(Z)Lorg/bukkit/configuration/file/FileConfigurationOptions;X!Default MobHealth Config file

ZZdisableSpout: [true|false] - force messages to display in chat even if spout is present.
\QdisableChat: [true|false] - force messages to display only if spout is present.
^Esetting both these to true will cause no notifications to appear!  
`
bLshowRPG: [true|false] - show RPG style notification (requires SpoutCraft).
diusePermissions: [true|false] - true requires MobHealth.show (or MobHealth.*) to show message to player.
fGdisablePlayers: [true|false] - disable notifications for player hits.
hKdisableMonsters: [true|false] - disable notifications for 'monster' hits.
jIdisableAnimals: [true|false] - disable notifications for 'animal' hits.
ldamageDisplayType: [1|2|3|4]
n$    1: display damage inflicted.  
p    2: display damage taken.
r4    3: display damage inflicted (-amount resisted)
t0    4: display damage taken (+amount resisted)
vzhideNoDammage: [true|false] Hide notifications that inflict 0 damage.  Custom Egg and Snowball notifications are exempt.
x:debugMode: [true|false] Enable extra debug info in logs.

Rz{|headerL(Ljava/lang/String;)Lorg/bukkit/configuration/file/FileConfigurationOptions;
R~V
copyHeader
L]
getBoolean									
LgetList$(Ljava/lang/String;)Ljava/util/List;java/util/Listadd(Ljava/lang/Object;)Z3
LgetInt(Ljava/lang/String;I)I	 !"#-	-$
L(Ljava/lang/String;)I	$%&	&'	'(
L(Ljava/lang/String;Z)Z)*
h
saveConfig
J
getLangConfig.
L	getString&(Ljava/lang/String;)Ljava/lang/String;	.,/	/,8	8,7	7,6	6,4	4,5	5,9	9,:	:,;	;,<	<,=	=,>	>,?	?,@	@,A	A,B	
B,0	
0,2<3❤
replaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;1	1,+&r&f&r
L8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;	!+,
#%$org/bukkit/ChatColor&'translateAlternateColorCodes'(CLjava/lang/String;)Ljava/lang/String;)healthPrefix is:+Example monster bar:-Mob/
123barGraph;(IIILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;5entity798
java/util/Map:;put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
=>hsaveLangConfig
{
AB
getDataFolder
DE-(Ljava/lang/Object;)Ljava/lang/StringBuilder;	GIHjava/io/FileJ,	separatorLtoggleStates.bin
NPO!me/sablednah/MobHealth/SaveToggleQRload'(Ljava/lang/String;)Ljava/util/HashMap;	TVUjava/lang/SystemWXoutLjava/io/PrintStream;Z toggleStates.bin error
\^]java/io/PrintStream_print
acbjava/lang/ExceptiondhprintStackTrace
headertextfbh
entityName
thisEntityeLjava/lang/Exception;LocalVariableTypeTableconvertStreamToString)(Ljava/io/InputStream;)Ljava/lang/String;ojava/util/Scanner
nq|r(Ljava/io/InputStream;)Vt\A
nvwxuseDelimiter'(Ljava/lang/String;)Ljava/util/Scanner;
nz{nextisLjava/io/InputStream;reloadLangConfiglang.yml
G|#(Ljava/io/File;Ljava/lang/String;)V
/org/bukkit/configuration/file/YamlConfigurationIA(Ljava/io/File;)Lorg/bukkit/configuration/file/YamlConfiguration;
getResource)(Ljava/lang/String;)Ljava/io/InputStream;
IH(Ljava/io/InputStream;)Lorg/bukkit/configuration/file/YamlConfiguration;
LsetDefaults+(Lorg/bukkit/configuration/Configuration;)VdefConfigStream	defConfig1Lorg/bukkit/configuration/file/YamlConfiguration;java/io/InputStream
~h
Lsave(Ljava/io/File;)VCould not save Lang config to  
"severeexLjava/io/IOException;getPluginState/(Lorg/bukkit/entity/Player;)Ljava/lang/Boolean;7containsKey7get&(Ljava/lang/Object;)Ljava/lang/Object;playerLorg/bukkit/entity/Player;togglePluginState(Lorg/bukkit/entity/Player;)VNotifications disabled.org/bukkit/entity/PlayersendMessageNotifications enabled.
N((Ljava/util/HashMap;Ljava/lang/String;)V	getWidget?(Lorg/bukkit/entity/Player;I)Lorg/getspout/spoutapi/gui/Widget; org/getspout/spoutapi/gui/Widgetwidgetnumber	putWidget@(Lorg/bukkit/entity/Player;Lorg/getspout/spoutapi/gui/Widget;I)Vwidget"Lorg/getspout/spoutapi/gui/Widget;
killWidget(Lorg/bukkit/entity/Player;I)V7remove$<T:Ljava/lang/Object;>([TT;[TT;)[TT;
java/util/ArrayscopyOf)([Ljava/lang/Object;I)[Ljava/lang/Object;
T	arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)Vfirst[Ljava/lang/Object;secondhead percent: 
(I)Ljava/lang/StringBuilder;
length
|(I)V	#WHITELorg/bukkit/ChatColor;: [	#GREEN
stringRepeat'(Ljava/lang/String;I)Ljava/lang/String;	#RED]xyscaleprefixsuffixpercentmesageLjava/lang/StringBuilder;	newStringnbuildergetAPIE(Lorg/bukkit/plugin/Plugin;)Lme/sablednah/MobHealth/API/MobHealthAPI;'me/sablednah/MobHealth/API/MobHealthAPI
pLorg/bukkit/plugin/Plugin;	cleanName
contains(Ljava/lang/CharSequence;)Z
indexOf§f
]
startsWith
	substring(II)Ljava/lang/String;newname
searchcodeloc	!ef
#$%values0()[Lme/sablednah/MobHealth/Updater$UpdateResult;	'(BFAIL_BADSLUG	*+BFAIL_DBO	-.B
FAIL_DOWNLOAD	01BFAIL_NOVERSION	34B	NO_UPDATE	67BSUCCESS	9:BUPDATE_AVAILABLE<java/lang/NoSuchFieldErrorf
SourceFileMobHealth.javaInnerClassesB&me/sablednah/MobHealth/Metrics$PlotterPlotterUpdateResult
UpdateType!N		
		
															 	!	"	#	$%	&	'	(	)	*	+,	-	.,	/,	0,	1,	2,	3%	4,	5,	6,	7,	8,	9,	:,	;,	<,	=,	>,	?,	@,	A,	B,CDEFGH	IF	JH	KLM	NLO	PLQ	RLO	SLO	TLO	UV	WVXV	Y	Z	[	\	]	^	_	`	a	b%	cd
efghi7jlnprtvxYz}xYzxYzxYzxYzYSYSYSYSYSYSYSYSYSY	SY
SYSYSY
SYSYSYSYSYSYSYSYSYSYSYSY	SY
SYSYSY
SYSYSYSYSYSYSYSױZ4H	Ibcef$g.h8iBjLlSlmlnno+n.}26|hiy7**Y*޵*Y****Ӹ !_!`&q67hiu5***L	Y
+!45!&'(hi	f*)*+	*/L*2M*6Y*89*;=*9A*G*J*NP*2VX^d*2fX^h*2jX^l*2nX^p*2rX^t*2vX^x*2zX^|*2~X^*2X^,**l,**d	!h	!p	!l	!t	!x	!|	!	!	!	!	!	!	!	!	!	!	!	!	!	!¶	Ķ!	ƶ!ȶʶB̸WY*ֳק-N	׶ٲ	ܶٲ	޶^^ʻY*N-Y*-WNJNNY**-:
:.*-[̧:	Y!	!:!7	Y%'*+,!	.ٲ	!h	Y02٧J:!7	Y%'*+,ٲ	!35a)7;Md{'0;DMV_hqz
"+4@IR^gp|	"+/BIL|!"#$%&*+-%.,/\0e4
fS7,I89):;<="C>B#?@IAB'C,LC,%@C,EDE,9DEFD#;YT3)_5L-RFIhi*GKQWWLY+YLY+[LY+]LY+_LY+aLY+_LY+cLY+_LY+eLY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