mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Renamed godLevel to adminTag
When set to 1, 2, 3 or 4 an additional title is granted to the player.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2013 <Project SWG>
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* 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)
|
||||
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user