From 6aeeff235a3cfb0949118f6d2bf3feb1c0ea8e7c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 30 Sep 2023 19:53:38 +0200 Subject: [PATCH] Fix eventreload perms Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/EventreloadCommand.java | 3 ++- src/de/steamwar/bungeecore/listeners/ConnectionListener.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/EventreloadCommand.java b/src/de/steamwar/bungeecore/commands/EventreloadCommand.java index 1c3d173..1e419e7 100644 --- a/src/de/steamwar/bungeecore/commands/EventreloadCommand.java +++ b/src/de/steamwar/bungeecore/commands/EventreloadCommand.java @@ -19,13 +19,14 @@ package de.steamwar.bungeecore.commands; +import de.steamwar.bungeecore.listeners.ConnectionListener; import de.steamwar.sql.EventFight; import de.steamwar.command.SWCommand; import net.md_5.bungee.api.CommandSender; public class EventreloadCommand extends SWCommand { public EventreloadCommand() { - super("eventreload", "bungeecore.softreload"); + super("eventreload", ConnectionListener.EVENTRELOAD_PERMISSION); } @Register diff --git a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java index 032b52f..2e8a879 100644 --- a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java +++ b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java @@ -53,6 +53,7 @@ public class ConnectionListener extends BasicListener { public static final String BAN_PERMISSION = "bungeecore.ban"; public static final String BUILDERCLOUD_PERMISSION = "bungeecore.buildercloud"; public static final String CHECK_PERMISSION = "bungeecore.check"; + public static final String EVENTRELOAD_PERMISSION = "bungeecore.eventreload"; public static final String KICK_PERMISSION = "bungeecore.kick"; public static final String POLLRESULT_PERMISSION = "bungeecore.pollresult"; public static final String SOFTRELOAD_PERMISSION = "bungeecore.softreload"; @@ -81,6 +82,7 @@ public class ConnectionListener extends BasicListener { player.setPermission(ALERT_PERMISSION, true); player.setPermission(KICK_PERMISSION, true); player.setPermission(POLLRESULT_PERMISSION, true); + player.setPermission(EVENTRELOAD_PERMISSION, true); player.setPermission(MOD_PERMISSION, true); }