Files
PlayerBlockLife/build/classes/java/main/com/playerblocklife/ConfigManager.class

47 lines
8.0 KiB
Plaintext
Raw Normal View History

<EFBFBD><EFBFBD><EFBFBD><EFBFBD>=?
 java/lang/Object<init>()V  
!com/playerblocklife/ConfigManagerplugin%Lcom/playerblocklife/PlayerBlockLife; java/io/File
 #com/playerblocklife/PlayerBlockLife getDataFolder()Ljava/io/File;
config.yml
 #(Ljava/io/File;Ljava/lang/String;)V  
configFileLjava/io/File;
 !exists()Z
# $!mkdirs
& 'saveDefaultConfig)创建默认配置文件
+ ,-logInfo(Ljava/lang/String;)V
/ 0 reloadConfig
234 56/org/bukkit/configuration/file/YamlConfigurationloadConfigurationA(Ljava/io/File;)Lorg/bukkit/configuration/file/YamlConfiguration; 8 9:config1Lorg/bukkit/configuration/file/FileConfiguration;
< => getResource)(Ljava/lang/String;)Ljava/io/InputStream;@java/io/InputStreamReader BCD EF!java/nio/charset/StandardCharsetsUTF_8Ljava/nio/charset/Charset;
?H I2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
2K 5LC(Ljava/io/Reader;)Lorg/bukkit/configuration/file/YamlConfiguration;
NOP QR/org/bukkit/configuration/file/FileConfiguration setDefaults+(Lorg/bukkit/configuration/Configuration;)V
T UcheckConfigVersionW配置已加载Yconfig-version
N[ \]getInt(Ljava/lang/String;I)I_-检测到旧版配置文件,正在更新...
a b-
logWarning
d ef updateConfig(II)Vhcommands.setlifeblocks.enabled
Nj klcontains(Ljava/lang/String;)Z
nop qrjava/lang/BooleanvalueOf(Z)Ljava/lang/Boolean;
Nt uvset'(Ljava/lang/String;Ljava/lang/Object;)Vx%commands.setlifeblocks.allow_self_usez&commands.setlifeblocks.allow_admin_use| commands.checklifeblocks.enabled~'commands.checklifeblocks.allow_self_use<00>(commands.checklifeblocks.allow_admin_use<00>commands.pblreload.enabled<00>commands.pblreload.admin_only<00>commands.pbldelete.enabled<00>commands.pbldelete.admin_only<00>commands.pblrevive.enabled<00>commands.pblrevive.admin_only<00>commands.pblstats.enabled<00>commands.pblstats.admin_only<00>messages.use_external_file<00>messages.external_file<00> messages.yml
<00><00><00> q<00>java/lang/Integer(I)Ljava/lang/Integer;
N<00> <00><00>save(Ljava/io/File;)V<00> <00><00>makeConcatWithConstants(I)Ljava/lang/String;<00>java/io/IOException<00>$保存更新后的配置文件失败
<00> <00><00>logError*(Ljava/lang/String;Ljava/lang/Throwable;)V<00>保存配置文件失败
<00> <00><00> getConfig3()Lorg/bukkit/configuration/file/FileConfiguration;<00>game.die_when_blocks_gone
N<00> <00><00>
getBoolean(Ljava/lang/String;Z)Z<00>game.become_spectator<00>game.health_system<00>storage.auto_save.enabled<00>storage.auto_save.interval<00> storage.type<00>yaml
N<00> <00><00> getString8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;<00>game.broadcast.on_block_break<00>game.broadcast.on_player_death<00>game.broadcast.range<00>game.break_rewards.give_exp<00>game.break_rewards.exp_amount<00>"protection.protect_from_explosions<00>protection.protect_from_fire<00>protection.protect_from_pistons<00>game.spread_range<00>game.min_distance<00> <00><00>&(Ljava/lang/String;)Ljava/lang/String;<00><00><00>
<00> <00>!useExternalMessageFile<00><00>&<00>§
<00><00><00> <00><00>java/lang/StringreplaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;((Lcom/playerblocklife/PlayerBlockLife;)VCodeLineNumberTableLocalVariableTablethis#Lcom/playerblocklife/ConfigManager;MethodParameters
loadConfig StackMapTable defaultConfig1Lorg/bukkit/configuration/file/YamlConfiguration;defaultConfigStreamLjava/io/InputStream;<00>java/io/InputStreamcurrentVersionI latestVersioneLjava/io/IOException; fromVersion toVersion
saveConfigisDieWhenBlocksGoneisBecomeSpectatorisHealthSystemEnabledisAutoSaveEnabledgetAutoSaveInterval()IgetStorageType()Ljava/lang/String;isBroadcastOnBlockBreakisBroadcastOnPlayerDeathgetBroadcastRangeisGiveExpRewardgetExpRewardAmountisProtectFromExplosionsisProtectFromFireisProtectFromPistonsgetSpreadRangegetMinDistanceisCommandEnabled commandNameLjava/lang/String;isSelfUseAllowedisAdminUseAllowed isAdminOnlygetExternalMessageFileName
getMessagepath defaultValuemessage
SourceFileConfigManager.javaBootstrapMethods( 配置文件已更新到版本 *commands..enabled,commands..allow_self_use.commands..allow_admin_use0commands..admin_only2
messages.4
567 <00>8$java/lang/invoke/StringConcatFactory<00>(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; InnerClasses;%java/lang/invoke/MethodHandles$Lookup=java/lang/invoke/MethodHandlesLookup! 9:<00><00>[*<2A>*+<2B>*<2A> Y+<2B><15><17><1A><00>/0 12<00><00><00> <00> <00><00><00>7*<2A><07><0F><1E>*<2A><07><0F>"W*<2A><1A><1E>*<2A><07>%*<2A>(<28>**<2A>.<2E><00>B CG"H)I2M6N<00> 7<00><00><00>0<00><00>>**<2A><1A>1<>7*<2A><15>;L+<2B><1A>?Y+<2B>A<>G<>JM*<2A>7,<2C>M*<2A>S*<2A>V<>*<2A><00>"^ abc(e0i4k=l<00> (<00><00>><00><00>)<00><00><00><01>0<00>U<00><00>"*<2A>7X<04>Z<=<1C>*<2A>^<5E>`*<1C>c<><00>r s uvw!y<00> "<00><00> <00> <00><01>!ef<00><01>$<04>!<05>*<2A>7g<>i<><00>*<2A>7g<04>m<>s*<2A>7w<04>m<>s*<2A>7y<04>m<>s*<2A>7{<04>m<>s*<2A>7}<04>m<>s*<2A>7<04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><04>m<>s*<2A>7<12><>i<>*<2A>7<12><04>m<>s*<2A>7<12><12><>s*<2A>7X<1C><00><>s*<2A>7*<2A><1A><00>*<2A><1C><00><00>*<2A>N*<2A><12>-<2D><00><><00><00><00>j
<00><00>#<00>0<00>=<00>J<00>W<00>d<00>q<00>~<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>#<00><00>*
$<00><00>$$<00> <04><00>#g<00>
<00> <00>s*<2A>7*<2A><1A><00><>L*<2A><12>+<2B><00><> <00><00><00> <00><00><00><00><00>
<00><00><00>N<00>
<00><00><00>K*<2A>7<>*<2A>.*<2A>7<><00><00><00> <00><00> <00><00><00> !<00>5 *<2A><00><12><04><00><><00><00><00>  <00><00>!<00>5 *<2A><00><12><04><00><><00><00><00>  <00><00> !<00>5 *<2A><00><12><04><00><><00><00><00>  <00><00>
!<00>5 *<2A><00><12><04><00><><00><00><00>  <00><00>  <00>7 *<2A><00><12>,<2C>Z<><00><00><00>  <00><00> <00>6 *<2A><00><12>İ<00><00><00>  <00><00>!<00>5 *<2A><00><12><04><00><><00><00>  <00><00>!<00>5 *<2A><00><12><04><00><><00> <00>  <00><00> <00>6 *<2A><00><12><1E>Z<><00><00>  <00><00>!<00>5 *<2A><00><12><04><00><><00><00>  <00><00> <00>5 *<2A><00><12><08>Z<><00>(<00>  <00><00>!<00>5 *<2A><00><12><04><00><><00>1<00>  <00><00>!<00>5 *<2A><00><12><04><00><><00>:<00>  <00><00>!<00>5 *<2A><00><12><04><00><><00>C<00>  <00><00> <00>5 *<2A><00><12><08>Z<><00>L<00>  <00><00> <00>5 *<2A><00><12><05>Z<><00>U<00>  <00><00>l<00>C*<2A><00>+<2B><00><04><00><><00>b<00><00><00><00>l<00>C*<2A><00>+<2B><00><04><00><><00>l<00><00><00><00>l<00>C*<2A><00>+<2B><00><04><00><><00>v<00><00><00><00>l<00>C*<2A><00>+<2B><00><03><00><><00><01><00><00><00><00><00>!<00>5 *<2A><00><12><04><00><><00><01><00>  <00><00><00>6 *<2A><00><12><12><>İ<00><01><00>  <00><00> <00><00><00>'*<2A><00><>,<2C>*<2A><00>+<2B><00>,<2C><00>N-<2D> -<12><12><><00>N-<2D><00><01><01> <01><01><01>%<01><00>*'<00><00>'!'"#<00>  <09><00><00> !"$%&&3'3)3+3-3/319
:<>