mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-11 15:19:13 +00:00
Actually make the default console senior permissions configurable
This commit is contained in:
parent
00e9b4ea1f
commit
9315227906
1 changed files with 5 additions and 2 deletions
|
@ -14,6 +14,8 @@ import java.util.UUID;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import me.StevenLawson.TotalFreedomMod.Commands.Command_logs;
|
||||
import me.StevenLawson.TotalFreedomMod.Config.TFM_Config;
|
||||
import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry;
|
||||
import me.StevenLawson.TotalFreedomMod.Config.TFM_MainConfig;
|
||||
import me.StevenLawson.TotalFreedomMod.World.TFM_AdminWorld;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
|
@ -351,7 +353,8 @@ public class TFM_AdminList
|
|||
|
||||
if (!(sender instanceof Player))
|
||||
{
|
||||
return consoleAliases.contains(sender.getName()) || sender.getName().equals("CONSOLE");
|
||||
return consoleAliases.contains(sender.getName())
|
||||
|| (TFM_MainConfig.getInstance().getBoolean(TFM_ConfigEntry.CONSOLE_IS_SENIOR) && sender.getName().equals("CONSOLE"));
|
||||
}
|
||||
|
||||
final TFM_Admin entry = getEntry((Player) sender);
|
||||
|
|
Loading…
Reference in a new issue