forked from MagicBane/Server
create PlayerManager static class
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
package engine.devcmd.cmds;
|
||||
|
||||
import engine.devcmd.AbstractDevCmd;
|
||||
import engine.gameManager.PlayerManager;
|
||||
import engine.gameManager.SessionManager;
|
||||
import engine.gameManager.ZoneManager;
|
||||
import engine.math.Vector3fImmutable;
|
||||
@@ -91,7 +92,7 @@ public class SummonCmd extends AbstractDevCmd {
|
||||
this.setTarget(pcToSummon); //for logging
|
||||
|
||||
Vector3fImmutable loc = pc.getLoc();
|
||||
pcToSummon.teleport(loc);
|
||||
PlayerManager.teleport(pcToSummon, loc);
|
||||
|
||||
this.throwbackInfo(pc, "Player " + pcToSummon.getCombinedName()
|
||||
+ " has been summoned to your location.");
|
||||
|
||||
Reference in New Issue
Block a user