diff --git a/src/resources/datatables/AdminTag.java b/src/resources/datatables/AdminTag.java new file mode 100644 index 00000000..a583a653 --- /dev/null +++ b/src/resources/datatables/AdminTag.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.datatables; + +public class AdminTag { + public static final byte NONE = 0; // Default + public static final byte CSR = 1; // (CSR) + public static final byte DEVELOPER = 2; // (Developer) + public static final byte WARDEN = 3; // (Warden) + public static final byte QA = 4; // (QA) + +} diff --git a/src/resources/objects/player/PlayerObject.java b/src/resources/objects/player/PlayerObject.java index d2f45288..a10046c4 100644 --- a/src/resources/objects/player/PlayerObject.java +++ b/src/resources/objects/player/PlayerObject.java @@ -33,6 +33,7 @@ import java.util.concurrent.TimeUnit; import org.apache.mina.core.buffer.IoBuffer; import resources.craft.DraftSchematic; +import resources.datatables.AdminTag; import resources.datatables.Citizenship; import resources.datatables.Professions; import resources.gcw.RegionDefender; @@ -130,7 +131,7 @@ public class PlayerObject extends IntangibleObject implements Serializable { @Override public Baseline getBaseline6() { Baseline baseline = super.getBaseline6(); - baseline.put("godLevel", (byte) 0); + baseline.put("adminTag", (byte) AdminTag.NONE); baseline.put("currentRank", 0); baseline.put("rankProgress", (float) 0); baseline.put("highestRebelRank", 0); @@ -435,12 +436,12 @@ public class PlayerObject extends IntangibleObject implements Serializable { notifyClients(getBaseline(3).set("showBackpack", showBackpack), true); } - public byte getGodLevel() { - return (byte) getBaseline(6).get("godLevel"); + public byte getAdminTagValue() { + return (byte) getBaseline(6).get("adminTag"); } - public void setGodLevel(int godLevel) { - notifyClients(getBaseline(6).set("godLevel", (byte) godLevel), true); + public void setAdminTagValue(byte adminTag) { + notifyClients(getBaseline(6).set("adminTag", (byte) adminTag), true); } public int getCurrentRank() {