From e034764fc4aff83ee473e69492bba6f8a84334ea Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 23 Dec 2019 22:43:56 +0100 Subject: [PATCH] Fixing failing target --- src/de/steamwar/bungeecore/commands/TpCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/steamwar/bungeecore/commands/TpCommand.java b/src/de/steamwar/bungeecore/commands/TpCommand.java index 3aa7335..5924b28 100644 --- a/src/de/steamwar/bungeecore/commands/TpCommand.java +++ b/src/de/steamwar/bungeecore/commands/TpCommand.java @@ -84,6 +84,10 @@ public class TpCommand extends BasicCommand { if(target == null) return null; + Subserver subserver = Subserver.getSubserver(target); + if(subserver != null) + return subserver.getServer(); + return target.getServer().getInfo(); } -- 2.39.5