From b7938d945636304720c67e5d4c1be11010eef713 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 11 May 2020 11:18:02 +0200 Subject: [PATCH] Hotfix tp-blocker and automatic check start Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/CheckCommand.java | 2 ++ src/de/steamwar/bungeecore/commands/JoinmeCommand.java | 3 --- src/de/steamwar/bungeecore/commands/TpCommand.java | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/CheckCommand.java b/src/de/steamwar/bungeecore/commands/CheckCommand.java index cfd2a8d..801daa5 100644 --- a/src/de/steamwar/bungeecore/commands/CheckCommand.java +++ b/src/de/steamwar/bungeecore/commands/CheckCommand.java @@ -201,6 +201,8 @@ public class CheckCommand extends BasicCommand { ArenaMode mode = ArenaMode.getByCheckSchemType(schematic.getSchemType().toDB()); SubserverSystem.sendToTestServer(checker, mode, FightCommand.getMap(checker, mode, "Random"), schematic.getSchemID()); }); + + next(); } private void next() { diff --git a/src/de/steamwar/bungeecore/commands/JoinmeCommand.java b/src/de/steamwar/bungeecore/commands/JoinmeCommand.java index bd7fdb1..23a13dd 100644 --- a/src/de/steamwar/bungeecore/commands/JoinmeCommand.java +++ b/src/de/steamwar/bungeecore/commands/JoinmeCommand.java @@ -39,9 +39,6 @@ public class JoinmeCommand extends BasicCommand { }else if(target.equals(player)){ BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cSei eins mit dir selbst!"); return; - }else if(CheckCommand.isChecking(player)){ - BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu prüfst gerade eine Schematic!"); - return; } ServerInfo server = target.getServer().getInfo(); String serverPerm = BungeeCore.serverPermissions.get(server.getName()); diff --git a/src/de/steamwar/bungeecore/commands/TpCommand.java b/src/de/steamwar/bungeecore/commands/TpCommand.java index 5924b28..1815e20 100644 --- a/src/de/steamwar/bungeecore/commands/TpCommand.java +++ b/src/de/steamwar/bungeecore/commands/TpCommand.java @@ -52,6 +52,9 @@ public class TpCommand extends BasicCommand { else BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§8/§etp §8[§7Spieler §8oder §7Team§8]"); return true; + }else if(CheckCommand.isChecking(player)){ + BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu prüfst gerade eine Schematic!"); + return false; } //Get target player server