Commit graph

743 commits

Author SHA1 Message Date
Enerdy
6495496cd4 Fixes /who -i and /userinfo. Also updates the submodule. 2015-07-09 03:23:37 +01:00
White
4df54d89c1 Added 'expertmode' as an alias for toggling expert mode 2015-07-06 11:00:57 +09:30
White
2dd4be0081 Added /expert command to toggled expert mode 2015-07-06 10:51:08 +09:30
Lucas Nicodemus
800ef86b65 Log errors instead of absorbing them 2015-07-05 18:12:05 -06:00
White
3a3e053d43 Fixed SSC. Note that SSC will NOT work with UUID login before join. UUID login before join has been disabled during SSC unless the player has the "tshock.ignore.ssc" permission.
Removed IncrementKills()
2015-07-05 23:13:54 +09:30
Lucas Nicodemus
34fac2c85e Nullcheck banning a player with no known ips 2015-07-04 22:30:28 -06:00
White
af7ee24de4 Fixed /time 2015-07-05 11:32:01 +09:30
Enerdy
597322217d Fix more broken calls. 2015-07-04 16:17:31 +01:00
White
18988ecba1 Fixed a bad index check on /tempgroup 2015-05-31 21:49:54 +09:30
White
3276a8c532 Fixed issue with the changed output 2015-05-28 17:18:10 +09:30
White
6374d8214d Changed some output from the tempgroup command 2015-05-28 17:16:38 +09:30
White
ec178f0c4a Fixed the bug where updating the config WorkFactor would mean that users could not log into their accounts once their passwords were updated to the new WorkFactor 2015-05-28 11:51:29 +09:30
White
e33b6ebebc Now targets NET 4.5, so the solution actually compiles.
Fixed an issue where /user password sets a blank string in the database
Fixed an issue where /password <old> <new> wouldn't update the user's password
2015-05-27 18:29:29 +09:30
White
44ad0c68b8 Change TSPlayer.UserID to TSPlayer.User.ID, as well as refactoring some of UserManager.cs. Solves #916 2015-05-01 11:18:37 +09:30
White
f400d4ff04 Fix a missed line 2015-04-29 17:41:43 +09:30
White
dd7ad78d3f Adds a User object to TSPlayer 2015-04-29 17:24:20 +09:30
Lucas Nicodemus
f5bf9d55ca Add semicolon 2015-04-25 22:55:15 -06:00
Lucas Nicodemus
c1183ec950 Make verbiage more clear on how to use /auth and /auth-verify 2015-04-25 22:54:45 -06:00
Lucas Nicodemus
b34c00107c "Brace" for impact with these Important changes
Apparently the convention is UpperCamel for private functions too.
Fixed a stray brace that caused people to brace for a sudden evisceration of limbs.
Use Int32.Parse instead of Convert.ToInt32, because Microsoft exposes public
APIs they say not to use. 👏
2015-04-13 23:24:37 -06:00
Lucas Nicodemus
493dc0c069 Change braces to use VS style 2015-04-13 14:49:04 -06:00
Lucas Nicodemus
379a689ae2 Change message to be "greater than or equal to" 2015-04-13 14:30:11 -06:00
Lucas Nicodemus
12f893e0cb Require minimum password length of 4, and trim new passwords for whitespace.
Fixes problems reported by @MarioE and @Simon311:
- Users can no longer register with whitespace for a password.
- Users can no longer register with 4 whitespaces for a password.
2015-04-13 14:26:12 -06:00
Lucas Nicodemus
37b5a52fdb Move all TShock usages to use User.VerifyPassword() 2015-04-13 11:16:21 -06:00
Lucas Nicodemus
ed34a87c3f Migrate some manual password creation to BCrypt
Note that several times, user.Password was set to a plain text password,
but then later changed to a hashed password, creating data inconsistency.

This also changes User.Password to private set to prevent further accidents.
2015-04-13 10:44:45 -06:00
Lucas Nicodemus
1b835c0597 Fix more broken docs
Also disables warnings for some specific unused variables
2015-04-13 00:01:37 -06:00
Lucas Nicodemus
e927b55fcb /group add now uses non-deprecated method 2015-04-12 23:39:26 -06:00
Lucas Nicodemus
6ed91f12c8 Remove redundant argument checks 👌 2015-04-12 22:02:19 -06:00
Lucas Nicodemus
8bcb3ef6bc Check all user subcommands for param count
Fixes more problems found in #899 (thanks Marcus)
2015-04-12 21:48:50 -06:00
Lucas Nicodemus
0f1b334d8e Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel 2015-04-12 21:46:46 -06:00
Lucas Nicodemus
16960c7d2c Require 3 parameters to change a password
Fixes #899
2015-04-12 21:46:15 -06:00
Zack Piispanen
904c44a1b6 Fix UseServerName config options, to now work properly. Remove duplicate unused code. Ensure that everywhere we use Main.WorldName, we are sending the config server name. 2015-04-09 22:58:32 -04:00
Lucas Nicodemus
cef253ce20 Remove the ability to ban oneself 2015-04-08 23:46:00 -06:00
White
2f2749c480 Time parameter in temp group command 2015-04-06 12:50:33 +09:30
Zack Piispanen
7fee8d786c Fix logout to set group to the guest group, and temp to null. These seem to have been swapped on accident, and used the default group instead of guest. 2015-04-05 22:42:57 -04:00
Zack Piispanen
015cf61b77 Add logout command and pos command. Closes #872 and Closes #887 2015-03-25 21:17:11 -04:00
Lucas Nicodemus
6ec08de26b Advertise TShock.co more effectively 2015-03-23 10:02:41 -06:00
Lucas Nicodemus
04b1aff65a Fix verbage in temp ban command 2015-03-15 15:22:58 -06:00
Lucas Nicodemus
bca48fb2eb Attempt to fix tempbans not working 2015-03-09 23:34:07 -06:00
Lucas Nicodemus
de2a07db6b Advertise https websites (this is 2015) 2015-03-09 07:56:27 -06:00
Lucas Nicodemus
32218f9be0 PlayerCommandEventArgs passes the command prefix
Fix tab space conflict in PlayerHooks.cs
2015-03-08 16:00:43 -06:00
Lucas Nicodemus
9221c14ca6 Commands.cs now has less e for exceptions 2015-02-28 19:54:39 -07:00
Lucas Nicodemus
db5e88acf7 /stats is now /serverinfo 2015-02-28 17:24:33 -07:00
Enerdy
a632e7f510 Added specifier to tshock commands 2015-02-28 14:46:44 +00:00
Enerdy
825de3fe73 Update methods using deprecated SendData code and Logs 2015-02-28 13:08:32 +00:00
Lucas Nicodemus
c5625aa896 Merge pull request #870 from NyxStudios/whitexz-general-devel
Adds SQL logging from WhiteX's fork; closes #869
2015-02-28 01:21:54 -07:00
Lucas Nicodemus
b133d6c470 ProtectSpawn also uses more logical logic statement 2015-02-28 00:56:53 -07:00
Lucas Nicodemus
2736ef8af2 ToggleAntiBuild no longer has weird logic statement 2015-02-28 00:54:55 -07:00
Lucas Nicodemus
b02c99254c Add parenthesis because you need that 2015-02-28 00:20:58 -07:00
Lucas Nicodemus
d6c267c152 Remove player & slot count from version command 2015-02-28 00:16:56 -07:00
Lucas Nicodemus
97d2894773 The mute reason is back to being a mute reason 2015-02-25 15:38:46 -07:00