Commit graph

130 commits

Author SHA1 Message Date
Twitchy
e581f69249 Few other fixes 2011-08-06 13:49:47 +12:00
high
d02d48287e Fixed AUTO_INCREMENT being wrong and UNIQUE should be on the inside of the quotes. 2011-08-05 01:31:19 -04:00
Twitchy
2c4625e426 Adds SQL Queries for Update, Read and Insert 2011-08-04 21:53:02 +12:00
high
a0d2fe1427 NUMERIC should have been INTEGER 2011-08-04 00:26:36 -04:00
high
1a801b268c All managers now use querybuilder for creating tables to make for easy changes. 2011-08-03 19:55:23 -04:00
high
423a33325a Finished:
-sqlite altering
-implemented mysql
Todo:
-Merge SqlTableCreator into the querybuilders or make it static
-Make all the managers use the querybuilder for making tables. (See GroupManager.cs for an example)
-Implement more datatypes (see TypesAsStrings in IQueryBuilder.cs)
2011-08-03 18:37:42 -04:00
high
3e045d51bf Added Random.NextString
Rename IQueryCreator to IQueryBuilder
2011-08-03 04:22:20 -04:00
high
9d4e2d6d9b Refactor changes didn't save 2011-08-03 02:55:12 -04:00
high
4bab43466c Adding classes to make querying between sqlite/mysql easier 2011-08-03 02:52:44 -04:00
high
df196ae632 Moved extensions 2011-08-02 19:29:15 -04:00
high
c505889f79 Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2011-08-02 17:32:20 -04:00
high
cc907b9e09 Use the DBExt query functions 2011-08-02 17:24:30 -04:00
Twitchy
de0f7e2c2b Merge branch 'general-devel' of github.com:TShock/TShock 2011-08-02 23:21:16 +12:00
Twitchy
dd33927e76 Added private/public warps. Todo before release - make warps with spaces hide. (Too tired. Cannot finish) 2011-08-02 23:18:53 +12:00
Lycaonj
b103725422 Added sanity checks when loading UserIds from the Regions table. Fixes small gotcha when using the .NET Split() function. 2011-08-01 19:11:29 -05:00
high
6f26cc0dc5 Fixed the query helper functions 2011-08-01 19:33:15 -04:00
Twitchy
f95fdf5085 Fix group inheritance 2011-08-01 16:46:42 +12:00
Deathmax
75f3d3c046 out of range check when reading chat colors. 2011-07-31 22:56:44 +08:00
Deathmax
279b8ef9e2 Load chat colours into groups. 2011-07-31 22:09:29 +08:00
Twitchy
5ff8680ccb Adds chat colors to player groups. 2011-07-31 23:36:21 +12:00
Twitchy
629eb01191 Merge branch 'general-devel' of github.com:TShock/TShock 2011-07-31 16:13:14 +12:00
Twitchy
0438d0ffce Fix OrderBy removal 2011-07-31 16:11:58 +12:00
Lucas Nicodemus
98711bd05c Merge pull request #275 from Lycaonj/general-devel
General devel
2011-07-30 20:41:37 -07:00
Lycaonj
19df6bb009 Fixed incorrect parameter name in the Unban method (from @ip to @0) which was causing ban removals to fail. 2011-07-30 22:35:36 -05:00
Twitchy
b09b0ba9f2 Fixes RememberPosManager and player sprites showing on server, when they are not there 2011-07-31 15:31:57 +12:00
Twitchy
917865cab5 OrderBy... Bye bye. DBTool fixes 2011-07-29 12:21:28 +12:00
Twitchy
8f28bd2b7d Adds SetTable to DBTools, makes Tools and FileTools public, for TShock mods 2011-07-28 23:22:35 +12:00
Twitchy
383715715c Adds ReadTable function to DBTools 2011-07-28 13:08:49 +12:00
Twitchy
2afcb35da1 Fixes DBTool.Insert :) 2011-07-28 11:21:34 +12:00
Twitchy
bc2bfd5485 Adds DBTools.cs (Create and Insert Table) 2011-07-27 18:22:12 +12:00
Lucas Nicodemus
37146adb4c Resharper code cleanup, including:
- Optimized using statements
 - Removal of redundant code
2011-07-26 23:37:06 -06:00
Graham Cantin
3dd7af1a30 * Finally fixed /user group and /user password.
* Had to fix UserManager exceptions to UserNotExistException instead of UserExistsException.
* Added /user help as well. Commented out the old short circuit for now.
2011-07-24 20:28:07 -07:00
high
e8a5e7fb58 Now uses Query/QueryReader 2011-07-24 12:33:00 -04:00
high
d39d9e5127 Reapplied my region changes that were lost from a bad conflict merge 2011-07-24 11:27:00 -04:00
high
57a2d082ef Added query function for easier queries.
Normalized method names in GroupManager.cs
2011-07-24 10:12:18 -04:00
Zack Piispanen
d515616f72 A few more tests 2011-07-23 22:27:21 -04:00
Lucas Nicodemus
5c59ebf71a Merge remote-tracking branch 'remotes/origin/general-devel'
Conflicts:
	TShockAPI/Commands.cs
	TShockAPI/DB/GroupManager.cs
	TShockAPI/DB/RegionManager.cs
	TShockAPI/Properties/AssemblyInfo.cs
	Terraria.sln
2011-07-23 17:25:20 -06:00
Zack Piispanen
732121bdf5 region basic tests added 2011-07-23 18:07:15 -04:00
Zack Piispanen
a2f2ea1500 whoops pushed in some test stuff that would break commands fixed removeItem ban tho, so its all good 2011-07-23 17:03:10 -04:00
Zack Piispanen
347d701b7f push for shank 2011-07-23 16:59:29 -04:00
Zack Piispanen
ffd0471326 initial unit testing work and a few tweaks to stuff relating to items 2011-07-23 15:21:56 -04:00
Lucas Nicodemus
d8e8c5df91 Warps are no longer ToLower()'d. 2011-07-23 01:14:52 -06:00
Zack
1468bbaa85 width + x1 = x2... 2011-07-22 23:18:59 -07:00
Lucas Nicodemus
219f5a8cfb WorldIDs 2011-07-22 23:35:21 -06:00
Lucas Nicodemus
870c1f74f4 Fixed warps too 2011-07-22 23:29:41 -06:00
high
a49269cc0c Create save path first 2011-07-23 00:50:30 -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
high
64ca3e7148 Region list now uses the new code that warps use too. 2011-07-22 22:00:18 -04:00
high
85dac355be Cleaned up the adding of default groups 2011-07-22 21:46:14 -04:00
high
1c2cead3c9 Fixed /warp list <page>
ListAllWarps now only returns names and only for the specified world.
2011-07-22 21:36:07 -04:00