Max Stack and Stat Hack detection permissions implemented.
This commit is contained in:
parent
34efba9c1f
commit
24431017e6
3 changed files with 30 additions and 2 deletions
|
|
@ -801,6 +801,23 @@ namespace TShockAPI
|
|||
player.SendMessage("PvP is forced! Enable PvP else you can't move or do anything!", Color.Red);
|
||||
}
|
||||
|
||||
if (!player.IsLoggedIn)
|
||||
{
|
||||
if (Config.RequireLogin)
|
||||
{
|
||||
player.SendMessage("Please /register or /login to play!", Color.Red);
|
||||
}
|
||||
else if (Config.ServerSideInventory)
|
||||
{
|
||||
player.SendMessage("Server Side Inventory is enabled! Please /register or /login to play!", Color.Red);
|
||||
}
|
||||
|
||||
if (Config.ServerSideInventory)
|
||||
{
|
||||
player.IgnoreActionsForInventory = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (player.Group.HasPermission(Permissions.causeevents) && Config.InfiniteInvasion)
|
||||
{
|
||||
StartInvasion();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue