SteamWar/BungeeCore
Archiviert
13
2

Fix eventreload perms
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-09-30 19:53:38 +02:00
Ursprung 65fcb5329f
Commit 6aeeff235a
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -19,13 +19,14 @@
package de.steamwar.bungeecore.commands; package de.steamwar.bungeecore.commands;
import de.steamwar.bungeecore.listeners.ConnectionListener;
import de.steamwar.sql.EventFight; import de.steamwar.sql.EventFight;
import de.steamwar.command.SWCommand; import de.steamwar.command.SWCommand;
import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.CommandSender;
public class EventreloadCommand extends SWCommand { public class EventreloadCommand extends SWCommand {
public EventreloadCommand() { public EventreloadCommand() {
super("eventreload", "bungeecore.softreload"); super("eventreload", ConnectionListener.EVENTRELOAD_PERMISSION);
} }
@Register @Register

Datei anzeigen

@ -53,6 +53,7 @@ public class ConnectionListener extends BasicListener {
public static final String BAN_PERMISSION = "bungeecore.ban"; public static final String BAN_PERMISSION = "bungeecore.ban";
public static final String BUILDERCLOUD_PERMISSION = "bungeecore.buildercloud"; public static final String BUILDERCLOUD_PERMISSION = "bungeecore.buildercloud";
public static final String CHECK_PERMISSION = "bungeecore.check"; 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 KICK_PERMISSION = "bungeecore.kick";
public static final String POLLRESULT_PERMISSION = "bungeecore.pollresult"; public static final String POLLRESULT_PERMISSION = "bungeecore.pollresult";
public static final String SOFTRELOAD_PERMISSION = "bungeecore.softreload"; public static final String SOFTRELOAD_PERMISSION = "bungeecore.softreload";
@ -81,6 +82,7 @@ public class ConnectionListener extends BasicListener {
player.setPermission(ALERT_PERMISSION, true); player.setPermission(ALERT_PERMISSION, true);
player.setPermission(KICK_PERMISSION, true); player.setPermission(KICK_PERMISSION, true);
player.setPermission(POLLRESULT_PERMISSION, true); player.setPermission(POLLRESULT_PERMISSION, true);
player.setPermission(EVENTRELOAD_PERMISSION, true);
player.setPermission(MOD_PERMISSION, true); player.setPermission(MOD_PERMISSION, true);
} }