diff --git a/Centuria (SideTerminal).launch b/Centuria (SideTerminal).launch
new file mode 100644
index 00000000..eb1f7caa
--- /dev/null
+++ b/Centuria (SideTerminal).launch
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build.gradle b/build.gradle
index 99b2d499..1c3f0ff2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}
-version = "b1.7"
+version = "b1.7.1"
group = "org.asf.centuria"
sourceCompatibility = '1.17'
diff --git a/changelogs/b1.7.1 b/changelogs/b1.7.1
new file mode 100644
index 00000000..6ae5897e
--- /dev/null
+++ b/changelogs/b1.7.1
@@ -0,0 +1,6 @@
+Fixes in 1.7.1:
+- Fixed the discord bot having issues locating centuria accounts
+- Fixed colors in usernames breaking chat partially
+
+Removed commands:
+- Removed the 'stafflist' command since it breaks the game with large amounts of saved players (sorry)
diff --git a/src/main/java/org/asf/centuria/Centuria.java b/src/main/java/org/asf/centuria/Centuria.java
index fb83b5f4..c9ea01ff 100644
--- a/src/main/java/org/asf/centuria/Centuria.java
+++ b/src/main/java/org/asf/centuria/Centuria.java
@@ -84,7 +84,7 @@
public class Centuria {
// Update
- public static String SERVER_UPDATE_VERSION = "b1.7";
+ public static String SERVER_UPDATE_VERSION = "b1.7.1";
public static String DOWNLOAD_BASE_URL = "https://emuferal.ddns.net";
// Configuration
@@ -141,7 +141,7 @@ public static void main(String[] args)
System.out.println(" Centuria ");
System.out.println(" Fer.al Server Emulator ");
System.out.println(" ");
- System.out.println(" Version b1.7 "); // not doing this
+ System.out.println(" Version b1.7.1 "); // not doing this
// dynamically as
// centering is a
// pain
diff --git a/src/main/java/org/asf/centuria/networking/chatserver/networking/SendMessage.java b/src/main/java/org/asf/centuria/networking/chatserver/networking/SendMessage.java
index cc5a7fa9..c304f06f 100644
--- a/src/main/java/org/asf/centuria/networking/chatserver/networking/SendMessage.java
+++ b/src/main/java/org/asf/centuria/networking/chatserver/networking/SendMessage.java
@@ -587,7 +587,6 @@ private boolean handleCommand(String cmd, ChatClient client) {
commandMessages.add("staffroom");
commandMessages.add("listplayers");
}
- commandMessages.add("stafflist");
if (client.getPlayer().getSaveSpecificInventory().getSaveSettings().giveAllResources
|| client.getPlayer().getSaveSpecificInventory().getSaveSettings().giveAllCurrency
|| client.getPlayer().getSaveSpecificInventory().getSaveSettings().giveAllFurnitureItems
@@ -733,91 +732,6 @@ private boolean handleCommand(String cmd, ChatClient client) {
+ "' is now your active quest! Please log out and log back in to complete the process.",
cmd, client);
- return true;
- } else if (cmdId.equalsIgnoreCase("stafflist")) {
- // Staff list
- HashMap staffAccounts = new HashMap();
- AccountManager.getInstance().runForAllAccounts(t -> {
- String lvl = "member";
- if (t.getSaveSharedInventory().containsItem("permissions")) {
- lvl = t.getSaveSharedInventory().getItem("permissions").getAsJsonObject()
- .get("permissionLevel").getAsString();
- }
- if (GameServer.hasPerm(lvl, "moderator"))
- staffAccounts.put(t, lvl);
- });
-
- // Create message
- String msg = "";
-
- // Go through developers
- boolean foundAny = false;
- for (CenturiaAccount acc : staffAccounts.keySet()) {
- String lvl = staffAccounts.get(acc);
- if (lvl.equals("developer")) {
- // Check
- if (!foundAny) {
- foundAny = true;
- if (msg.isEmpty())
- msg += "Staff list:\n\n";
- else
- msg += "\n\n";
- msg += "List of developers:";
- }
-
- // Add
- msg += "\n - " + acc.getDisplayName() + " ["
- + (acc.getOnlinePlayerInstance() == null ? "OFFLINE" : "ONLINE") + "]";
- }
- }
-
- // Go through admins
- foundAny = false;
- for (CenturiaAccount acc : staffAccounts.keySet()) {
- String lvl = staffAccounts.get(acc);
- if (lvl.equals("admin")) {
- // Check
- if (!foundAny) {
- foundAny = true;
- if (msg.isEmpty())
- msg += "Staff list:\n\n";
- else
- msg += "\n\n";
- msg += "List of administrators:";
- }
-
- // Add
- msg += "\n - " + acc.getDisplayName() + " ["
- + (acc.getOnlinePlayerInstance() == null ? "OFFLINE" : "ONLINE") + "]";
- }
- }
-
- // Go through moderators
- foundAny = false;
- for (CenturiaAccount acc : staffAccounts.keySet()) {
- String lvl = staffAccounts.get(acc);
- if (lvl.equals("moderator")) {
- // Check
- if (!foundAny) {
- foundAny = true;
- if (msg.isEmpty())
- msg += "Staff list:\n\n";
- else
- msg += "\n\n";
- msg += "List of moderators:";
- }
-
- // Add
- msg += "\n - " + acc.getDisplayName() + " ["
- + (acc.getOnlinePlayerInstance() == null ? "OFFLINE" : "ONLINE") + "]";
- }
- }
-
- // Default
- if (msg.isEmpty())
- msg = "There are no staff users.";
- systemMessage(msg, cmd, client);
-
return true;
}
diff --git a/src/main/java/org/asf/centuria/networking/gameserver/GameServer.java b/src/main/java/org/asf/centuria/networking/gameserver/GameServer.java
index 7b064a23..5dd9a05a 100644
--- a/src/main/java/org/asf/centuria/networking/gameserver/GameServer.java
+++ b/src/main/java/org/asf/centuria/networking/gameserver/GameServer.java
@@ -793,7 +793,7 @@ else if (GameServer.hasPerm(permLevel, "moderator"))
prefix += "[mod] ";
// Return
- return prefix + account.getDisplayName();
+ return prefix + account.getDisplayName() + (color.equals("default") ? "" : "");
}
/**
diff --git a/version.info b/version.info
index 8a8239c3..ee4a95bf 100644
--- a/version.info
+++ b/version.info
@@ -1,2 +1,2 @@
-version=b1.7
+version=b1.7.1
channel=beta