You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: EssentialsPlugin/Essentials.cs
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ public class Essentials : IPlugin, IChatEventHandler, IPlayerEventHandler, ICube
67
67
68
68
#region Properties
69
69
70
-
publicstaticboolStableBuild=true;
70
+
publicstaticboolStableBuild=false;
71
71
72
72
publicstaticstringPluginPath
73
73
{
@@ -1087,7 +1087,6 @@ public float AtmosphericCargoShipSpawnTime {
1087
1087
}
1088
1088
}
1089
1089
1090
-
/*
1091
1090
[Category("Programmable Block Blacklist")]
1092
1091
[Description("Types and members in this list will be unavailable to all programmable blocks. Ask on the KSH forum if you're unsure how to use this!!")]
1093
1092
[Browsable(true)]
@@ -1103,7 +1102,7 @@ public MTObservableCollection<BlacklistItem> BlacklistItems
1103
1102
PluginSettings.Instance.BlacklistItems=value;
1104
1103
}
1105
1104
}
1106
-
*/
1105
+
1107
1106
/*
1108
1107
[Category("Game Modes")]
1109
1108
[Description("Conquest Game Mode - This mode tracks asteroid owners by counting owned blocks near an asteroid to determine the owner. Includes a leaderboard")]
Essentials.Log.Info($"Intercepted block rename request from user {PlayerMap.Instance.GetFastPlayerNameFromSteamId(remoteUserId)}:{remoteUserId} for grid {grid.DisplayNameText??"ID"}:{item.EntityId}");
Essentials.Log.Info($"Kicked user {PlayerMap.Instance.GetFastPlayerNameFromSteamId(remoteUserId)}:{remoteUserId} for renaming blocks on protected grid {grid.DisplayNameText??"ID"}:{item.EntityId}");
Essentials.Log.Info($"Banned user {PlayerMap.Instance.GetFastPlayerNameFromSteamId(remoteUserId)}:{remoteUserId} for renaming blocks on protected grid {grid.DisplayNameText??"ID"}:{item.EntityId}");
Essentials.Log.Info($"Kicked user {PlayerMap.Instance.GetFastPlayerNameFromSteamId(remoteUserId)}:{remoteUserId} for renaming blocks on protected grid {grid.DisplayNameText??"ID"}:{item.EntityId}");
112
+
MyMultiplayer.Static.KickClient(remoteUserId);
113
+
};
114
+
_kickTimer.AutoReset=false;
115
+
_kickTimer.Start();
116
+
break;
117
+
caseProtectedItem.PunishmentEnum.Ban:
118
+
_kickTimer.Elapsed+=(sender,e)=>
119
+
{
120
+
Essentials.Log.Info($"Banned user {PlayerMap.Instance.GetFastPlayerNameFromSteamId(remoteUserId)}:{remoteUserId} for renaming blocks on protected grid {grid.DisplayNameText??"ID"}:{item.EntityId}");
Essentials.Log.Info($"Limited user {PlayerMap.Instance.GetFastPlayerNameFromSteamId(remoteUserId)} to {settings.SpeedLimit}m/s for {settings.SpeedTime} minutes");
0 commit comments