Jump to content

zackyd

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

zackyd's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Oh wow, Thank you so much.
  2. So I am trying to check if a player is an operator upon server join, this is to display a message to operators only. However I seem to always getting true back from func_152607_e. I believe I am using the function incorrectly because I doubt it returns true for all players even non-OP players. sample of my code: @SubscribeEvent public void playerjoin(PlayerLoggedInEvent event) { //OpCheck GameProfile player = event.player.getGameProfile(); Boolean IsOP = MinecraftServer.getServer().getConfigurationManager().func_152607_e(player); if (IsOP == true) { event.player.addChatMessage(new ChatComponentText("Operator Join Message")); } else{ event.player.addChatMessage(new ChatComponentText("Regular Join Message")); } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.