Skip to content

Commit

Permalink
1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
terminator-97 committed May 20, 2020
1 parent 48ef587 commit 8092ea6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ groups:
```
<br />Using scputils.* grants every permission that starts with prefix scputils
Using '*' grants every possible permission on the server
To verify if you yml file is valid paste it into this website: http://www.yamllint.com/
Using '*' grants every possible permission on the server<br />
To verify if you yml file is valid paste it into this website: http://www.yamllint.com/<br />
Note: you must add every group in permissionsm don't forget default one<br /><br />

Data stored on database is intended only for internal use, sharing it is a violation of SCP:SL EULA and will cause your server delist.<br /><br />
Expand Down
9 changes: 7 additions & 2 deletions SCPUtils/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ public void OnPlayerJoin(PlayerJoinEvent ev)
databasePlayer.Name = ev.Player.GetNickname();
if (databasePlayer.FirstJoin == DateTime.MinValue) databasePlayer.FirstJoin = DateTime.Now;
if (pluginInstance.welcomeEnabled) ev.Player.Broadcast(pluginInstance.welcomeMessageDuration, pluginInstance.welcomeMessage, false);
pluginInstance.Functions.PostLoadPlayer(ev.Player);
if (pluginInstance.autoKickBannedNames && pluginInstance.Functions.CheckNickname(ev.Player.GetNickname()) && !ev.Player.CheckPermission("scputils.bypassnickrestriction")) Timing.CallDelayed(3f, () => ev.Player.KickPlayer("Auto-Kick: " + pluginInstance.autoKickBannedNameMessage, "SCPUtils"));
pluginInstance.Functions.PostLoadPlayer(ev.Player);

Timing.CallDelayed(3f, () =>
{
if (pluginInstance.autoKickBannedNames && pluginInstance.Functions.CheckNickname(ev.Player.GetNickname()) && !ev.Player.CheckPermission("scputils.bypassnickrestriction")) ev.Player.KickPlayer("Auto-Kick: " + pluginInstance.autoKickBannedNameMessage, "SCPUtils");
});

}

public void OnDecontaminate(ref DecontaminationEvent ev)
Expand Down
2 changes: 1 addition & 1 deletion SCPUtils/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace SCPUtils
public class SCPUtils : Plugin
{
public static bool IsStarted { get; set; }
public static string pluginVersion = "1.8.0";
public static string pluginVersion = "1.8.1";
public override string getName { get; } = "SCPUtils";

public EventHandlers EventHandlers { get; private set; }
Expand Down

0 comments on commit 8092ea6

Please sign in to comment.