Zack Piispanen
a4a2cf0ce0
Itembans now convert to db stuff
2011-07-19 18:16:57 -04:00
Zack
c780993152
editted to save the db BEFORE refreshing the regions.
2011-07-19 09:36:36 -07:00
Zack
557d552956
Fixed for Bug 253, apparently someone forgot to clear the paramaeters before calling the next query.
2011-07-19 09:31:46 -07:00
Lucas Nicodemus
15eb769580
Import users into users, not bans (Thanks Twitchy)
2011-07-19 00:34:46 -06:00
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
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
Lucas Nicodemus
acc5784d16
Fixed region detection
2011-07-16 02:34:16 -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
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
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
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
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
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
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
77ed57a4bd
PRIMARY KEY, thanks SQLite for being a FUCKING DICKBAG
2011-07-13 02:47:32 -06:00
Lucas Nicodemus
2608ca0779
We want PRIMARY keys, not UNIQUE keys, because UNIQUE without PRIMARY means absolute BULLSHIT.
2011-07-13 02:42:06 -06:00
Lucas Nicodemus
cbc6bd2751
Fixed a lot of database stuff.
2011-07-12 21:30:55 -06:00
Twitchy
eda5cfc10d
Fixes SQL not working correctly. and saving
2011-07-12 22:47:36 +12:00
Twitchy
30d0d48386
Added reader closing (if it will help) and returns default group rather than "null"
2011-07-12 21:16:59 +12:00
Twitchy
b74455433e
Changed Exception catch types. Removed trying to insert to ID field
2011-07-12 19:36:17 +12:00
Lucas Nicodemus
101aaa4856
Added UserManager.RemoveUser(string inputUser, bool ip)
2011-07-12 00:44:39 -06:00
Twitchy
29aef28c1e
manage users is now admin by default
2011-07-12 17:37:09 +12:00
Twitchy
ac8b293232
Removes Auto increment ID from table
2011-07-12 17:26:07 +12:00
Twitchy
3e17e42a37
Adds MySql Support
2011-07-12 13:31:36 +12:00
Twitchy
0997b5bd5d
Adds group manager, editable only by DB program.
2011-07-11 20:33:03 +12:00
Twitchy
b5ca97ae35
Adds a whole bunch of SQL logging
2011-07-11 20:31:25 +12:00
Twitchy
6d1bea3577
Fixed SQL inserting a new superadmin on each load.
2011-07-10 13:35:49 +12:00
Twitchy
bbcf84ed4a
Adds Itembans into SQL, in game commands not added yet, but can use a DB editor to add bans
2011-07-10 13:08:19 +12:00
Twitchy
243b0297b9
Commands /region list and /warp list now work
...
Regions now use User ID's for /region allow (can be IP or Username/password based ID)
Minor Tweaks
A reset of your database is recommended
2011-07-09 20:41:31 +12:00
Twitchy
cb7033d89c
Adds UserManager to sql
...
Changes the way Warps and Regions are stored
A few other minor tweaks
2011-07-09 16:33:07 +12:00