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
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
77ed57a4bd
PRIMARY KEY, thanks SQLite for being a FUCKING DICKBAG
2011-07-13 02:47:32 -06:00
Lucas Nicodemus
560a9226b7
Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
2011-07-13 02:43:09 -06:00
Lucas Nicodemus
20187bb872
Fixed nasty bug if the save folder didn't exist.
2011-07-13 02:42:06 -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
aab9770e90
Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
2011-07-13 02:39:55 -06:00
Lucas Nicodemus
9a28810ce2
Resetting back to pre fuckup.
2011-07-13 02:39:32 -06:00
Lucas Nicodemus
4fe2e5ee34
Fixed nasty bug if the save folder didn't exist.
2011-07-13 02:24:46 -06:00
Lucas Nicodemus
e81982569c
We want PRIMARY keys, not UNIQUE keys, because UNIQUE without PRIMARY means absolute BULLSHIT.
2011-07-13 02:13:53 -06:00
Lucas Nicodemus
1d91e6138e
Debug notice on DeInit.
2011-07-13 01:02:24 -06:00
Lucas Nicodemus
ec07c38b86
PID file is now deleted on server shutdown.
...
Console warning if it was shutdown improperly.
2011-07-13 00:56:00 -06:00
Lucas Nicodemus
b242bfde17
Dear Path.combine: Fuck you
2011-07-13 00:52:49 -06:00
Lucas Nicodemus
9ffa0046e8
Server creates Process ID File (./tshock/tshock.pid) for GSPs
2011-07-13 00:47:52 -06:00
Lucas Nicodemus
cbc6bd2751
Fixed a lot of database stuff.
2011-07-12 21:30:55 -06:00
Twitchy
9596950a54
We don't want my copy on build code
2011-07-12 22:48:21 +12:00
Twitchy
eda5cfc10d
Fixes SQL not working correctly. and saving
2011-07-12 22:47:36 +12: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
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
c090d9a9f6
Fix save world issue
2011-07-12 20:38:03 +12: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
db2ba9b067
Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
2011-07-12 01:37:46 -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
Twitchy
b74455433e
Changed Exception catch types. Removed trying to insert to ID field
2011-07-12 19:36:17 +12: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
525cc0241d
Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
2011-07-12 00:04:42 -06:00
Lucas Nicodemus
8f5d33e49b
Added /auth-verify to turn off the auth system.
2011-07-12 00:04:15 -06:00
Twitchy
29aef28c1e
manage users is now admin by default
2011-07-12 17:37:09 +12:00