kill entities if there is another with the same name bukkit

Discussion in 'Plugin Development' started by CraterHater, Nov 10, 2016.

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

    CraterHater

    Hey,

    How do I check for all entities and only allow 1 entity per custom name, I personally can't get it right.

    Thanks!
     
  2. Online

    timtower Administrator Administrator Moderator

    @CraterHater Get all entities
    Make a list of strings
    Loop through entities
    If name is in the list: kill
    If not in the list: add to list and continue
     
Thread Status:
Not open for further replies.

Share This Page