mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-23 15:51:30 +01:00
added more messaging flags
This commit is contained in:
parent
39333fda4e
commit
bd8d5e5af5
@ -4,6 +4,7 @@ import java.util.logging.Level;
|
||||
|
||||
import net.citizensnpcs.Settings.Setting;
|
||||
import net.citizensnpcs.api.npc.NPC;
|
||||
import net.citizensnpcs.api.npc.trait.trait.Owner;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
@ -39,6 +40,8 @@ public class Messaging {
|
||||
String send = msg.toString();
|
||||
|
||||
send = send.replace("<player>", player.getName());
|
||||
send = send.replace("<world>", player.getWorld().getName());
|
||||
send = send.replace("<owner>", npc.getTrait(Owner.class).getOwner());
|
||||
send = send.replace("<npc>", npc.getName());
|
||||
send = send.replace("<id>", Integer.toString(npc.getId()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user