From 5bd873990c103c27394619efada65ec4fc2841c8 Mon Sep 17 00:00:00 2001 From: Waverunner Date: Sun, 3 Jul 2016 18:52:47 -0400 Subject: [PATCH] Fixed debug speak messages being shown to all players --- sku.0/sys.server/compiled/game/script/base_class.java | 3 ++- sku.0/sys.server/compiled/game/script/library/npe.java | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/base_class.java b/sku.0/sys.server/compiled/game/script/base_class.java index 23a74bffb..6a3ef5189 100644 --- a/sku.0/sys.server/compiled/game/script/base_class.java +++ b/sku.0/sys.server/compiled/game/script/base_class.java @@ -1584,7 +1584,8 @@ public class base_class private static native void _debugSpeakMsg(long object, String msg); public static void debugSpeakMsg(obj_id object, String msg) { - _debugSpeakMsg(getLongWithNull(object), msg); + if (isGod(object)) + _debugSpeakMsg(getLongWithNull(object), msg); } /** diff --git a/sku.0/sys.server/compiled/game/script/library/npe.java b/sku.0/sys.server/compiled/game/script/library/npe.java index ad190d94e..c55d5d5c9 100755 --- a/sku.0/sys.server/compiled/game/script/library/npe.java +++ b/sku.0/sys.server/compiled/game/script/library/npe.java @@ -71,10 +71,8 @@ public class npe extends script.base_script location world_loc; String cell; location cell_loc; - LOG("npe", "Transfer perform engaged for %TU to " + station); switch (station) { case DUNGEON_SPACE_STATION + "*": - LOG("npe", "Transferring %TU to npe_space_station"); int instance_index = getBestStationInstanceIndex(player, stations); if (instance_index == -1 || instance_index >= stations.length) { return false; @@ -150,7 +148,6 @@ public class npe extends script.base_script } default: LIVE_LOG("npe", "Player is trying to perform a cluster wide transition, but is going to an unsupported station " + station + " should be " + DUNGEON_SPACE_STATION + "*, " + DUNGEON_ORD_SPACE_STATION + "*"); - LOG("npe", "%TU cannot be sent to " + station); return false; } }