Commit graph

579 commits

Author SHA1 Message Date
MarioE
01dcf6c3fc Fix /clearitems
1.2 has 400 item slots instead of 200.
2013-10-02 15:01:57 -04:00
Zack Piispanen
9304c128b0 When an account is registed seed the CharacterDB with the proper start values. 2013-10-01 20:39:28 -04:00
Zidonuke Ghost
262e6d8349 Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel 2013-10-01 06:22:25 -04:00
Zidonuke Ghost
0d351778a7 Initial server side character system implementation. 2013-10-01 06:22:08 -04:00
Zack Piispanen
6fd6bc9b9c Fix Added text to godmode
Fixed negated permissions
2013-10-01 04:56:18 -04:00
Zack Piispanen
98a282cd2a Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2013-10-01 04:53:06 -04:00
Zidonuke Ghost
aff4314f8a Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel 2013-10-01 04:39:01 -04:00
k0rd
f8440bae35 fix for /spawn 2013-10-01 04:38:25 -04:00
Zidonuke Ghost
b2a8198bb1 Client UUID Implementation: Bans and User Auth.
Send ServerSideCharacter flag if set in WorldInfo.
2013-10-01 04:35:49 -04:00
Zack Piispanen
ce73b0c0b5 Add canchat permission as well as godmode being a toggle command. 2013-10-01 04:20:52 -04:00
k0rd
2569c10823 fixes warps, tp [name], tphere (no longer places you below the target) 2013-10-01 02:12:05 -04:00
Zack Piispanen
2621774e85 Updated Commands to use heal packet instead of hearts, enabling godmode. needs permission. 2013-09-30 23:56:59 -04:00
k0rd
f08c1449c9 added /eclipse command 2013-09-30 22:58:32 -04:00
k0rd
75eaaafdec added command /rain 2013-09-30 20:38:53 -04:00
Zack Piispanen
d71aacc58d Did some tweaks to Teleport to make the bounds checks in one place.
Fixed item drop packet, as well as update the bounds.
2013-09-30 19:34:43 -04:00
Zack Piispanen
fddaf657a5 Teleport code has been cleaned up.
Added tp prevention based on permission tp.  Updated to latest server exe.
2013-09-30 16:23:11 -04:00
Zack Piispanen
1a2f874285 Implemented Packet Teleport mechanism. 2013-09-29 03:37:20 -04:00
Zack Piispanen
c17b661166 Stripped out stupid shit
Commented packets we dont know about yet.
2013-09-28 17:32:03 -04:00
Zack Piispanen
dea360869b Refactored the many matches found redundancy by adding a utils method. Changed the csproj to build x86 instead of anycpu which was causing issues for release. 2013-09-27 01:42:13 -04:00
MarioE
0dfe99ca68 Split superadmin permission. 2013-09-25 20:52:03 -04:00
MarioE
e1531ab675 Overhauled permissions.
Overhauled permissions to use permission nodes, and separated some
permissions into smaller ones (such as cfg into tshock.cfg.maxspawns,
tshock.cfg.spawnrate, etc),
2013-09-23 18:53:36 -04:00
Zack Piispanen
856def83b3 Added basic framework for allowing for ban durations and banning admin.
Added BanningUser, Date(of ban), and Expiration to the db
On join, Expiration is checked, if ban is expired we remove it and the user is allowed on.
When running the ban command, your UAN is used as the banning user, and the date is that moment, with no expiration.
#531
2013-09-22 16:04:12 -04:00
Zack Piispanen
7c0bcceb9f Added LastAccessed time field and KnownIPs field to the user database. This resulted in some changes everywhere, such as new logic with default groups. Apparently, somehow, the ip based stuff worked even though no ips were set to properly grab the user group. The wrong group was being assigned to new users resulting in a player with 0 permissions. This is now fixed. 2013-09-21 20:57:14 -04:00
Zack Piispanen
ba42fb08df Removed ip address from users, as well as changed /user add syntax to be '/user add username password group' instead of colon bullshit. 2013-09-21 17:11:22 -04:00
Zack Piispanen
b22457382e remove unused using statements 2013-09-17 02:24:02 -04: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
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