mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 02:59:42 +00:00
ActionLogger !!
This commit is contained in:
1 parent
b704c88f8c
commit
d58b4bb905
9 files changed
+258
-64
No files matched your search
@@ -570,7 +570,7 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
|
||||
public IActionManager getActionManager() {
|
||||
if (actionManager.getName().isEmpty())
|
||||
actionManager.setName("Global Action Manager");
|
||||
actionManager.setName("Global");
|
||||
|
||||
return actionManager;
|
||||
}
|
||||
|
||||
@@ -1409,7 +1409,7 @@ 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()));
|
||||
npc.actionManager.setName(npc.getCommandSenderName());
|
||||
|
||||
return npc.actionManager;
|
||||
}
|
||||
|
||||
@@ -852,7 +852,7 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
|
||||
@Override
|
||||
public IActionManager getActionManager() {
|
||||
if (data.actionManager.getName().isEmpty())
|
||||
data.actionManager.setName(String.format("%s's Action Manager", player.getDisplayName()));
|
||||
data.actionManager.setName(player.getDisplayName());
|
||||
|
||||
return data.actionManager;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user