Commit graph

2421 commits

Author SHA1 Message Date
Zack
1b58fb8509 Merge pull request #508 from CoderCow/patch-2
Group Improvements
Closes #482
2013-07-27 17:01:00 -07: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
Lucas Nicodemus
4e7b497ae4 Merge pull request #504 from CoderCow/patch-1
Some General Improvements
2013-07-22 10:02:45 -07:00
CoderCow
b591b740d1 Fixed .editorconfig final new lines. 2013-07-22 18:30:08 +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
CoderCow
12031e804c Added .editorconfig, might cause a bit less identation / line ending mess. It will automatically set the given settings in the used text editor if the Editor Config plugin is installed (available for several text editors), info: http://editorconfig.org/ 2013-07-22 10:28:32 +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
Lucas Nicodemus
d258cf3ee7 Made the README suck less! 2013-07-08 19:17:25 -06: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
Lucas Nicodemus
e5889765fc Merge pull request #493 from CoderCow/patch-1
Fixed /region info, Improved /item
2013-07-02 10:05:13 -07: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
Lucas Nicodemus
86b03466a3 Merge pull request #491 from CoderCow/patch-1
Even More Region Command Improvements
2013-07-01 13:55:01 -07:00
CoderCow
20fe060931 Fixed all region command syntaxes. 2013-07-01 20:57:53 +02:00
CoderCow
33b1ca969b -Added "-d" parameter to "/region info". Use to display the given region's boundaries as wires. 2013-07-01 20:06:17 +02:00
CoderCow
8c23d68727 -Added "-p" parameter to "/region name" for persistent mode, type "/region name" without "-p" to disable.
-Added "-u" parameter to "/region name". Use to include unprotected regions in the listing.
-Added "-z" parameter to "/region name". Use to include z indexes in the listing.
-Regions displayed by "/region name" are now sorted by z index.
2013-07-01 18:23:56 +02:00
Lucas Nicodemus
6fa744e2b5 Merge pull request #489 from CoderCow/patch-1
Region Command Improvements, Fixed /who
2013-07-01 07:53:04 -07:00
CoderCow
5df31a12a1 Added /region tp [region]. Additionally to "manageregion", also requires the "tp" permission. 2013-07-01 16:38:16 +02:00
CoderCow
2789b2fec1 Fixed /who listing one player per line instead of a muliple players per line. (my bad) 2013-07-01 16:18:26 +02:00
CoderCow
2ba84ddd67 /region list will now provide a better listing of extra long / short region names. 2013-07-01 16:18:19 +02:00
Lucas Nicodemus
961d5a8846 Merge pull request #488 from CoderCow/patch-1
SSI Exploit Fix and Made /overidessi Actually Useful
2013-07-01 06:49:10 -07:00
CoderCow
25e584efe3 -Fixed an exploit where players could sneak items through SSI when DisableLoginBeforeJoin was true.
-/overidessi will now actually work on players not logged in...
2013-07-01 12:00:12 +02:00
Lucas Nicodemus
d72c6e4d3c Merge pull request #487 from CoderCow/patch-1
Re-added Olink's commit & integrated more of @CoderCow's stuff.
2013-06-30 09:59:12 -07:00
CoderCow
790469c7b0 -The command delegate of commands can now be set afterwards. This allows other plugins easily override / extend existing commands.
-Added another command reference list so that original tshock commands can easily be identified.
2013-06-30 11:49:40 +02:00
CoderCow
deca922653 The /auth command will no longer be listed in /help if there's no use of it. 2013-06-30 11:49:35 +02:00