Commit graph

851 commits

Author SHA1 Message Date
Lucas Nicodemus
bcf8cb644f API Version Tick: 1.25
Fixes compatibility with new API revision
2016-10-03 21:40:13 -06:00
Lucas Nicodemus
5c1d5ae586 Use WorldPosition instead of ChestPosition
Fixes build with 90d732b840 (I'm 99% sure WorldPosition is what we want to use but could be wrong)
2016-10-03 21:05:39 -06:00
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
ProfessorXZ
37d9e93e6c Remove redundant region checks 2016-08-02 19:22:47 +02:00
ProfessorXZ
0919641b7f Update ApiVersion 2016-08-02 18:44:19 +02:00
ProfessorXZ
e9d504afd4 Add ItemForceIntoChest hook. Fixes #1250 2016-08-02 18:41:28 +02:00
ProfessorXZ
952da9609a Fixes #1197 2016-08-01 22:39:01 +02:00
ProfessorXZ
ffa64e4474 Fixes #1241 2016-07-19 00:02:52 +02:00
webmilio
7bac19afe0 Added world name to the title. 2016-06-30 13:46:55 -04:00
Enerdy
13977d9e53 Make GeoIP Great Again! 2016-06-19 14:02:36 +01:00
Enerdy
d1168003e7 Update submodule and version numbers 2016-05-25 17:42:04 +01:00
White
91c41aa68b Adds a --no-restart command-line argument for Multiplay 2016-04-27 15:12:43 +09:30
CoderCow
5e50264194 Fixed concurrent dictionary access. 2016-02-28 13:35:42 +01:00
Enerdy
aa419283a9 Add PlayerPermission hook, replace p.Group.HasPermission by p.HasPermission everywhere possible. 2016-01-11 14:37:02 +00:00
Lucas Nicodemus
8c3da1058e Change -providertoken arg to --provider-token 2016-01-01 22:26:26 -07:00
Lucas Nicodemus
c95ca1b8c6 Merge pull request #1146 from Celant/general-devel
Implement new stat tracker hotness
2015-12-28 13:59:04 -07:00
George
29abcaf612 Reworked the StatTracker client-side
Reworked the StatTracker client side stuff to match the new server side
changes. Also fixed the memory tracking, plus added a 'providerid' for
certain server hosting providers
2015-12-28 20:47:04 +00:00
Tyler Watson
4167a9b627 Removed unimportant messages from OnSecondUpdate()
Removed check ignores failed and player disabled for
not being logged in whilst SSC is enabled console messages, as
they are incessant in larger servers.

The messages are not informative as they are not reasonably
actionable by the console, and there is no point in spamming
server operators about such issues.
2015-11-26 19:13:38 +10:00
White
9c7d0f08e2 Deprecated PacketBufferer as its function is now fulfilled by SendQ 2015-11-23 11:50:24 +10:30
Tyler Watson
3de8889688 Reverted the silly on leave hook change 2015-09-18 22:05:11 +10:00
Tyler Watson
27ebc925b7 Tidied up server leave hook saving the world twice 2015-09-12 19:24:05 +10:00
Tyler Watson
049abd9146 Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel 2015-09-12 18:08:31 +10:00
Tyler Watson
34f28bace3 TShock 4.3.10 - APIVersion 1.22 2015-09-12 18:08:10 +10:00
White
ba677f83cb All OnSecondUpdate Disable calls now use one set of DisableFlags. Fixes #1072 2015-09-12 12:57:00 +09:30
White
1faf064983 Changed the way the SecondUpdate checks work 2015-09-12 12:50:01 +09:30
White
33739c4f07 Added a new Disable method with flags to determine where the message is logged to.
Obsoleted the old disable method
Added a config option to disable OnSecondUpdate logs (disable message is written only to console if set to true)
Updated all instances of the obsolete Disable method to the new Disable method
2015-09-12 11:33:17 +09:30
Tyler Watson
4bd1b6a07a Refactored StartInvasions to use Main.startInvasion method
It appears that there is a whole lot of display logic in the official
Terraria StartInvasion method, which is why martian invasion wasn't
working properly.

TSAPI now contains a slighly modified startInvasion method which takes
an optional invasion size, so TShock's StartInvasion method has now
been refactored to use TSAPI's invasion, restoring martian invasion
functionality.

Fixes #1087
2015-08-29 16:19:14 +10:00
White
24184a8061 Itembans check dyes, misc dyes, and misc equips 2015-08-26 20:48:25 +09:30
Tyler Watson
ac531a7d14 Removing TSPlayer.user from heapshot 2015-08-16 14:15:20 +10:00
Lucas Nicodemus
c073100c0a Update Submodule; Update to API 1.21 2015-08-07 07:32:40 -06:00
White
c7711b2906 Allow[Hallow/Corruption/Crimson]Creep in config now work
Fixes #1043
2015-07-25 13:06:21 +09:30
Lucas Nicodemus
97f0bd5aac Tick to 4.20 2015-07-23 10:49:49 -06:00
Tyler Watson
7717f6d9d5 Removed -world handling from inside TShock
Seriously, when has it ever been a good idea to handle TSAPI commandline
mechanisms from a plugin?  TSAPI related command line parameters need to
be handled from inside TSAPI.
2015-07-23 18:41:18 +10:00
White
4371ad4d9a Logging out is now safe in SSC. Fixes #1037 2015-07-20 23:25:33 +09:30
George
0c46a2ddcf Move three startup args back to ServerApi 2015-07-18 11:02:50 +01:00
George
8cf78be440 Move all startup arguments to TShock from API 2015-07-17 22:52:40 +01:00
White
e044dfaf52 Fixed #992
Updated submodule
2015-07-16 13:58:03 +09:30
White
985f890153 Removed duplicate REST port assign
Fixed a typo
2015-07-16 13:00:43 +09:30
White
58c4637021 Merge pull request #978 from Patrikkk/general-devel
Actually return entered region at OnRegionEntered
2015-07-10 11:28:26 +09:30
Lucas Nicodemus
0ba7ae8f10 Update to API 1.19 2015-07-09 16:02:28 -06:00
Patrikk
a983d14723 Actually return entered region at OnRegionEntered 2015-07-09 18:39:55 +01:00
White
f5e1b79fbb Fixed more of SSC. Trash, held item, piggy items, and safe items are all cleared upon first login. 2015-07-09 16:48:32 +09:30
White
8f8e9d4cd4 Fixed an issue in NetGetData where e.Length - 1 would be -1 2015-07-07 22:55:14 +09:30
White
4ff861634c Fixed an old packet handler causing WorldInfo packet data to be sent incorrectly 2015-07-07 12:15:42 +09:30
Enerdy
d966e1dd25 DisableTombstones now also prevents the new Golden Tombstones from dropping (sorry rich dudes) 2015-07-06 00:05:13 +01:00
Lucas Nicodemus
bcea7736ea Fix build
Alarmingly TShock set a lighting mode that has been removed in API
2015-07-05 12:10:42 -06:00
White
3a3e053d43 Fixed SSC. Note that SSC will NOT work with UUID login before join. UUID login before join has been disabled during SSC unless the player has the "tshock.ignore.ssc" permission.
Removed IncrementKills()
2015-07-05 23:13:54 +09:30
White
63bf31ded5 Removed Disconnect handling in NetHooks_SendData 2015-07-05 12:12:31 +09:30
Lucas Nicodemus
46ed829312 Fix build on Mono 2015-07-04 15:17:25 -06:00
Enerdy
3099f5d18c Fix WorldInfo packet, window title now correctly displays the IP Address of the Network Interface the server is being hosted on. 2015-07-04 22:06:27 +01:00