️TShock предоставляет серверам Terraria серверных персонажей, античит-программы и инструменты для управления сообществом.
Find a file
Patrikk d77f363157 Fix #1287 | Quickstack to nearby chests issue
CheckRangePermission accepts coordinate which is divided by 16.
The Position variable which is passed in ForceItemIntoChestEventArgs is
multiplied by 16.
(To be more exact. `new Vector2((float)(Main.chest[i].x * 16 + 16),
(float)(Main.chest[i].y * 16 + 16))`)
The + 16 is there to get the middle of the player so it can make an
accurate check when checking distance between chest and player.
So I'm not really sure if the Position arg should be even passed in the
eventarg.

Anyway, CheckRangePermission always returned true because of the above,
and handled the event, so players could never quickstack into nearby,
unless they had RangeChecks off.
"True if the player should not be able to place the tile." (In our case,
stack items into chest)

Why doesn't CheckRangePermission contain a check on an actual range
permission of the player's group? So groups with the permission could
bypass the check.
Just wondering if there is any legit reason for that.
2016-09-25 02:07:15 +02:00
prebuilts Make GeoIP Great Again! 2016-06-19 14:02:36 +01:00
scripts Make GeoIP Great Again! 2016-06-19 14:02:36 +01:00
TerrariaServerAPI@2738bee60c Update submodule for sandstorms 2016-09-22 19:12:48 +09:30
TShockAPI Fix #1287 | Quickstack to nearby chests issue 2016-09-25 02:07:15 +02:00
TShockRestTestPlugin Converted all files to LF line endings 2012-02-21 15:56:34 +00:00
.editorconfig Add command help text 2013-10-05 10:34:28 -04:00
.gitattributes Line ending normalization to CRLF (Windows) 2013-08-22 21:17:32 -06:00
.gitignore Updated project to use NuGet where possible 2016-05-25 22:43:45 +01:00
.gitmodules Move TerrariaAPI-Server submodule to our own repo 2015-05-01 09:24:35 -06:00
.travis.yml Updated project to use NuGet where possible 2016-05-25 22:43:45 +01:00
CHANGELOG.md Updated CHANGELOG.md 2016-09-23 18:51:27 +09:30
CONTRIBUTING.md Contributing guidelines now say how to compile it 2015-10-26 16:38:06 -06:00
COPYING GPL should be COPYING not LICENSE. 2011-06-12 01:28:35 -06:00
README.md Haha, removed some kind of false information 2016-04-01 17:20:32 -06:00
TShock.sln TShock 4.3.10 - APIVersion 1.22 2015-09-12 18:08:10 +10:00

TShock Build Status

TShock is a server modification for Terraria, written in C#, and based upon the Terraria Server API. It uses JSON for configuration management, and offers several features not present in the Terraria Server normally.

Features

  • MySQL support
  • Permissions
  • Multiple administrators
  • Anti-cheat
  • User registration
  • Reserved slots
  • User punishment (kicking, banning, muting)
  • Server side characters
  • JSON based configuration management

Community

Feeling like helping out? Want to find an awesome server? Some awesome plugins?

Please see the contributing file before sending pull requests.

Download