public class com.thevoxelbox.voxelsniper.VoxelSniperPlugin extends org.bukkit.plugin.java.JavaPlugin
{
private static final long HOURS_TO_TICKS;
private static final org.apache.logging.log4j.Logger LOGGER;
public static com.thevoxelbox.voxelsniper.VoxelSniperPlugin plugin;
public static java.lang.String newVersionTitle;
public static boolean hasUpdate;
public static boolean updateCheckFailed;
private static java.lang.String currentVersionTitle;
private com.thevoxelbox.voxelsniper.config.VoxelSniperConfig voxelSniperConfig;
private final com.sk89q.worldedit.util.concurrency.LazyReference translationManager;
private com.thevoxelbox.voxelsniper.brush.BrushRegistry brushRegistry;
private com.thevoxelbox.voxelsniper.performer.PerformerRegistry performerRegistry;
private com.thevoxelbox.voxelsniper.sniper.SniperRegistry sniperRegistry;
private com.thevoxelbox.voxelsniper.command.PatternParser patternParser;
private com.thevoxelbox.voxelsniper.command.CommandRegistry commandRegistry;
private double newVersion;
private double currentVersion;
public void <init>()
{
com.sk89q.worldedit.util.concurrency.LazyReference v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
java.util.function.Supplier v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
specialinvoke v.<org.bukkit.plugin.java.JavaPlugin: void <init>()>();
v = staticinvoke <com.thevoxelbox.voxelsniper.VoxelSniperPlugin$lambda_new_0__109: java.util.function.Supplier bootstrap$(com.thevoxelbox.voxelsniper.VoxelSniperPlugin)>(v);
v = staticinvoke <com.sk89q.worldedit.util.concurrency.LazyReference: com.sk89q.worldedit.util.concurrency.LazyReference 'from'(java.util.function.Supplier)>(v);
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.sk89q.worldedit.util.concurrency.LazyReference translationManager> = v;
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: double newVersion> = 0.0;
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: double currentVersion> = 0.0;
return;
}
public static org.bukkit.plugin.java.JavaPlugin getPlugin()
{
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.VoxelSniperPlugin plugin>;
return v;
}
public void onEnable()
{
com.thevoxelbox.voxelsniper.command.PatternParser v;
java.lang.String[] v;
long v;
java.lang.Runnable v;
org.bukkit.Server v;
int v;
java.lang.String v, v, v, v;
com.sk89q.worldedit.WorldEdit v;
boolean v;
double v;
org.bukkit.scheduler.BukkitScheduler v;
com.thevoxelbox.voxelsniper.sniper.SniperRegistry v;
com.thevoxelbox.voxelsniper.command.CommandRegistry v;
com.thevoxelbox.voxelsniper.config.VoxelSniperConfig v, v, v;
org.bstats.bukkit.Metrics v;
com.thevoxelbox.voxelsniper.brush.BrushRegistry v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.performer.PerformerRegistry v;
org.bukkit.plugin.PluginDescriptionFile v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.VoxelSniperPlugin plugin> = v;
v = specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig loadConfig()>();
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig voxelSniperConfig> = v;
v = specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.brush.BrushRegistry loadBrushRegistry()>();
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.brush.BrushRegistry brushRegistry> = v;
v = specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.performer.PerformerRegistry loadPerformerRegistry()>();
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.performer.PerformerRegistry performerRegistry> = v;
v = new com.thevoxelbox.voxelsniper.sniper.SniperRegistry;
specialinvoke v.<com.thevoxelbox.voxelsniper.sniper.SniperRegistry: void <init>()>();
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.sniper.SniperRegistry sniperRegistry> = v;
v = new com.thevoxelbox.voxelsniper.command.PatternParser;
v = staticinvoke <com.sk89q.worldedit.WorldEdit: com.sk89q.worldedit.WorldEdit getInstance()>();
specialinvoke v.<com.thevoxelbox.voxelsniper.command.PatternParser: void <init>(com.sk89q.worldedit.WorldEdit)>(v);
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.command.PatternParser patternParser> = v;
specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: void testRegistries()>();
v = new com.thevoxelbox.voxelsniper.command.CommandRegistry;
specialinvoke v.<com.thevoxelbox.voxelsniper.command.CommandRegistry: void <init>(com.thevoxelbox.voxelsniper.VoxelSniperPlugin)>(v);
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.command.CommandRegistry commandRegistry> = v;
specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: void prepareCommands()>();
specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: void loadCommands()>();
specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: void loadListeners()>();
v = new org.bstats.bukkit.Metrics;
specialinvoke v.<org.bstats.bukkit.Metrics: void <init>(org.bukkit.plugin.java.JavaPlugin,int)>(v, 6405);
staticinvoke <org.incendo.serverlib.ServerLib: void checkUnsafeForks()>();
staticinvoke <org.incendo.serverlib.ServerLib: void isJavaSixteen()>();
staticinvoke <io.papermc.lib.PaperLib: void suggestPaper(org.bukkit.plugin.Plugin)>(v);
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.bukkit.plugin.PluginDescriptionFile getDescription()>();
v = virtualinvoke v.<org.bukkit.plugin.PluginDescriptionFile: java.lang.String getVersion()>();
v = virtualinvoke v.<java.lang.String: java.lang.String[] split(java.lang.String)>("-");
v = v[0];
<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: java.lang.String currentVersionTitle> = v;
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: java.lang.String currentVersionTitle>;
v = virtualinvoke v.<java.lang.String: java.lang.String replaceFirst(java.lang.String,java.lang.String)>("\\.", "");
v = staticinvoke <java.lang.Double: double parseDouble(java.lang.String)>(v);
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: double currentVersion> = v;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig voxelSniperConfig>;
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfig: boolean isUpdateCheckerEnabled()>();
if v != 0 goto label;
return;
label:
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.bukkit.Server getServer()>();
v = interfaceinvoke v.<org.bukkit.Server: org.bukkit.scheduler.BukkitScheduler getScheduler()>();
v = staticinvoke <com.thevoxelbox.voxelsniper.VoxelSniperPlugin$lambda_onEnable_1__110: java.lang.Runnable bootstrap$(com.thevoxelbox.voxelsniper.VoxelSniperPlugin)>(v);
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig voxelSniperConfig>;
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfig: int getUpdateCheckerInterval()>();
v = v * 72000L;
interfaceinvoke v.<org.bukkit.scheduler.BukkitScheduler: org.bukkit.scheduler.BukkitTask runTaskTimerAsynchronously(org.bukkit.plugin.Plugin,java.lang.Runnable,long,long)>(v, v, 0L, v);
return;
}
private com.thevoxelbox.voxelsniper.config.VoxelSniperConfig loadConfig()
{
org.bukkit.configuration.file.FileConfiguration v;
java.util.Map v;
int v, v, v, v, v, v;
com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader v;
boolean v, v, v;
com.sk89q.worldedit.world.block.BlockType v, v;
com.thevoxelbox.voxelsniper.config.VoxelSniperConfig v;
java.util.List v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: void saveDefaultConfig()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.bukkit.configuration.file.FileConfiguration getConfig()>();
v = new com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader;
specialinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: void <init>(com.thevoxelbox.voxelsniper.VoxelSniperPlugin,org.bukkit.configuration.file.FileConfiguration)>(v, v);
v = new com.thevoxelbox.voxelsniper.config.VoxelSniperConfig;
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: boolean isUpdateCheckerEnabled()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: int getUpdateCheckerInterval()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: boolean isMessageOnLoginEnabled()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: boolean arePersistentSessionsEnabled()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: com.sk89q.worldedit.world.block.BlockType getDefaultBlockMaterial()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: com.sk89q.worldedit.world.block.BlockType getDefaultReplaceBlockMaterial()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: int getDefaultBrushSize()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: int getLitesniperMaxBrushSize()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: java.util.List getLitesniperRestrictedMaterials()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: int getBrushSizeWarningThreshold()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: int getDefaultVoxelHeight()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: int getDefaultCylinderCenter()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfigLoader: java.util.Map getBrushProperties()>();
specialinvoke v.<com.thevoxelbox.voxelsniper.config.VoxelSniperConfig: void <init>(boolean,int,boolean,boolean,com.sk89q.worldedit.world.block.BlockType,com.sk89q.worldedit.world.block.BlockType,int,int,java.util.List,int,int,int,java.util.Map)>(v, v, v, v, v, v, v, v, v, v, v, v, v);
return v;
}
private com.thevoxelbox.voxelsniper.brush.BrushRegistry loadBrushRegistry()
{
com.thevoxelbox.voxelsniper.BrushRegistrar v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.brush.BrushRegistry v;
java.io.File v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = new com.thevoxelbox.voxelsniper.brush.BrushRegistry;
specialinvoke v.<com.thevoxelbox.voxelsniper.brush.BrushRegistry: void <init>()>();
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: java.io.File getDataFolder()>();
v = new com.thevoxelbox.voxelsniper.BrushRegistrar;
specialinvoke v.<com.thevoxelbox.voxelsniper.BrushRegistrar: void <init>(com.thevoxelbox.voxelsniper.brush.BrushRegistry,java.io.File)>(v, v);
virtualinvoke v.<com.thevoxelbox.voxelsniper.BrushRegistrar: void registerBrushes()>();
return v;
}
private com.thevoxelbox.voxelsniper.performer.PerformerRegistry loadPerformerRegistry()
{
com.thevoxelbox.voxelsniper.PerformerRegistrar v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.performer.PerformerRegistry v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = new com.thevoxelbox.voxelsniper.performer.PerformerRegistry;
specialinvoke v.<com.thevoxelbox.voxelsniper.performer.PerformerRegistry: void <init>()>();
v = new com.thevoxelbox.voxelsniper.PerformerRegistrar;
specialinvoke v.<com.thevoxelbox.voxelsniper.PerformerRegistrar: void <init>(com.thevoxelbox.voxelsniper.performer.PerformerRegistry)>(v);
virtualinvoke v.<com.thevoxelbox.voxelsniper.PerformerRegistrar: void registerPerformers()>();
return v;
}
private void testRegistries()
{
java.util.Set v, v;
java.util.function.Function v, v;
com.thevoxelbox.voxelsniper.brush.BrushRegistry v;
java.util.function.Consumer v, v;
java.util.stream.Stream v, v, v, v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
java.util.Comparator v, v;
com.thevoxelbox.voxelsniper.performer.PerformerRegistry v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.brush.BrushRegistry brushRegistry>;
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.brush.BrushRegistry: java.util.Set getUniqueBrushesProperties()>();
v = interfaceinvoke v.<java.util.Set: java.util.stream.Stream stream()>();
v = staticinvoke <com.thevoxelbox.voxelsniper.VoxelSniperPlugin$getName__111: java.util.function.Function bootstrap$()>();
v = staticinvoke <java.util.Comparator: java.util.Comparator comparing(java.util.function.Function)>(v);
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream sorted(java.util.Comparator)>(v);
v = staticinvoke <com.thevoxelbox.voxelsniper.VoxelSniperPlugin$lambda_testRegistries_2__112: java.util.function.Consumer bootstrap$()>();
interfaceinvoke v.<java.util.stream.Stream: void forEachOrdered(java.util.function.Consumer)>(v);
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.performer.PerformerRegistry performerRegistry>;
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.performer.PerformerRegistry: java.util.Set getUniquePerformerProperties()>();
v = interfaceinvoke v.<java.util.Set: java.util.stream.Stream stream()>();
v = staticinvoke <com.thevoxelbox.voxelsniper.VoxelSniperPlugin$getName__113: java.util.function.Function bootstrap$()>();
v = staticinvoke <java.util.Comparator: java.util.Comparator comparing(java.util.function.Function)>(v);
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream sorted(java.util.Comparator)>(v);
v = staticinvoke <com.thevoxelbox.voxelsniper.VoxelSniperPlugin$lambda_testRegistries_3__114: java.util.function.Consumer bootstrap$()>();
interfaceinvoke v.<java.util.stream.Stream: void forEachOrdered(java.util.function.Consumer)>(v);
return;
}
private void prepareCommands()
{
com.thevoxelbox.voxelsniper.command.CommandRegistry v;
java.lang.RuntimeException v;
java.lang.Exception v;
org.apache.logging.log4j.Logger v;
org.bukkit.Server v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v, v;
org.bukkit.plugin.PluginManager v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
label:
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.command.CommandRegistry commandRegistry>;
virtualinvoke v.<com.thevoxelbox.voxelsniper.command.CommandRegistry: void initialize()>();
label:
goto label;
label:
v := @caughtexception;
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.apache.logging.log4j.Logger LOGGER>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void warn(java.lang.String)>("Unable to initialize the command system. FastAsyncVoxelSniper will be disabled!");
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.bukkit.Server getServer()>();
v = interfaceinvoke v.<org.bukkit.Server: org.bukkit.plugin.PluginManager getPluginManager()>();
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.VoxelSniperPlugin plugin>;
interfaceinvoke v.<org.bukkit.plugin.PluginManager: void disablePlugin(org.bukkit.plugin.Plugin)>(v);
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
}
private void loadCommands()
{
com.thevoxelbox.voxelsniper.command.CommandRegistry v;
java.lang.RuntimeException v;
java.lang.Exception v;
com.thevoxelbox.voxelsniper.CommandRegistrar v;
org.apache.logging.log4j.Logger v;
org.bukkit.Server v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v, v;
org.bukkit.plugin.PluginManager v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
label:
v = new com.thevoxelbox.voxelsniper.CommandRegistrar;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.command.CommandRegistry commandRegistry>;
specialinvoke v.<com.thevoxelbox.voxelsniper.CommandRegistrar: void <init>(com.thevoxelbox.voxelsniper.VoxelSniperPlugin,com.thevoxelbox.voxelsniper.command.CommandRegistry)>(v, v);
virtualinvoke v.<com.thevoxelbox.voxelsniper.CommandRegistrar: void registerSuggestionsAndParsers()>();
virtualinvoke v.<com.thevoxelbox.voxelsniper.CommandRegistrar: void registerCommands()>();
label:
goto label;
label:
v := @caughtexception;
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.apache.logging.log4j.Logger LOGGER>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void warn(java.lang.String)>("Unable to register the commands. FastAsyncVoxelSniper will be disabled!");
v = virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.bukkit.Server getServer()>();
v = interfaceinvoke v.<org.bukkit.Server: org.bukkit.plugin.PluginManager getPluginManager()>();
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.VoxelSniperPlugin plugin>;
interfaceinvoke v.<org.bukkit.plugin.PluginManager: void disablePlugin(org.bukkit.plugin.Plugin)>(v);
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
}
private void loadListeners()
{
com.thevoxelbox.voxelsniper.listener.PlayerQuitListener v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.listener.PlayerInteractListener v;
com.thevoxelbox.voxelsniper.listener.PlayerJoinListener v;
org.bukkit.plugin.PluginManager v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = staticinvoke <org.bukkit.Bukkit: org.bukkit.plugin.PluginManager getPluginManager()>();
v = new com.thevoxelbox.voxelsniper.listener.PlayerJoinListener;
specialinvoke v.<com.thevoxelbox.voxelsniper.listener.PlayerJoinListener: void <init>(com.thevoxelbox.voxelsniper.VoxelSniperPlugin)>(v);
interfaceinvoke v.<org.bukkit.plugin.PluginManager: void registerEvents(org.bukkit.event.Listener,org.bukkit.plugin.Plugin)>(v, v);
v = new com.thevoxelbox.voxelsniper.listener.PlayerQuitListener;
specialinvoke v.<com.thevoxelbox.voxelsniper.listener.PlayerQuitListener: void <init>(com.thevoxelbox.voxelsniper.VoxelSniperPlugin)>(v);
interfaceinvoke v.<org.bukkit.plugin.PluginManager: void registerEvents(org.bukkit.event.Listener,org.bukkit.plugin.Plugin)>(v, v);
v = new com.thevoxelbox.voxelsniper.listener.PlayerInteractListener;
specialinvoke v.<com.thevoxelbox.voxelsniper.listener.PlayerInteractListener: void <init>(com.thevoxelbox.voxelsniper.VoxelSniperPlugin)>(v);
interfaceinvoke v.<org.bukkit.plugin.PluginManager: void registerEvents(org.bukkit.event.Listener,org.bukkit.plugin.Plugin)>(v, v);
return;
}
public void reload()
{
com.thevoxelbox.voxelsniper.config.VoxelSniperConfig v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
virtualinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: void reloadConfig()>();
v = specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig loadConfig()>();
v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig voxelSniperConfig> = v;
specialinvoke v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: void testRegistries()>();
return;
}
public com.thevoxelbox.voxelsniper.config.VoxelSniperConfig getVoxelSniperConfig()
{
com.thevoxelbox.voxelsniper.config.VoxelSniperConfig v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.config.VoxelSniperConfig voxelSniperConfig>;
return v;
}
public com.sk89q.worldedit.util.translation.TranslationManager getTranslationManager()
{
java.lang.Object v;
com.sk89q.worldedit.util.concurrency.LazyReference v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.sk89q.worldedit.util.concurrency.LazyReference translationManager>;
v = virtualinvoke v.<com.sk89q.worldedit.util.concurrency.LazyReference: java.lang.Object getValue()>();
return v;
}
public com.thevoxelbox.voxelsniper.brush.BrushRegistry getBrushRegistry()
{
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.brush.BrushRegistry v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.brush.BrushRegistry brushRegistry>;
return v;
}
public com.thevoxelbox.voxelsniper.performer.PerformerRegistry getPerformerRegistry()
{
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.performer.PerformerRegistry v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.performer.PerformerRegistry performerRegistry>;
return v;
}
public com.thevoxelbox.voxelsniper.sniper.SniperRegistry getSniperRegistry()
{
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.sniper.SniperRegistry v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.sniper.SniperRegistry sniperRegistry>;
return v;
}
public com.thevoxelbox.voxelsniper.command.PatternParser getPatternParser()
{
com.thevoxelbox.voxelsniper.command.PatternParser v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.command.PatternParser patternParser>;
return v;
}
public com.thevoxelbox.voxelsniper.command.CommandRegistry getCommandRegistry()
{
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
com.thevoxelbox.voxelsniper.command.CommandRegistry v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v = v.<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: com.thevoxelbox.voxelsniper.command.CommandRegistry commandRegistry>;
return v;
}
private double updateCheck(double)
{
java.net.URL v;
java.net.URLConnection v;
int v, v;
java.lang.String v, v, v, v, v, v;
java.net.URI v;
boolean v;
double v, v;
java.io.IOException v;
java.io.InputStreamReader v;
org.apache.logging.log4j.Logger v, v;
java.lang.Object v, v, v;
java.io.BufferedReader v;
com.thevoxelbox.voxelsniper.VoxelSniperPlugin v;
java.io.InputStream v;
v := @this: com.thevoxelbox.voxelsniper.VoxelSniperPlugin;
v := @parameter: double;
label:
v = staticinvoke <java.net.URI: java.net.URI create(java.lang.String)>("https://api.curseforge.com/servermods/files?projectids=454430");
v = virtualinvoke v.<java.net.URI: java.net.URL toURL()>();
v = virtualinvoke v.<java.net.URL: java.net.URLConnection openConnection()>();
virtualinvoke v.<java.net.URLConnection: void setReadTimeout(int)>(5000);
virtualinvoke v.<java.net.URLConnection: void addRequestProperty(java.lang.String,java.lang.String)>("User-Agent", "FastAsyncVoxelSniper Update Checker");
virtualinvoke v.<java.net.URLConnection: void setDoOutput(boolean)>(1);
v = new java.io.BufferedReader;
v = new java.io.InputStreamReader;
v = virtualinvoke v.<java.net.URLConnection: java.io.InputStream getInputStream()>();
specialinvoke v.<java.io.InputStreamReader: void <init>(java.io.InputStream)>(v);
specialinvoke v.<java.io.BufferedReader: void <init>(java.io.Reader)>(v);
v = virtualinvoke v.<java.io.BufferedReader: java.lang.String readLine()>();
v = staticinvoke <org.json.simple.JSONValue: java.lang.Object parse(java.lang.String)>(v);
v = virtualinvoke v.<org.json.simple.JSONArray: boolean isEmpty()>();
if v == 0 goto label;
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.apache.logging.log4j.Logger LOGGER>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void warn(java.lang.String)>("No files found, or Feed URL is bad.");
label:
return v;
label:
v = virtualinvoke v.<org.json.simple.JSONArray: int size()>();
v = v - 1;
v = virtualinvoke v.<org.json.simple.JSONArray: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.json.simple.JSONObject: java.lang.Object get(java.lang.Object)>("name");
v = virtualinvoke v.<java.lang.String: java.lang.String replace(java.lang.CharSequence,java.lang.CharSequence)>("FastAsyncVoxelSniper", "");
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: java.lang.String newVersionTitle> = v;
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: java.lang.String newVersionTitle>;
v = virtualinvoke v.<java.lang.String: java.lang.String replaceFirst(java.lang.String,java.lang.String)>("\\.", "");
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
v = staticinvoke <java.lang.Double: double parseDouble(java.lang.String)>(v);
label:
return v;
label:
v := @caughtexception;
v = <com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.apache.logging.log4j.Logger LOGGER>;
interfaceinvoke v.<org.apache.logging.log4j.Logger: void error(java.lang.String)>("Unable to connect to api.curseforge.com to check for updates. Improper firewall configuration?");
return #NaN;
catch java.io.IOException from label to label with label;
catch java.io.IOException from label to label with label;
}
static void <clinit>()
{
org.apache.logging.log4j.Logger v;
v = staticinvoke <com.sk89q.worldedit.internal.util.LogManagerCompat: org.apache.logging.log4j.Logger getLogger()>();
<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: org.apache.logging.log4j.Logger LOGGER> = v;
<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: java.lang.String newVersionTitle> = "";
<com.thevoxelbox.voxelsniper.VoxelSniperPlugin: java.lang.String currentVersionTitle> = "";
return;
}
}