mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 22:30:52 -04:00
Don't show message for auto jail on join
This commit is contained in:
parent
597fe6c727
commit
4ae67ae85f
@ -20,6 +20,7 @@ using System.IO;
|
|||||||
using MCGalaxy;
|
using MCGalaxy;
|
||||||
using MCGalaxy.Commands;
|
using MCGalaxy.Commands;
|
||||||
using MCGalaxy.Network;
|
using MCGalaxy.Network;
|
||||||
|
using MCGalaxy.Events;
|
||||||
|
|
||||||
namespace MCGalaxy.Core {
|
namespace MCGalaxy.Core {
|
||||||
internal static class ConnectHandler {
|
internal static class ConnectHandler {
|
||||||
@ -97,7 +98,10 @@ namespace MCGalaxy.Core {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
PlayerActions.ChangeMap(p, level);
|
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) {
|
} catch (Exception ex) {
|
||||||
p.Leave("Error occured", "Error occured", true);
|
p.Leave("Error occured", "Error occured", true);
|
||||||
Logger.LogError(ex);
|
Logger.LogError(ex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user