diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index 51e9cdc3..fbee24a6 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -194,7 +194,7 @@ namespace TShockAPI [Description("Allows users to register any username with /register")] public bool AllowRegisterAnyUsername; [Description("Allows users to login with any username with /login")] - public bool AllowLoginAnyUsername; + public bool AllowLoginAnyUsername = true; public static ConfigFile Read(string path) { diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 61aaf7bd..5825d4d1 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -369,7 +369,7 @@ namespace TShockAPI var difficulty = args.Data.ReadInt8(); string name = Encoding.ASCII.GetString(args.Data.ReadBytes((int) (args.Data.Length - args.Data.Position - 1))); - if (OnPlayerInfo((int)playerid, (int) hair, (int) male, (int) difficulty, name)) + if (OnPlayerInfo(playerid, hair, male, difficulty, name)) { TShock.Utils.ForceKick(args.Player, "A plugin cancelled the event."); return true;