Fix #1063
This commit is contained in:
parent
9af4980b60
commit
95ef7c9d85
2 changed files with 11 additions and 0 deletions
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
This is the rolling changelog for TShock for Terraria. Use past tense when adding new entries; sign your name off when you add or change something. This should primarily be things like user changes, not necessarily codebase changes unless it's really relevant or large.
|
This is the rolling changelog for TShock for Terraria. Use past tense when adding new entries; sign your name off when you add or change something. This should primarily be things like user changes, not necessarily codebase changes unless it's really relevant or large.
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
* Auth system kicks players if system is disabled. (@nicatronTg)
|
||||||
|
* Fixed /login permitting multiple logins without a logout in between. (@nicatronTg)
|
||||||
|
|
||||||
## TShock 4.3.6 (Pre-Release)
|
## TShock 4.3.6 (Pre-Release)
|
||||||
|
|
||||||
* API: NPCs shoot the right way (@WhiteXZ)
|
* API: NPCs shoot the right way (@WhiteXZ)
|
||||||
|
|
|
||||||
|
|
@ -736,6 +736,12 @@ namespace TShockAPI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.Player.IsLoggedIn)
|
||||||
|
{
|
||||||
|
args.Player.SendErrorMessage("You are already logged in, and cannot login again.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
User user = TShock.Users.GetUserByName(args.Player.Name);
|
User user = TShock.Users.GetUserByName(args.Player.Name);
|
||||||
string password = "";
|
string password = "";
|
||||||
bool usingUUID = false;
|
bool usingUUID = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue