mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-01 22:14:56 +00:00
Update a few dependencies
This commit is contained in:
2 files changed
+35
-6
No files matched your search
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
package net.arcaniax.buildersutilities;
|
||||
|
||||
import io.papermc.lib.PaperLib;
|
||||
import net.arcaniax.buildersutilities.commands.system.CommandForwarder;
|
||||
import net.arcaniax.buildersutilities.listeners.BlockBreakListener;
|
||||
import net.arcaniax.buildersutilities.listeners.BlockPhysicsListener;
|
||||
@@ -46,6 +47,7 @@ import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.incendo.serverlib.ServerLib;
|
||||
|
||||
public final class BuildersUtilities extends JavaPlugin {
|
||||
|
||||
@@ -78,6 +80,11 @@ public final class BuildersUtilities extends JavaPlugin {
|
||||
|
||||
Metrics metrics = new Metrics(this, BSTATS_ID);
|
||||
|
||||
// Check if we are in a safe environment
|
||||
ServerLib.checkUnsafeForks();
|
||||
ServerLib.checkJavaLTS();
|
||||
PaperLib.suggestPaper(this);
|
||||
|
||||
this.getServer().getPluginManager().registerEvents(new BlockBreakListener(), this);
|
||||
this.getServer().getPluginManager().registerEvents(new BlockPhysicsListener(), this);
|
||||
this.getServer().getPluginManager().registerEvents(new ExplosionListener(), this);
|
||||
|
||||
Reference in new issue
Block a user