Commit graph

758 commits

Author SHA1 Message Date
Zack Piispanen
e7b7f44e7a users now convert to new sql database 2011-07-18 21:48:59 -04:00
Zack Piispanen
f08b94c8f8 Bans and Groups now convert from txt to db items.
Just put bans.txt and groups.txt in the tShock folder( where they already exist i believe ) and run the server.  It moves the files to tShock/old_configs in case you want to keep them.
2011-07-17 15:17:28 -04:00
Zack Piispanen
77998470bc Added worldID to where clause 2011-07-17 13:25:52 -04:00
Zack Piispanen
8e9bbcc5f9 Bug fix for region allow, updated the whole database, was missing a where clause 2011-07-17 13:18:04 -04:00
Lucas Nicodemus
3c4525749d Increased IP field size 2011-07-16 21:59:48 -06:00
Lucas Nicodemus
e684ecd289 Added vip group 2011-07-16 21:58:48 -06:00
Lucas Nicodemus
4ca7a9aeec Default permissions are fixed 2011-07-16 18:49:26 -06:00
Lucas Nicodemus
820b3c5c1f Removed debug message 2011-07-16 18:34:45 -06:00
Lucas Nicodemus
cb5a50f540 /region allow now works (and adds users) 2011-07-16 18:21:39 -06:00
Lucas Nicodemus
add7c74bec Region allow now refreshes the region cache, but no longer operates properly. 2011-07-16 18:16:52 -06:00
Lucas Nicodemus
75e3e58c80 Regions WORK! 2011-07-16 18:01:18 -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
0e9624ace3 Copied and pasted old region checking code. 2011-07-16 02:01:48 -06:00
Lucas Nicodemus
b98c84fa5b Attempting to fix region detection
Attempting to fix /protect
2011-07-15 22:56:51 -06:00
Lucas Nicodemus
9cdbcdb92c Protected actually sets values 2011-07-15 21:58:38 -06:00
Lucas Nicodemus
2212c81442 Passwords are now hashed properly 2011-07-15 21:50:18 -06:00
Lucas Nicodemus
741841028e Attempting to fix region protection 2011-07-15 21:26:28 -06:00
Lucas Nicodemus
485bc61fac Code cleanup thanks to High6 2011-07-14 18:21:43 -06:00
Lucas Nicodemus
d45c7a5753 Fixed /region protect 2011-07-14 18:19:33 -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
26e7b669cb Fixed returning false on any non-region. 2011-07-14 17:24:57 -06:00
Lucas Nicodemus
fcbaa5c056 Dunno 2011-07-14 17:21:24 -06:00
Lucas Nicodemus
f271d10c7b Path combine fail fixed for the auth code system. 2011-07-14 13:55:39 -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
Deathmax
e6d612ea4b Don't kick a player if they destroy a chest that is client side only due to hitting the max number of chests. 2011-07-14 22:37:29 +08:00
Deathmax
9b2409c9b5 Use CanBuild instead of InProtectedRegionAndCantBuild 2011-07-14 22:31:48 +08:00
Lucas Nicodemus
b9fb8cee55 Reload is actually called now.
Most stuff in regions is starting to come together.
2011-07-14 03:50:00 -06:00
Lucas Nicodemus
f4b4d041d9 Adding more misc functions for future use. 2011-07-14 03:31:25 -06:00
Lucas Nicodemus
751210d6ce Added Region.InProtectedArea
Added Region.HasPermissionToBuildInRegion
2011-07-14 03:16:31 -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
a9eee56be4 Test (again) 2011-07-14 02:05:33 -06:00
Lucas Nicodemus
d24e5184a3 ci.tshock.co test 2011-07-14 02:00:30 -06:00
Lucas Nicodemus
2bc61c1365 Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2011-07-14 01:48:17 -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
Deathmax
37d30cd49e Check tile thresholds and banned items every second instead of every update.
Increase tile threshold to accommodate for ^.
2011-07-14 15:46:40 +08:00
Lucas Nicodemus
c4efc96303 (Taking a break. If anyone wants to continue shit feel free. Just note that RegionStore.cs is completely useless because it turns out a Region class already existed. Oh and there's no constructor for it that contains allowed user IDs either, which is also dumb. 2011-07-13 22:58:59 -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
bddca1bc73 Actually added the file this time. 2011-07-13 22:38:55 -06:00
Lucas Nicodemus
1b858be7a9 Added Region class with a few overloads and IsProtectedArea 2011-07-13 22:38:28 -06:00
Lucas Nicodemus
18ee7eccab -port works 2011-07-13 17:25:20 -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