Fix commandspy

This commit is contained in:
Telesphoreo 2022-04-24 01:12:24 -05:00
parent d699f6de02
commit dd661a7304
No known key found for this signature in database
GPG Key ID: B5CDDEBA526C0130
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class CommandListener extends PlexListener
@EventHandler(priority = EventPriority.HIGHEST)
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
{
Bukkit.getOnlinePlayers().stream().filter(pl -> PlayerCache.getPlexPlayer(pl.getUniqueId()).isCommandSpy()).forEach(pl ->
Bukkit.getOnlinePlayers().stream().filter(pl -> PlayerCache.getPlexPlayer(pl.getUniqueId()).isCommandSpy() && PlayerCache.getPlexPlayer(pl.getUniqueId()).isAdminActive()).forEach(pl ->
{
Player player = event.getPlayer();
String command = event.getMessage();