From 4ae67ae85f86470b7f90e717054383d5289df4b9 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 15 Jun 2017 19:50:36 +1000 Subject: [PATCH] Don't show message for auto jail on join --- MCGalaxy/CorePlugin/ConnectHandler.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MCGalaxy/CorePlugin/ConnectHandler.cs b/MCGalaxy/CorePlugin/ConnectHandler.cs index 1ca6f8523..85a4a998c 100644 --- a/MCGalaxy/CorePlugin/ConnectHandler.cs +++ b/MCGalaxy/CorePlugin/ConnectHandler.cs @@ -20,6 +20,7 @@ using System.IO; using MCGalaxy; using MCGalaxy.Commands; using MCGalaxy.Network; +using MCGalaxy.Events; namespace MCGalaxy.Core { internal static class ConnectHandler { @@ -97,7 +98,10 @@ namespace MCGalaxy.Core { try { PlayerActions.ChangeMap(p, level); - Command.all.Find("jail").Use(null, p.name); + ModAction action = new ModAction(p.name, null, ModActionType.Jailed, "Auto jail"); + action.Announce = false; + OnModActionEvent.Call(action); + Chat.MessageGlobal(p, p.DisplayName + " &cis still jailed from previously.", false); } catch (Exception ex) { p.Leave("Error occured", "Error occured", true); Logger.LogError(ex);