Commit graph

278 commits

Author SHA1 Message Date
Zack Piispanen
ffd0471326 initial unit testing work and a few tweaks to stuff relating to items 2011-07-23 15:21:56 -04:00
Zack Piispanen
727ae2322b Added new commands to allow users in game to create, delete, modify groups.
Added new methods to create, delete, modify groups.

Uhhh....dunno why RegionManager.cs was conflicted.

Added permission for accessing group commands
2011-07-22 23:14:56 -04:00
Lucas Nicodemus
e1cd87f487 Fixed regions
Added /convert
2011-07-22 17:38:51 -06:00
Zack
634b3b8a8c Using region list caused messages to talk about warps, copy pasta fail. 2011-07-21 19:23:34 -07:00
Lucas Nicodemus
a9b558e75d Added some precautions against duplicates. 2011-07-21 15:27:15 -06:00
Lucas Nicodemus
b98614946d Changed every instance of Main.worldID.ToString() to Main.worldName. You broke backwards compatibility with all other warp and region files by doing that. 2011-07-21 15:03:15 -06:00
Lucas Nicodemus
529f51d95e Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2011-07-21 12:31:58 -06:00
Lucas Nicodemus
cd018fed8d Regions are now UserID based. 2011-07-21 12:25:57 -06:00
Graham Cantin
9b1c5fd230 Readded all my changes, I think. 2011-07-21 04:14:42 -07:00
Graham Cantin
395225ec28 Failed message in red for fail, not green for awesome 2011-07-21 04:08:21 -07:00
Graham Cantin
fab469c35f Made sure /register checks for an existing user account before adding the user. 2011-07-21 04:07:44 -07:00
Graham Cantin
98c139584e Whoops, forgot to update the help string... 2011-07-21 04:07:42 -07:00
Graham Cantin
fa57f79929 * Added /password to change a user's password. Verifies they are logged in first, and checks the old password against the old hash in the DB. 2011-07-21 04:07:39 -07:00
Graham Cantin
d89164590d * Added /register <username> <password> Should get default group from the DB; just "default" for now. 2011-07-21 04:07:36 -07:00
Lucas Nicodemus
b9842a19c8 Fixed warps (and by that I mean nothing was broken anyway). 2011-07-21 01:19:55 -06:00
Lucas Nicodemus
cb5a50f540 /region allow now works (and adds users) 2011-07-16 18:21:39 -06:00
Zack Piispanen
7cef36cfd0 Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2011-07-16 16:16:04 -04:00
Zack Piispanen
7e4c851297 Added in support for giving certain amounts of items.
/item <id/name> [amount]
It tries to parse it as an int, if it fails( or there is no amount specified ) it defaults to item.maxStack.

If it succeeds it sets the amount to whichever is larger, the amount or the items max stack.

Closes Issue #202
2011-07-16 16:11:46 -04:00
Lucas Nicodemus
d6aa8da433 /time day is a little more day than it was before 2011-07-16 13:54:29 -06:00
Lucas Nicodemus
141e2eec64 Changed debug command back to /debugreg 2011-07-16 02:34:58 -06:00
Lucas Nicodemus
acc5784d16 Fixed region detection 2011-07-16 02:34:16 -06:00
Lucas Nicodemus
a8d8dbf31d Debug stuff 2011-07-16 02:12:51 -06:00
Lucas Nicodemus
b98c84fa5b Attempting to fix region detection
Attempting to fix /protect
2011-07-15 22:56:51 -06:00
Lucas Nicodemus
c701164abc Fixed /region allow
Closes #239
Removed support for adding IP based users to regions
2011-07-14 18:16:35 -06:00
Lucas Nicodemus
e87c497cbd Region up to date 2011-07-14 17:57:48 -06:00
Lucas Nicodemus
fcbaa5c056 Dunno 2011-07-14 17:21:24 -06:00
Lucas Nicodemus
2469e293ab Actually add the user when /user add is run 2011-07-14 13:52:44 -06:00
Lucas Nicodemus
080ba6ca2b Blank passwords no longer result in "heightheightheightheight"
Try/Catch around login function
2011-07-14 13:50:00 -06:00
Lucas Nicodemus
9e012b3327 Fixed /tphere saying the wrong text
More work on region fuck
2011-07-14 03:00:19 -06:00
Lucas Nicodemus
5b79212b8f Tweaked around with the region code a lot.
Databases will need to be rebuilt past this build.
2011-07-14 01:47:57 -06:00
Lucas Nicodemus
eba1714644 This code is like opening up a cereal box and finding more and more useless bits of plastic each time you open the same box. 2011-07-13 22:42:26 -06:00
Lucas Nicodemus
fa8bf82e35 Changed File.Delete to use Path.Combine 2011-07-13 12:41:48 -06:00
high
6468ed7562 This is not C, stop doing return codes especially without doing an enum.
Databases can store other things besides strings.
If you do not like changes from this commit feel free to revert it. Just giving some last insight on this branch.
2011-07-13 14:14:39 -04:00
Deathmax
35be16e6a7 Kamilion's patch.
Fix UserManager.
Add some logging and console messages.
2011-07-13 20:54:54 +08:00
Lucas Nicodemus
a691202e03 Attempting to fix adding an IP admin 2011-07-13 04:25:18 -06:00
Lucas Nicodemus
d021c9077f Sanity checking against IP address based admins. 2011-07-13 03:52:48 -06:00
Lucas Nicodemus
2dbed5f9d2 We now add IP addresses to the IP column, not the username column 2011-07-13 03:38:56 -06:00
Lucas Nicodemus
373d9118ac Group isn't required for /user del 2011-07-13 03:21:40 -06:00
Lucas Nicodemus
bab6d6cd2e /auth-verify now removes authcode.txt
Some strings have been shortened to comply with Terraria's inability to move text that is too long to the second line.
2011-07-13 03:03:02 -06:00
Lucas Nicodemus
cbc6bd2751 Fixed a lot of database stuff. 2011-07-12 21:30:55 -06:00
Deathmax
6def12b517 Changed the format for logging logins. 2011-07-12 18:44:49 +08:00
Deathmax
fa18c5ea54 Successful logins are now logged. 2011-07-12 18:43:17 +08:00
Lucas Nicodemus
b0a678710c Added some outputs in the event that auth eats your command. 2011-07-12 01:41:52 -06:00
Lucas Nicodemus
7bc49e29e0 /auth now grants superadmin internally and adds the user to the db 2011-07-12 01:37:29 -06:00
Lucas Nicodemus
236cf6b42b Added /user del - Which removes a user/ip from the database. (Or, if I did the SQL wrong, will remove every row from the database) 2011-07-12 00:54:03 -06:00
Lucas Nicodemus
101aaa4856 Added UserManager.RemoveUser(string inputUser, bool ip) 2011-07-12 00:44:39 -06:00
Lucas Nicodemus
b629c6e48f Added authcode.txt, which will contain the auth code until the auth system is disabled. GSPs may provide this with the thought that users will be able to become superadmin a lot easier than before.
Fixed numerous cases where paths were incorrect, thanks to what ever dev has a Paths.Combine fetish, and doesn't want to use the obsolete function.
2011-07-12 00:22:10 -06:00
Lucas Nicodemus
8f5d33e49b Added /auth-verify to turn off the auth system. 2011-07-12 00:04:15 -06:00
Lucas Nicodemus
ae7763676e Moved credits 2011-07-11 23:22:50 -06:00
Twitchy
9cefc69075 Merge branch 'sql' of github.com:TShock/TShock into general-devel-sql (test) 2011-07-12 15:49:24 +12:00