mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-02 06:28:53 +00:00
Implement debug listener and optimize permission handling (#9)
* Improve permission handling and implement debug listener * Fix custom no-permission message * Fix ender dragon egg teleport bypass when sneaking
This commit is contained in:
1 parent
4abd7644aa
commit
17041d4c47
32 files changed
+97
-56
No files matched your search
@@ -37,16 +37,12 @@ import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
public final class Main extends JavaPlugin {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger("BU/" + Main.class.getSimpleName());
|
||||
|
||||
public static final String MSG_PREFIX = ChatColor.DARK_AQUA + "BuildersUtils> " + ChatColor.AQUA;
|
||||
public static final String MSG_ERROR = ChatColor.DARK_RED + "Error: " + ChatColor.RED;
|
||||
public static final String MSG_PREFIX = ChatColor.DARK_AQUA + "Builders-Utilities > " + ChatColor.AQUA;
|
||||
public static final String MSG_NO_PERMISSION = MSG_PREFIX + ChatColor.AQUA + "You do not have access to this command. Lacking permission: " + ChatColor.RED;
|
||||
public static final String MSG_ERROR = MSG_PREFIX + ChatColor.DARK_RED + "Error: " + ChatColor.RED;
|
||||
private static final int BSTATS_ID = 5168;
|
||||
private static Main instance;
|
||||
private Settings settings;
|
||||
@@ -71,7 +67,6 @@ public final class Main extends JavaPlugin {
|
||||
BannerUtil.addColors();
|
||||
BannerUtil.addPatterns();
|
||||
|
||||
|
||||
Metrics metrics = new Metrics(this, BSTATS_ID);
|
||||
|
||||
this.getServer().getPluginManager().registerEvents(new BlockBreakListener(), this);
|
||||
|
||||
Reference in new issue
Block a user