mirror of
https://github.com/kaboomserver/extras.git
synced 2025-04-22 17:33:36 -04:00
Update Main.java
This commit is contained in:
parent
1c3864e608
commit
d65c1f1428
1 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,8 @@ import org.bukkit.plugin.java.JavaPlugin;
|
|||
import pw.kaboom.extras.commands.*;
|
||||
import pw.kaboom.extras.modules.block.BlockCheck;
|
||||
import pw.kaboom.extras.modules.block.BlockPhysics;
|
||||
import pw.kaboom.extras.modules.checks.DenyTorchLoad;
|
||||
import pw.kaboom.extras.modules.checks.DenyWaterFlow;
|
||||
import pw.kaboom.extras.modules.entity.EntityExplosion;
|
||||
import pw.kaboom.extras.modules.entity.EntityKnockback;
|
||||
import pw.kaboom.extras.modules.entity.EntitySpawn;
|
||||
|
@ -25,7 +27,6 @@ import java.util.Collections;
|
|||
public final class Main extends JavaPlugin {
|
||||
private File prefixConfigFile;
|
||||
private FileConfiguration prefixConfig;
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
/* Fill lists */
|
||||
|
@ -98,6 +99,10 @@ public final class Main extends JavaPlugin {
|
|||
this.getServer().getPluginManager().registerEvents(new ServerTabComplete(), this);
|
||||
this.getServer().getPluginManager().registerEvents(new ServerTick(), this);
|
||||
|
||||
/* Anti-lag-related modules */
|
||||
this.getServer().getPluginManager().registerEvents(new DenyWaterFlow(), this);
|
||||
this.getServer().getPluginManager().registerEvents(new DenyTorchLoad(), this);
|
||||
|
||||
/* Custom worlds */
|
||||
this.getServer().createWorld(
|
||||
new WorldCreator("world_flatlands").generateStructures(false).type(WorldType.FLAT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue