Commit graph

890 commits

Author SHA1 Message Date
White
c4a3a9fb67 Updated Copyright for 2017 2017-03-13 12:17:16 +10:30
White
fc7460c7d5 Added and implemented a basic command-line parser.
This replaces the switch-case in HandleCommandLine and HandleCommandLinePostConfigLoad
2017-03-13 11:43:41 +10:30
White
b3a2b24daa Updated the Stat Tracker to use System.Net.Http types.
Very similar to the previous Update Manager changes. The stat tracker now uses asynchronous threaded calls and manages exceptions better
2017-03-06 21:35:14 +10:30
Zt Wang
6446cdc2b6 Remove redundant codes 2017-02-15 21:13:20 +08:00
Zt Wang
fa6b5845f0 Add Evil Type option during world creation 2017-02-15 18:42:53 +08:00
White
0ba826e1fd bandaid fix for invalid indexes in OnLeave 2017-01-17 16:13:30 +10:30
White
4f7a15f9bf Ensures Netplay.ServerPassword is always empty.
This prevents an issue in which packets are sent in an unexpected order resulting in clients being unable to connect when a CLI-defined password is used.
A CLI-defined password will now override any TShock config-defined password.
2016-12-31 11:33:48 +10:30
DogooFalchion
84a84bdf05 Remove todo reminder. 2016-12-21 20:44:42 -05:00
DogooFalchion
95c5129fa9 More SSC cleanup. 2016-12-21 20:43:09 -05:00
Lucas Nicodemus
b4f37a60c9 Merge branch 'general-devel' into mintaka 2016-12-14 10:02:02 -07:00
Lucas Nicodemus
cda07b4be5 Merge pull request #1324 from DogooFalchion/more_dumps
More Terraria dumps for NPC/Item/Projectile/Buff/Prefix
2016-12-12 13:11:59 -07:00
Enerdy
e6fe896133 Update version codename
Project Mintaka - The First Star
2016-12-11 23:44:13 +00:00
White
02c58b5c93 Submodule update + API version update 2016-12-11 13:46:11 +10:30
Luke
272cc31b28 Fixes rest api error on startup without -ip arg 2016-12-10 02:30:15 +10:00
Lucas Nicodemus
e4313b6433
Update to latest stuff from death 2016-12-06 20:34:12 -07:00
Lucas Nicodemus
678f6c7cf8
Update to Mintaka (thanks @enerdy) 2016-12-06 17:36:44 -07:00
Zaicon Kiroshu
a0a98d19f3 Bank3 Implementation 2016-11-23 18:51:11 -06:00
Zaicon Kiroshu
02815a23ef API Tick, Submodule Update, Changelog Update 2016-11-20 15:15:53 -06:00
DogooFalchion
c35389f9f8 Break Item dump into versions. Readme.io 400kb limit O_o 2016-10-26 18:08:07 -04:00
DogooFalchion
91779a1eee Tab that guy back in. 2016-10-25 18:59:03 -04:00
DogooFalchion
b7019b6166 Add a few more dumps to TShock, to facilitate keeping the documentation up to date. 2016-10-25 18:58:04 -04:00
Lucas Nicodemus
65fe410c31
Fix KnownIps == 0 causing .Last() to fail (Fixes #1319 again).
Thanks to @Simon311 for being able to read. We love you. 💘

"You should laugh at yourself at least once every day."
2016-10-24 10:58:17 -06:00
Lucas Nicodemus
f8a5388582 Revert "Ensure IPs are > 0 otherwise the Linq will fail." 2016-10-24 10:47:07 -06:00
Lucas Nicodemus
1328d71fdc Merge pull request #1317 from DogooFalchion/motd
Update MotD file parsing to convert color formats into smart text.
2016-10-23 19:27:52 -06:00
Lucas Nicodemus
3fdc89a576 Merge pull request #1320 from DogooFalchion/fix_playerlogin
Ensure IPs are > 0 otherwise the Linq will fail.
2016-10-23 16:23:34 -06:00
DogooFalchion
701cfa0591 Ensure IPs are > 0 otherwise the Linq will fail. 2016-10-23 18:16:10 -04:00
DogooFalchion
8df7e0c298 Backup old MotD and convert it to using Terraria chat tags automatically, then write it back out to the MotD file. 2016-10-23 14:37:16 -04:00
Lucas Nicodemus
a8b4bf1d95
Remove PacketBufferer
The packet bufferer was obsolete.
2016-10-23 06:02:27 -06:00
DogooFalchion
6242a54603 Update references to MOTD to point to the variable, instead of having magic strings. 2016-10-22 17:37:00 -04:00
Rodrigo
78a4185152 Merge pull request #1312 from Simon311/general-devel
Add /accountinfo, fix offline bans exploit, fix #1309 more
2016-10-18 18:59:13 +01:00
Simon
186bb70186 Add /accountinfo, fix offline bans exploit, fix #1309 more 2016-10-18 09:50:10 +03:00
Lucas Nicodemus
dce26d6928 Merge pull request #1310 from Simon311/general-devel
Fix for HealOtherPlayer exploit, also fix #1309
2016-10-17 08:51:19 -06:00
Simon
68799d9d20 Fix description 2016-10-17 16:17:44 +03:00
Simon
1460a7ad91 Fix for HealOtherPlayer exploit, also fix #1309 2016-10-17 15:51:49 +03:00
Adilson Carvalho
49b4effe74 Changed year to 2016 on all GPL headers 2016-10-16 17:06:02 -02:00
Simon
5be85b9864 Ensure that players can not connect once the server started shutting down 2016-10-16 13:58:05 +03:00
Simon
54915bcf47 Fix /" 2016-10-16 08:58:55 +03:00
Enerdy
dcaae17ffe Fix that one missing message & Update CHANGELOG.md 2016-10-15 00:39:13 +01:00
Enerdy
b6267bbaa7 Auth system now checks if a superadmin exists
The 'auth-verify' command was also removed and its alias was added to 'auth', which now does both things.
2016-10-14 23:07:29 +01:00
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