Plugin Help Fix @SuppressWarnings my plugin

Discussion in 'Plugin Help/Development/Requests' started by SkelletonX, Aug 27, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    SkelletonX

  2. Offline

    Zombie_Striker

    @SkelletonX
    The deprecation is there for the offline player to remind you that players can change their name, so you should not try to store them based on their name, but their UUID. The teams.contains deprecation because teams is a list of Teams, not List of Strings. The contains method will always return false. If you want to check if a team exists, use getTeam(*STRING*) != null
     
  3. Offline

    SkelletonX

  4. Offline

    Zombie_Striker

    @SkelletonX
    For UUIDs, you either need to A) Rework your system jogador is a UUID, or B) Just suppress warnings since for that it will still work even as a String.

    For the Team, I gave you the code.

    BTW: We had a thread about spoonfeeding/example code in the plugin development forums. Please read it:
    https://bukkit.org/threads/read-me-first-how-to-make-a-plugin-development-thread.395844/
     
Thread Status:
Not open for further replies.

Share This Page