Commit graph

207 commits

Author SHA1 Message Date
Zack Piispanen
a3c1b8cc49 Apparently this file didnt want to be commited last time. 2013-09-22 16:27:23 -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
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
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
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
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
76aab4af78 Added quick format versions of the TSPlayer.Send<X>Message methods. 2013-06-27 15:04:00 +02:00
MarioE
ae5b47a94e Fixed REST API bug. 2013-01-22 19:12:20 -05:00
Scavenger3
4e768f3231 Added SilentJoin to TSPlayer 2013-01-13 19:10:02 +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
d4709a31f1 Added config option to utilize the allowed group on itembans
Support the config option and allow users on the allowed list to use the banned item.
2012-12-15 00:09:29 -05:00
MarioE
b85bed52d2 That should be all of it 2012-06-04 21:28:47 -04:00
Zack Piispanen
97c40c0ca9 Merge branch '4.0' of github.com:TShock/TShock into 4.0 2012-06-02 23:34:38 -04:00
Zack Piispanen
bc3d9fd528 Added in more instantiation of the command handler callback in the other constructors. 2012-06-02 23:34:28 -04:00
MarioE
0725d14bc6 Enabled color usage in console output 2012-06-02 23:03:36 -04:00
Zack Piispanen
be45fb762b Removed some deprecation messages. Added some more docs. 2012-06-01 13:08:53 -04:00
Zack Piispanen
50ecce618e Added some docs on the player class. Also changed Command Callback to use object's instead of CommandArgs to promote generics. The new /test command will simply send the player a success message so that it can be tested on the console without opening the game( I dont have the game at work and didnt want to worldgen so I have no clue if it works as intended[ will be able to fix etc later tonight as I dont expect many people to be working on this before then] ) 2012-06-01 11:54:05 -04:00
Zack Piispanen
51e1991643 Added Command Callback support 2012-05-31 22:43:07 -04:00
Lucas Nicodemus
43523fd441 Deprecated use of SendMessage(string msg) 2012-05-30 03:39:47 -06:00
Lucas Nicodemus
a1dbd06f8a Changed the colors a bit
I'm aware that there's the top half of the file to do :/
2012-05-30 03:13:04 -06:00
Lucas Nicodemus
c79703131d Replaced a little more
Kill me now this is terrible.
2012-05-30 02:27:42 -06:00
Lucas Nicodemus
fd14dd91e0 Added several new message senders that are easier to use 2012-05-29 22:34:19 -06:00
Zack Piispanen
761bdff214 Fix chat colors 2012-05-27 13:38:29 -04:00
Lucas Nicodemus
be2b60d706 Made chataboveheads work 2012-05-27 10:54:41 -06:00
Lucas Nicodemus
8bcc24da7e Added some code to enable chat above heads 2012-05-27 10:19:52 -06:00
Deathmax
727bff5bd4 Fixes #439
Adds a configurable world name to be sent to clients which is saved as
the name of the server.
2012-05-27 11:46:49 +08:00
Lucas Nicodemus
b8c2c1aded Fixed SaveSSI on kick potentially breaking
Added method to save an inventory in SSI to TSPlayer
2012-05-25 20:03:27 -06:00
Zack Piispanen
3e0c290243 Dont mess with the vitrual methods. 2012-05-24 18:30:14 -04:00
Zack Piispanen
50d9cb602d Added config option to prevent people from spawning banned items. 2012-04-27 01:03:05 -04:00
Lucas Nicodemus
8d5cdf04a8 Update copyright to reflect actual year date. 2012-04-24 12:45:46 -06:00
Deathmax
a3158d6311 Don't send another massive tile update after the first one after a teleport. 2012-03-04 21:23:15 +08:00
stevenh
41dbd31aac Converted all files to LF line endings 2012-02-21 15:56:34 +00:00
k0rd
b6e220e9f2 A player should be teleported to remembered position after he is finished being harassed to login. 2012-02-06 20:17:39 -05:00
k0rd
ccda71027b attempting to fix client/server tile disagreements after teleporting 2012-01-29 03:07:19 -05:00
k0rd
1e8cb04fdd allow teleporting and warps at edges of the map 2012-01-28 05:19:15 -05:00
k0rd
6a1e52394a Properly update position for hacky noclip detection and teleportation methods. 2012-01-25 23:28:35 -05:00
Deathmax
ab55481ddb Don't log IndexOutOfRange exceptions in SendTileSquare 2012-01-26 09:50:42 +08:00
k0rd
b66358bef2 Prevents users from sneaking items onto the server by holding them in their hands when ServerSideInventory is enabled. 2012-01-24 00:07:25 -05:00
k0rd
9d0f97851d TShock will now wait 2 seconds before sending another XXX protected from changes for a given protection type - per user. 2012-01-21 21:15:23 -05:00
Lucas Nicodemus
d0c1f42db3 Fixed icetails 2012-01-21 00:32:43 -07:00
Lucas Nicodemus
11802f2a13 Added IceTile system. 2012-01-20 23:25:15 -07:00
Deathmax
b85754ee1f Add debugging info for which method called Disable() 2012-01-14 10:47:27 +08:00
Deathmax
71117ae0b5 Add reasons to all Disable() usages 2012-01-14 10:40:06 +08:00
Natrim
64b0a5c434 fix for GetDataHandlers: ERROR: System.IndexOutOfRangeException: Array index is out of range. in TShockAPI.PlayerData.StoreSlot 2012-01-11 11:08:09 +01:00
Deathmax
78fce47cf8 Fix player position being updated wrongly when teleporting 2012-01-07 14:11:33 +08:00
Lucas Nicodemus
b8e4dffd74 Add new REST endpoint:
- /v2/server/rawcmd

Takes parameters:
 - cmd

Commands have to start with /, some commands aren't written properly, and may not return any more output than a status code.
2012-01-02 22:14:30 -07:00
Lucas Nicodemus
4b77ca549e Users shouldn't "leave" when they enter an incorrect password anymore. Just as soon as someone reimplements the OnLeave hook. 2012-01-01 18:46:06 -07:00
Lucas Nicodemus
bf9d0137f1 Added any missing license headers to all files 2012-01-01 03:06:48 -07:00