From 89b70f5612680a018ced2683cd3afc9f3cb2bf06 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 31 Dec 2011 16:14:42 -0700 Subject: [PATCH] Turn that stupid thing on by default. --- TShockAPI/ConfigFile.cs | 2 +- TShockAPI/GetDataHandlers.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;