Commit graph

553 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
CoderCow
ee5a7dd7b8 /who will list player ids only when the -i parameter is added. 2013-06-30 11:49:32 +02:00
Scavenger3
93c76f6d53 Added world size to world command. 2013-06-30 19:20:07 +10:00
CoderCow
8a7bdf6697 Fixed /login error message. 2013-06-29 14:00:52 +02:00
CoderCow
76aab4af78 Added quick format versions of the TSPlayer.Send<X>Message methods. 2013-06-27 15:04:00 +02:00
CoderCow
a7f4c649b0 /region info does now properly display all region data including user and group shares. 2013-06-27 12:30:19 +02:00
CoderCow
2b1d2093ff /region will now state a proper help including all available sub-commands. 2013-06-27 11:03:50 +02:00
Scavenger3
f86ddf002e Allow a player to run a command if the permissions are empty. 2013-06-26 21:18:41 +10:00
Zack Piispanen
89571174ec Changed login event to prelogin and postlogin, if you set the args of prelogin to true, the login is ignored. In this case, if the server is loginbeforejoin, you need to kick the player with whatever reason otherwise bad things will happen. 2013-05-25 20:13:39 -04:00
Zack Piispanen
9ec77332fb Updated server bin
Added PluginUpdater stuff.  Very alpha at the moment until we can test more thoroughly.
2013-05-18 23:53:28 -04:00
Zack Piispanen
e37ada8749 Added event for reloading configs, so when a user does /reload it informs plugins that a config reload is requested. 2013-04-21 19:26:17 -04:00
Zack Piispanen
b37552ff27 Updated api to 1,13. 2013-04-19 23:54:11 -04:00
Scavenger3
5d2925d0e2 Changed Sudo command to TempGroup 2013-02-20 18:05:04 +10:00
Scavenger3
93fc6e4866 Added PlayerCommand Event 2013-01-13 18:29:16 +10:00
Zack Piispanen
0aedf2b108 Added way to have an overridable group that is session based.
New command /sudo <player> <group> will override the player's group with the group specified.
2012-12-15 18:59:25 -05:00
Zack Piispanen
9960526384 Fixed visibility of PlayerHooks.cs 2012-12-15 12:54:22 -05:00
Zack Piispanen
140c73be0a Added permissions for spawn and home, since they really should be split. 2012-12-15 00:12:37 -05:00
Lucas Nicodemus
88a9c05220 Merge pull request #461 from Scavenger3/InfPermissions
Commands can have more than one permission.
2012-12-14 12:55:39 -08:00
MarioE
458bf65e53 Permission for /tphere should have been the tphere permission. 2012-11-23 15:44:48 -05:00
Colin Bohn
189896446f Fix deprecation of warp commands 2012-11-18 11:22:12 -08:00
Zack Piispanen
477c69facd Fixed bans and warps being deprecated. 2012-11-11 23:51:29 -05:00
Zack Piispanen
fd9e48ce82 Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2012-11-10 22:44:15 -05:00