forked from MagicBane/Server
create PlayerManager static class
This commit is contained in:
@@ -12,10 +12,7 @@ package engine.net.client.msg;
|
||||
import engine.Enum.DispatchChannel;
|
||||
import engine.Enum.GuildHistoryType;
|
||||
import engine.exception.MsgSendException;
|
||||
import engine.gameManager.BuildingManager;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.GuildManager;
|
||||
import engine.gameManager.SessionManager;
|
||||
import engine.gameManager.*;
|
||||
import engine.math.Vector3fImmutable;
|
||||
import engine.net.*;
|
||||
import engine.net.client.ClientConnection;
|
||||
@@ -437,7 +434,7 @@ public class VendorDialogMsg extends ClientNetMsg {
|
||||
if (level >= minLevel && level <= maxLevel) {
|
||||
if (useSquare)
|
||||
loc = getSquare(loc);
|
||||
pc.teleport(loc);
|
||||
PlayerManager.teleport(pc, loc);
|
||||
pc.setSafeMode();
|
||||
// PowersManager.applyPower(pc, pc, new Vector3f(0f,
|
||||
// 0f, 0f), -1661758934, 40, false);
|
||||
@@ -463,7 +460,7 @@ public class VendorDialogMsg extends ClientNetMsg {
|
||||
// teleport player
|
||||
if (useSquare)
|
||||
loc = getSquare(loc);
|
||||
pc.teleport(loc);
|
||||
PlayerManager.teleport(pc, loc);
|
||||
pc.setSafeMode();
|
||||
// PowersManager.applyPower(pc, pc, new
|
||||
// Vector3f(0f, 0f, 0f), -1661758934, 40, false);
|
||||
@@ -471,10 +468,10 @@ public class VendorDialogMsg extends ClientNetMsg {
|
||||
// join guild
|
||||
GuildManager.joinGuild(pc, guild, GuildHistoryType.JOIN);
|
||||
|
||||
pc.resetGuildStatuses();
|
||||
PlayerManager.resetGuildStatuses(pc);
|
||||
|
||||
if (guild.isNPCGuild())
|
||||
pc.setFullMember(true);
|
||||
PlayerManager.setFullMember(pc, true);
|
||||
|
||||
if (useSquare)
|
||||
loc = loc.add(30, 0, 0);
|
||||
@@ -483,7 +480,7 @@ public class VendorDialogMsg extends ClientNetMsg {
|
||||
// guild not found, just teleport
|
||||
if (useSquare)
|
||||
loc = getSquare(loc);
|
||||
pc.teleport(loc);
|
||||
PlayerManager.teleport(pc, loc);
|
||||
pc.setSafeMode();
|
||||
// PowersManager.applyPower(pc, pc, new
|
||||
// Vector3f(0f, 0f, 0f), -1661758934, 50, false);
|
||||
|
||||
Reference in New Issue
Block a user