Make it compile

This commit is contained in:
Telesphoreo 2022-05-08 21:14:23 -05:00
parent 76b2b18fe4
commit 24e33c7c0d
No known key found for this signature in database
GPG Key ID: 5ACFFC4682CF849B

View File

@ -6,9 +6,6 @@ import dev.plex.listener.PlexListener;
import dev.plex.nush.NushModule;
import dev.plex.player.PlexPlayer;
import dev.plex.rank.RankManager;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerJoinEvent;
@ -24,7 +21,13 @@ public class JoinListener extends PlexListener
PlexPlayer plexPlayer = DataUtils.getPlayer(player.getUniqueId());
RankManager rankManager = plex.getRankManager();
if(!rankManager.isAdmin(plexPlayer)) return; // we only want to add admins
if(ChatListener.work.containsKey())
if (!rankManager.isAdmin(plexPlayer))
{
return; // we only want to add admins
}
/*if (ChatListener.work.containsKey())
{
}*/
}
}