Commit graph

1910 commits

Author SHA1 Message Date
Zack Piispanen
b22457382e remove unused using statements 2013-09-17 02:24:02 -04:00
Zack Piispanen
004f02264d Removed unused references. 2013-09-17 02:22:51 -04:00
Zack Piispanen
225668fcdd Some small rest improvements. Use newest TServer binary. 2013-09-16 00:09:29 -04:00
Lucas Nicodemus
dd05c524ec Merge branch 'master' into general-devel 2013-09-15 15:24:15 -06:00
Zack Piispanen
33050b1306 Fixed(?) lava and water liquid sets. Not sure if its even possible to get this far into the process, but if it was possible to bypass the item in hand checks in OnSecondUpdate() and OnPlayerUpdate() then they would successfully place lava/water. This should now be fixed, and if the right bucket isn't in their hand we ignore. 2013-08-28 00:42:45 -04:00
Lucas Nicodemus
7e1954d047 Removed now useless config option 2013-08-22 23:45:37 -06:00
Lucas Nicodemus
8fb046f5b3 Removed old, crusty stat tracker. 2013-08-22 22:50:59 -06:00
Lucas Nicodemus
66483e0325 Added the header for MaxMind's Geo stuff back 2013-08-22 21:54:47 -06:00
Lucas Nicodemus
ae7ab5f234 Updated copyright information to point to 2013. 2013-08-22 21:51:17 -06:00
Lucas Nicodemus
9470e20423 Line ending normalization to CRLF (Windows) 2013-08-22 21:17:32 -06:00
Lucas Nicodemus
f82bff1b17 Merge pull request #505 from CoderCow/patch-1
REST Security and General Improvements
2013-08-22 20:09:10 -07:00
CoderCow
581522355b Fixed broadcast not being displayed in the configured custom color. 2013-08-11 13:18:40 +02:00
CoderCow
f8fbe9b5da Added config setting "RestUseNewPermissionModel" to allow switching between the REST permission models for backward compatibility. 2013-08-02 13:01:22 +02:00
CoderCow
abeddd4c07 Minor improvements. 2013-08-02 13:01:17 +02:00
CoderCow
0f34aa03e8 Moved all new REST endpoints to "/v3"as "/v2" was incompatible. 2013-08-02 13:01:12 +02:00
CoderCow
9a40c81b49 Fixed all REST endpoints to use RestObjects instead of Dictionaries. 2013-08-02 13:01:06 +02:00
CoderCow
11f3099d30 Added "/rest listusers" to "/rest" default output. 2013-08-02 13:01:01 +02:00
CoderCow
b828299a1c -Improved group loading from the database:
--TShock will now attempt to load any available valid group data even if there are invalid records and will also report proper errors / warnings.
--"superadmin" is now a reserved group name.
--Groups with parents causing infinite parent loops, invaild parents, or parenting theirselfes will have their parent group reset.
--Double definitions of groups with the same name are no longer allowed.
--Group instances are now tried to be preserved instead of being recreated during a reload of the group data.

-Added command "/group parent" to get and set the parent of groups.
-REST Endpoint "/v2/groups/create" will no longer allow creating groups having theirselfes as parent.
-REST Endpoint "/v2/groups/update" will no longer allow setting a group's parent to theirself or setting a parent group resulting in an infinite parent loop.
-This commit should fix #482.
2013-08-02 13:00:45 +02:00
CoderCow
33091035c0 -Improved group loading from the database:
--TShock will now attempt to load any available valid group data even if there are invalid records and will also report proper errors / warnings.
--"superadmin" is now a reserved group name.
--Groups with parents causing infinite parent loops, invaild parents, or parenting theirselfes will have their parent group reset.
--Double definitions of groups with the same name are no longer allowed.
--Group instances are now tried to be preserved instead of being recreated during a reload of the group data.

