No longer spam users to login.
This commit is contained in:
parent
14e55301e1
commit
92d6e7b9fb
2 changed files with 6 additions and 1 deletions
|
|
@ -490,7 +490,11 @@ namespace TShockAPI.DB
|
|||
{
|
||||
if (!ply.IsLoggedIn)
|
||||
{
|
||||
ply.SendMessage("You must be logged in to take advantage of protected regions.", Color.Red);
|
||||
if (!ply.HasBeenNaggedAboutLoggingIn)
|
||||
{
|
||||
ply.SendMessage("You must be logged in to take advantage of protected regions.", Color.Red);
|
||||
ply.HasBeenNaggedAboutLoggingIn = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (DisableBuild == 0)
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ namespace TShockAPI
|
|||
public bool HasBeenSpammedWithBuildMessage = false;
|
||||
public bool IsLoggedIn = false;
|
||||
public int UserID = -1;
|
||||
public bool HasBeenNaggedAboutLoggingIn = false;
|
||||
Player FakePlayer = null;
|
||||
|
||||
public bool RealPlayer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue