PK @ META-INF/MANIFEST.MF MLK-.
K-*ϳR03 PK PK
A>k# .project
DeathControl
org.eclipse.jdt.core.javabuilder
org.eclipse.jdt.core.javanature
PK
Z@a_r r resources/config.yml# ====== Settings for DeathControl ======
# IMPORTANT: Do NOT use tabs in this file! Only use spaces!
#
# Documentation about how to set up this configuration can be found here:
# http://dev.bukkit.org/server-mods/deathcontrol/pages/configuration/
use-bukkit-permissions: true
logging-level: standard
DeathCauses:
VOID, LAVA:
keep-inventory: true
keep-experience: true
PLAYER:
keep-inventory: true
cost: 300
method: command
timeout: 10
loss-percentage: 12.5
LAVA:
keep-inventory: true
whitelist:
- valuablesPK
?
@4 resources/help.txtInformation about the config files are now located here:
http://dev.bukkit.org/server-mods/deathcontrol/pages/configuration/
http://dev.bukkit.org/server-mods/deathcontrol/pages/lists/
You can delete this file if you want.PK
体?Ǔѥ resources/lists.txt# ======= FILE INFORMATION =======
# Lines starting with # and empty lines will be ignored.
#
# Documentation about how to configure this file can be found at:
# http://dev.bukkit.org/server-mods/deathcontrol/pages/lists/
$list armor
DIAMOND_CHESTPLATE
DIAMOND_HELMET
DIAMOND_LEGGINGS
DIAMOND_BOOTS
IRON_CHESTPLATE
IRON_HELMET
IRON_LEGGINGS
IRON_BOOTS
LEATHER_CHESTPLATE
LEATHER_HELMET
LEATHER_LEGGINGS
LEATHER_BOOTS
CHAINMAIL_CHESTPLATE
CHAINMAIL_HELMET
CHAINMAIL_LEGGINGS
CHAINMAIL_BOOTS
$list diamondtools
DIAMOND_AXE
DIAMOND_HOE
DIAMOND_PICKAXE
DIAMOND_SPADE
DIAMOND_SWORD
$list valuables
DIAMOND
IRON_ORE
IRON_INGOT
COAL
GOLD_ORE
GOLD_INGOTPK
U@J exporter.jardesc
PK
@
. bone008/bukkit/deathcontrol/DeathManager.class 2 (bone008/bukkit/deathcontrol/DeathManager java/lang/Object valid Z plugin *Lbone008/bukkit/deathcontrol/DeathControl; ply Lorg/bukkit/entity/Player;
deathLocation Lorg/bukkit/Location; keptItems Ljava/util/List; Signature 2Ljava/util/List; keptExp I
droppedExp method =Lbone008/bukkit/deathcontrol/config/CauseData$HandlingMethod; cost D
timeoutOnQuit (Lbone008/bukkit/deathcontrol/DeathControl;Lorg/bukkit/entity/Player;Ljava/util/List;IILbone008/bukkit/deathcontrol/config/CauseData$HandlingMethod;DI)V (Lbone008/bukkit/deathcontrol/DeathControl;Lorg/bukkit/entity/Player;Ljava/util/List;IILbone008/bukkit/deathcontrol/config/CauseData$HandlingMethod;DI)V Code
()V ! # %
' ) ( org/bukkit/entity/Player * + getLocation ()Lorg/bukkit/Location; - /
1 3 5 7 9 LineNumberTable LocalVariableTable this *Lbone008/bukkit/deathcontrol/DeathManager; LocalVariableTypeTable expire (Z)Z
B D C %bone008/bukkit/deathcontrol/Utilities E F dropItems /(Lorg/bukkit/Location;Ljava/util/Collection;Z)V
B H I J dropExp (Lorg/bukkit/Location;IZ)V L java/lang/StringBuilder
K O Q P org/bukkit/ChatColor R S DARK_RED Lorg/bukkit/ChatColor;
K U V W append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; Y Time is up.
K [ V \ -(Ljava/lang/String;)Ljava/lang/StringBuilder;
K ^ _ ` toString ()Ljava/lang/String;
b d c (bone008/bukkit/deathcontrol/DeathControl e f display /(Lorg/bukkit/entity/Player;Ljava/lang/String;)V h .Your items are dropped at your death location. j l k java/util/logging/Level m n FINE Ljava/util/logging/Level; p
Timer for
K r s (Ljava/lang/String;)V ' u v ` getName x expired! Items dropped.
b z { | log .(Ljava/util/logging/Level;Ljava/lang/String;)V
~
unregister showMessage
StackMapTable respawned ;bone008/bukkit/deathcontrol/config/CauseData$HandlingMethod AUTO
restore ()Z
java/lang/String valueOf &(Ljava/lang/Object;)Ljava/lang/String; $ respawned and got back their items.
commandIssued COMMAND You got your items back! " got back their items via command. O S RED %You don't have enough money for that!
(bone008/bukkit/deathcontrol/EconomyUtils payCost (Lorg/bukkit/entity/Player;D)Z ' getInventory (()Lorg/bukkit/inventory/PlayerInventory; java/util/List size ()I org/bukkit/inventory/ItemStack toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ![Lorg/bukkit/inventory/ItemStack; $org/bukkit/inventory/PlayerInventory addItem 6([Lorg/bukkit/inventory/ItemStack;)Ljava/util/HashMap;
java/util/HashMap
B E ((Lorg/bukkit/Location;Ljava/util/Map;Z)V ' giveExp (I)V success leftovers Ljava/util/HashMap; HLjava/util/HashMap;
b s
removeManager getTimeoutOnQuit
SourceFile DeathManager.java InnerClasses ,bone008/bukkit/deathcontrol/config/CauseData HandlingMethod !
A* * *+ "*, $*, & ,*- .* 0* 2* 4* 6* 8 : 2 " ! ( " . # 4 $ : % @ &