remove all players that have the same key on the hashmap?

Discussion in 'Plugin Development' started by thewalkingplay, Jun 16, 2015.

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

    thewalkingplay

    Hi, i'm making a minigame plugin and i need to remove all players that have the same key on a hashmap, what can i do?

    sorry for my english , i'm brazilian
     
  2. Offline

    Airbornz

    Assuming your map is as follows:

    Map<String, Player> map = new HashMap<String, Player>();

    Just do:

    map.remove("key")
     
Thread Status:
Not open for further replies.

Share This Page