☕️⚡️TShock предоставляет серверам Terraria серверных персонажей, античит-программы и инструменты для управления сообществом.
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. |
||
|---|---|---|
| prebuilts | ||
| scripts | ||
| TerrariaServerAPI@2738bee60c | ||
| TShockAPI | ||
| TShockRestTestPlugin | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| .travis.yml | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| README.md | ||
| TShock.sln | ||
TShock 
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.