forked from MagicBane/Server
Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package engine.net.client.handlers;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.mbEnums;
|
||||
import engine.exception.MsgSendException;
|
||||
import engine.gameManager.BuildingManager;
|
||||
import engine.gameManager.ChatManager;
|
||||
@@ -46,14 +46,14 @@ public class TransferAssetMsgHandler extends AbstractClientMsgHandler {
|
||||
if (blueprint == null)
|
||||
return true;
|
||||
|
||||
if (building.getBlueprint().getBuildingGroup() == Enum.BuildingGroup.MINE) {
|
||||
if (building.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.MINE) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "You cannot transfer a mine!");
|
||||
return true;
|
||||
}
|
||||
|
||||
// Players cannot transfer shrines
|
||||
|
||||
if ((building.getBlueprint().getBuildingGroup() == Enum.BuildingGroup.SHRINE)) {
|
||||
if ((building.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.SHRINE)) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Cannot for to transfer shrine!");
|
||||
return true;
|
||||
}
|
||||
@@ -63,22 +63,22 @@ public class TransferAssetMsgHandler extends AbstractClientMsgHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((building.getBlueprint().getBuildingGroup() == Enum.BuildingGroup.BARRACK)) {
|
||||
if ((building.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.BARRACK)) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Cannot for to transfer fortress asset!");
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((building.getBlueprint().getBuildingGroup() == Enum.BuildingGroup.BULWARK)) {
|
||||
if ((building.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.BULWARK)) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Cannot for to transfer siege asset!");
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((building.getBlueprint().getBuildingGroup() == Enum.BuildingGroup.SIEGETENT)) {
|
||||
if ((building.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.SIEGETENT)) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Cannot for to transfer siege asset!");
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((building.getBlueprint().getBuildingGroup() == Enum.BuildingGroup.BANESTONE)) {
|
||||
if ((building.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.BANESTONE)) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Cannot for to transfer banestone!");
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user