Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by kvq, Jun 25, 2016.
How to add entity and set color to scoreboard team ?
Idk how to add a entity (because the method asks for a String), but to set the color use Team#setPrefix
Sent from my iPhone using Tapatalk
use Team#setPrefix to set the color and use Team#addOfflinePlayer(yourentity) to add the player
This addEntry method
Nope. Prefix and color its different things . I need colored glowing effect
I actually need to add mob not a player
whoops sended the wrong method its Team#addPlayer
the glowing effect is coming from the spectral arrows, it reads the first prefix colors try to set the prefix to §a and the glow effect should be green
Use team#addEntry, not team#addPlayer. It's deprecated.
@inventivetalent made a wonderful glowapi maybe try that plugin to make mobs glow https://www.spigotmc.org/resources/api-glowapi-1-9-1-10.19422/
addEntry just makes the same but uses player names addplayer reads offlineplayer's name
With #addEntry, you can add all names you want (It's better for nick plugins). It's not good to use offlineplayer.
What when offlineplayer is null?