[Bug] API setNametag does not save prefixes and suffixes.
momoservertw opened this issue ยท 2 comments
Bug Report
Type /ver NametagEdit and post the output.
4.4.6 (latest release)
4.4.8 (latest dev)
What version of Bukkit/Spigot/PaperSpigot are you using? Type /ver
Paper version git-Paper-77 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
What plugins are you using? Type /plugins
Plugins (16): CMI, ItemJoin, LuckPerms, Multiverse-Core, MyCommand, NametagEdit*, PlaceholderAPI, PlayerdataPlus, PlayerPoints*, ProtocolLib, RegionPlus, Residence, Vault, WorldBorder, WorldEdit, WorldGuard
Please explain your issue. How do you trigger it?
The API doesn't save prefix and suffix.
It can successfully change the prefix and suffix, but after restarting the server, it will show the old prefix and suffix.
NametagEdit.getApi().setNametag(player, nteFormatPrefix, nteFormatSuffix);
NametagEdit.getApi().setPrefix(player, nteFormatPrefix);
API version: 4.1.0, 4.4.0
Are there any errors in the console? Please use: https://pastebin.com
No errors.
/**
* Sets the nametag for a player.
* <p>
* Note: Only affects memory, does NOT
* add/remove from storage.
*
* @param player the player whose nametag to change
* @param prefix the prefix to change to
* @param suffix the suffix to change to
*/
void setNametag(Player player, String prefix, String suffix);
/**
* Sets the prefix for a player. The previous
* suffix is kept if it exists.
* <p>
* Note: Only affects memory, does NOT
* add/remove from storage.
*
* @param player the player whose nametag to change
* @param prefix the prefix to change to
*/
void setPrefix(Player player, String prefix);