code reformat
This commit is contained in:
@@ -31,6 +31,7 @@ public final class Main extends JavaPlugin {
|
||||
public static <T> TaskChain<T> chain() {
|
||||
return taskFactory.newChain();
|
||||
}
|
||||
|
||||
public static <T> TaskChain<T> sharedChain(String name) {
|
||||
return taskFactory.newSharedChain(name);
|
||||
}
|
||||
@@ -44,10 +45,10 @@ public final class Main extends JavaPlugin {
|
||||
this.saveConfig();
|
||||
|
||||
Main.configuration = new PixelBlockConfiguration(
|
||||
config.getInt(PixelBlockConfiguration.Keys.PixelsPerBlock.getKey()),
|
||||
config.getDouble(PixelBlockConfiguration.Keys.HitboxOffset.getKey()),
|
||||
config.getBoolean(PixelBlockConfiguration.Keys.OnlyBreakableByOwners.getKey()),
|
||||
config.getBoolean(PixelBlockConfiguration.Keys.OnlyEditableByOwners.getKey())
|
||||
config.getInt(PixelBlockConfiguration.Keys.PixelsPerBlock.getKey()),
|
||||
config.getDouble(PixelBlockConfiguration.Keys.HitboxOffset.getKey()),
|
||||
config.getBoolean(PixelBlockConfiguration.Keys.OnlyBreakableByOwners.getKey()),
|
||||
config.getBoolean(PixelBlockConfiguration.Keys.OnlyEditableByOwners.getKey())
|
||||
);
|
||||
|
||||
File databaseFile = new File(plugin.getDataFolder(), "blocks.db");
|
||||
@@ -80,7 +81,7 @@ public final class Main extends JavaPlugin {
|
||||
new PreventGrowthListener()
|
||||
};
|
||||
|
||||
for (Listener listener : listeners) {
|
||||
for(Listener listener : listeners) {
|
||||
getServer().getPluginManager().registerEvents(listener, plugin);
|
||||
}
|
||||
|
||||
@@ -95,7 +96,7 @@ public final class Main extends JavaPlugin {
|
||||
Bukkit.getOnlinePlayers().forEach(QuitWhileInPixelBlockListener::kickPlayerOutOfWorld);
|
||||
try {
|
||||
database.close();
|
||||
} catch (SQLException e) {
|
||||
} catch(SQLException e) {
|
||||
throw new RuntimeException("Failed disabling", e);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user