[NEED HELP] Zombie Custom Name for each player

Discussion in 'Plugin Development' started by BananaBitchs, Sep 22, 2014.

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

    BananaBitchs

    hey i try to take all players from config and set the mob name to vip=on/off

    VIP:
    -BananaBitchs

    Code:java
    1. Zombie z = (Zombie) player.getWorld().spawnEntity(player.getLocation(), EntityType.ZOMBIE);
    2. for(Player p : Bukkit.getOnlinePlayers()){
    3. List<String> vip = getConfig().getStringList("VIP");
    4. z.setCustomName(vip.contains(p) ? "§2Stats: VIP = on" : "§2Stats: VIP = off");
    5. }
    6. z.setCustomNameVisible(true);

     
  2. Offline

    BananaBitchs

  3. BananaBitchs So why use a different account and make a new post? Look at the post I made to the original thread. If you can't work out what I mean, it's time to learn Java.
     
    mine-care likes this.
  4. Offline

    ZeldoKavira

    Locked. Dupe.
     
Thread Status:
Not open for further replies.

Share This Page