mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 09:55:11 +00:00
ActionManager name
This commit is contained in:
1 parent
5cb5e3da85
commit
e6d4e1f3fd
4 files changed
+22
No files matched your search
@@ -1408,6 +1408,9 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
}
|
||||
|
||||
public IActionManager getActionManager() {
|
||||
if (npc.actionManager.getName().isEmpty())
|
||||
npc.actionManager.setName(String.format("%s's Action Manager", npc.getCommandSenderName()));
|
||||
|
||||
return npc.actionManager;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user