From 995c9045dfa0868c727341f944fcc562c8334639 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Thu, 16 May 2024 02:57:49 +0400 Subject: [PATCH] 0.12.4 | fix send command to proxies not executing on sender proxy --- .../minecraft/redisbungee/api/ProxyDataManager.java | 3 +++ gradle.properties | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java index 05e608c..c52cf9e 100644 --- a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java +++ b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java @@ -88,6 +88,9 @@ public abstract class ProxyDataManager implements Runnable { public synchronized void sendCommandTo(String proxyToRun, String command) { if (isClosed()) return; + if (proxyToRun.equals("allservers") || proxyToRun.equals(this.proxyId())) { + handlePlatformCommandExecution(command); + } publishPayload(new RunCommandPayload(this.proxyId, proxyToRun, command)); } diff --git a/gradle.properties b/gradle.properties index b46ce8f..c6f62fe 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ group=com.imaginarycode.minecraft -version=0.12.3 \ No newline at end of file +version=0.12.4 \ No newline at end of file