From 80b1b4b01e0fa53d8512a4ba69d053fbf7475d52 Mon Sep 17 00:00:00 2001 From: damighty <27978131-real_damighty@users.noreply.gitlab.com> Date: Mon, 18 Aug 2025 14:34:42 +0300 Subject: [PATCH] Removed Grand Exchange privacy --- Server/src/main/core/game/ge/GrandExchange.kt | 10 +--------- Server/src/main/core/game/ge/GrandExchangeOffer.kt | 5 +---- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Server/src/main/core/game/ge/GrandExchange.kt b/Server/src/main/core/game/ge/GrandExchange.kt index 9d5546721..9fba63030 100644 --- a/Server/src/main/core/game/ge/GrandExchange.kt +++ b/Server/src/main/core/game/ge/GrandExchange.kt @@ -101,13 +101,6 @@ class GrandExchange : StartupListener, Commands { PriceIndex.allowItem(id) notify(player, "Allowed ${getItemName(id)} for GE trade.") } - - define("geprivacy", Privilege.STANDARD) {player, _ -> - val current = getAttribute(player, "ge-exclude", false) - val new = !current - notify(player, "Your name is now ${if (new) colorize("%RHIDDEN") else colorize("%RSHOWN")}.") - setAttribute(player, "/save:ge-exclude", new) - } } companion object { @@ -231,8 +224,7 @@ class GrandExchange : StartupListener, Commands { //GrandExchangeRecords.getInstance(player).update(offer) if (offer.sell && !player.isArtificial) { - val username = if (getAttribute(player, "ge-exclude", false)) "?????" else player.username - Repository.sendNews(username + " just offered " + offer.amount + " " + getItemName(offer.itemID) + " on the GE.") + sendNews(player.username + " just offered " + offer.amount + " " + getItemName(offer.itemID) + " on the GE.") } if (ServerConstants.I_AM_A_CHEATER) { diff --git a/Server/src/main/core/game/ge/GrandExchangeOffer.kt b/Server/src/main/core/game/ge/GrandExchangeOffer.kt index 919427567..eee8594dd 100644 --- a/Server/src/main/core/game/ge/GrandExchangeOffer.kt +++ b/Server/src/main/core/game/ge/GrandExchangeOffer.kt @@ -146,10 +146,7 @@ class GrandExchangeOffer() { visualize(player) stmt.close() - val username = if (getAttribute(player ?: return@run, "ge-exclude", false)) "?????" - else player?.username ?: "?????" - - Discord.postNewOffer(sell, itemID, offeredValue, amount, username) + Discord.postNewOffer(sell, itemID, offeredValue, amount, player?.username ?: return@run) } } }