-Added command "/group parent" to get and set the parent of groups.
-REST Endpoint "/v2/groups/create" will no longer allow creating groups having theirselfes as parent.
-REST Endpoint "/v2/groups/update" will no longer allow setting a group's parent to theirself or setting a parent group resulting in an infinite parent loop.
-This commit should fix #482.
2013-07-27 22:02:29 +02:00
CoderCow
4d95b5594e -Added REST endpoint "/v2/token/destroy/all"
-Added command "/rest destroytokens", "/rest listusers"
2013-07-27 20:57:55 +02:00
CoderCow
d9ff9a6ac5 REST resolves the user's group on each request now. 2013-07-27 20:01:48 +02:00
CoderCow
125884cc4d Fixed broken build due to last commit. 2013-07-26 00:28:49 +02:00
CoderCow
72939c8876 Split REST permissions from Permissions into RestPermissions class. 2013-07-26 00:20:45 +02:00
CoderCow
580010c478 -Added "/v2/server/rules" and "/v2/server/motd" endpoints.
-Minor REST fixes.
2013-07-25 23:58:53 +02:00
CoderCow
aebc21c20a Minor REST improvements. 2013-07-25 23:37:29 +02:00
CoderCow
0ea83746cf -Added REST per-endpoint permissions.
-Added REST endpoint "/v2/server/restart".
-Added REST endpoint "/v2/server/reload".
-Added REST endpoint "/v3/server/rawcmd", will output all returned lines as an array instead.
-Added "uptime", "serverpassword", "rules/ServerSideInventory" fields to REST endpoint "/v2/server/status".
-REST requests are now logged.
-Endpoint "/v2/server/rawcmd" does now check whether the user has the sufficient permission to execute the command.
-Fixed Config.EnableTokenEndpointAuthentication not working properly before.
-Removed obsolete "api" permission (only "restapi" now).
2013-07-25 19:52:12 +02:00
CoderCow
f4aa36b8d1 Fixed a possible bug causing TSPlayer.StrikeNPC to cause NullReferenceExceptions depending on the calling thread. 2013-07-22 12:22:42 +02:00
CoderCow
56d17224b6 Added /aliases command used to list aliases of other commands. 2013-07-22 12:22:42 +02:00
CoderCow
5d2be35690 -Made the broadcast color configurable.
-Broadcast color defaults to Aquamarine now.
2013-07-22 12:22:40 +02:00
CoderCow
d1f1e422a0 -Ingame log messages are no longer shown to the player who caused them.
-Changed ingame log message color to something more unique for better identification.
2013-07-22 12:22:39 +02:00
CoderCow
512ec24b57 Minor fix of /region info's output. 2013-07-22 10:45:36 +02:00
CoderCow
dcfdbd1dbd Added quick format versions of the Log message methods. 2013-07-22 10:36:34 +02:00
MarioE
ca6efe66f3 Fixed merge. 2013-07-11 12:58:40 -04:00
Lucas Nicodemus
033ffc67a9 Merge pull request #494 from Scavenger3/tile
Check for invalid place style.
2013-07-11 09:42:09 -07:00
MarioE
380e8d0818 Added the / before command names back into /help output. 2013-07-11 08:00:03 -04:00
MarioE
3ed1261673 Maintained "Invalid syntax!" error message consistency and method visibilities. 2013-07-11 07:42:36 -04:00
MarioE
7509204c4c Modified PaginationTools to have colored console output. 2013-07-10 23:14:42 -04:00
MarioE
7c3ffee48c Consolidated item ban commands and fixed /group help. 2013-07-10 23:14:12 -04:00
MarioE
8a3a5dc3c1 Consolidated group commands. 2013-07-10 22:38:25 -04:00
MarioE
8b660be8f0 Switched to PaginationTools. 2013-07-10 21:22:51 -04:00
MarioE
a9788f4576 Removed deprecation messages. This is a new version already. 2013-07-10 20:12:28 -04:00
MarioE
8ba1aa58ac Added some tile hacking checks and moved explosive projectiles server-side. 2013-07-10 08:51:42 -04:00
MarioE
edb7e6e5a2 Set the default value of PreventDeadModification to true. 2013-07-09 16:54:29 -04:00
MarioE
a86799cbb9 Changed the server's lighting mode to 2. This will fix any glitches caused by the decreased world size. 2013-07-08 21:39:14 -04:00
Scavenger3
2bd9b6a6b6 Check for invalid place style 2013-07-06 22:18:26 +10:00
Scavenger3
a01a33192a Tile GetDataHandlers: fix bool fail and add byte style 2013-07-06 16:39:20 +10:00
CoderCow
cf018ebd13 Fixed /overidessi not working properly if DisableLoginBeforeJoin was false. 2013-07-02 12:15:10 +02:00
CoderCow
33700e2730 /item handles its parameters smarter now, the quotes for the first parameter are now optional, even if it contains whitespaces. Also, /item returns better error messages now. 2013-07-02 10:03:37 +02:00
CoderCow
899fd6f299 Fixed "/region info -d" possibly not hiding the boundaries properly sometimes. 2013-07-02 09:05:34 +02:00
CoderCow
20fe060931 Fixed all region command syntaxes. 2013-07-01 20:57:53 +02:00