Despawn precautions.
This commit is contained in:
@@ -495,7 +495,7 @@ public class AdminSpawn implements IAdminCommandHandler
|
||||
SpawnTable.getInstance().addNewSpawn(spawn, permanent);
|
||||
spawn.init();
|
||||
|
||||
if (!permanent)
|
||||
if (!permanent || (respawnTime <= 0))
|
||||
{
|
||||
spawn.stopRespawn();
|
||||
}
|
||||
|
@@ -558,6 +558,10 @@ public class AdminTeleport implements IAdminCommandHandler
|
||||
}
|
||||
SpawnTable.getInstance().addNewSpawn(spawn, true);
|
||||
spawn.init();
|
||||
if (respawnTime <= 0)
|
||||
{
|
||||
spawn.stopRespawn();
|
||||
}
|
||||
|
||||
BuilderUtil.sendSysMessage(activeChar, "Created " + template1.getName() + " on " + target.getObjectId() + ".");
|
||||
}
|
||||
|
Reference in New Issue
Block a user