Lucas Nicodemus
9b419467d6
Replace NetworkText.FromLiteral("") with NetworkText.Empty
...
Thanks @deadsurgeon42
2017-04-20 00:31:33 -06:00
Lucas Nicodemus
72677506d6
Update to API 2.1
2017-04-20 00:06:27 -06:00
Lucas Nicodemus
2d14533172
Terraria 1.3.5 changes compile (NO GUARANTEES ON EXECUTING)
2017-04-19 18:21:34 -06:00
Lucas Nicodemus
b8dbdb9ff4
Final batch of .name changes
2017-04-19 17:41:15 -06:00
Lucas Nicodemus
2dee3edb3d
Replace more .names with .FullName or .Name respectively
2017-04-19 17:33:17 -06:00
Lucas Nicodemus
95ad2aeeab
Replace more name + Name calls
2017-04-19 17:25:33 -06:00
Lucas Nicodemus
46c42536c9
Replace calls to Main.buffName to Lang.GetBuffName
2017-04-19 17:22:46 -06:00
Lucas Nicodemus
2a5efa65ae
Saving work to apply merge changes
...
Currently moving .name to .Name and things like that from Item
2017-04-19 17:12:38 -06:00
Chris
5f2037e9ee
Merge branch 'general-devel' into logout-permissions-change
2017-04-15 12:17:54 +09:30
Tyler Watson
a102551588
System.Data.SQLite.Core support in GetSqlType()
...
GetSqlType() does not recognise System.Data.SQLite.Core because the type of the SQL connection class has been renamed to `SQLiteConnection` from `SqliteConnection`. This commit adds support for both, so that the DB manager classes can operate with plugins which reference the new SQLite ADO.net providers from NuGet.
2017-04-14 17:33:48 +10:00
Aaron Goulet
5110ad0efd
Merge branch 'general-devel' into logout-permissions-change
2017-04-13 20:24:08 -07:00
Aaron Goulet
ffe4849747
Default Logout Permissions
...
Moved Permissions.canlogout to the default permissions group.
2017-04-13 20:22:59 -07:00
Lucas Nicodemus
5183190745
Update Permissions to be more clear on SSI vs SSC
2017-04-12 12:50:16 -06:00
Aaron Goulet
d0ff9efc08
Issue #1371 : Grant logout permissions by default
2017-04-02 09:07:44 -07:00
Ruby Rose
787e5e0108
Update RestManager.cs
2017-03-19 19:52:20 +02:00
Ruby Rose
3dac79fcc6
Expand rest info
2017-03-19 20:49:48 +03:00
White
42c7a2b030
Resolved a bug in CommandLineParser,
...
which caused servers started with a single argumentless flag to not parse the flag.
Closes #1411
2017-03-19 10:06:45 +10:30
White
0bb704a845
Updated version ready for release
2017-03-13 12:18:11 +10:30
White
c4a3a9fb67
Updated Copyright for 2017
2017-03-13 12:17:16 +10:30
White
96e855d578
Null check for values in HandlePlayerUpdate.
...
Might resolve #1405 .
2017-03-13 12:12:48 +10:30
White
90505435ba
Improved NPC spawning functionality via /sm.
...
Display names can now be used to find NPCs.
Spawning by ID should now spawn unique NPCs, when multiple NPCs share the same name.
Closes #1383
2017-03-13 12:00:46 +10:30
White
86c180c156
Spawning items by ID now actually uses the ID properly.
...
Fixes #1398
2017-03-13 11:45:32 +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
Simon311
54f6bb3a7e
Fix a client crash exploit
2017-03-11 06:08:13 +03:00
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
White
26a5b00567
Updated Utils.HasBanExpired to use new Ban fields
2017-02-21 22:21:28 +10:30
White
3989f0e21a
Ban.BanDateTime and Ban.ExpirationDateTime are now nullable, in case of bad bans.
...
Ban sorting now uses an IComparer<Ban> to do its dirty work.
2017-02-21 22:18:41 +10:30
White
b0d9407f52
Fixed tabbing in Utils.HasBanExpired
2017-02-21 21:43:19 +10:30
White
3ec7cb1d09
Renamed Ban.DateTime to Ban.BanDateTime because System.DateTime is a thing
...
Ban.BanDateTime and Ban.ExpirationDateTime are now actually set
2017-02-21 21:42:50 +10:30
White
c3cffd1559
BanManager.cs now consistently uses tabs
2017-02-21 21:17:31 +10:30
White
dba89e45c8
Added sorting to ban retrieval.
...
Default retrieval sorts bans by the date they were added, from newest to oldest.
Progress on #1400
2017-02-21 16:40:59 +10:30
White
ea1d3c818f
Fixed a typo in /v3/world/bloodmoon
...
Because apparently bloomoons aren't a thing.
Fixes #1401
2017-02-20 16:09:31 +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
Zt Wang
1c8d49870e
Fix inaccurate summary and add TSPlayer for ItemDropEventArgs
2017-02-13 16:41:38 +08:00
White
e3a8112b5b
REST updates.
...
Rest.cs got a lot of commenting at last.
Redirects and upgrades can now be easily added for REST routes via the `Rest.RegisterRedirect(base, target, upgrade)` method.
Redirects added for all routes. Upgrades added for `/world/bloodmoon` and `/v2/world/autosave`, as they both use old-style REST verbs.
2017-02-02 14:28:35 +10:30
White
9d4ced58b9
Remove an oversight relating to REST token management
2017-02-02 00:23:12 +10:30
White
26010c0acf
Updated REST to use an RNGCryptoServiceProvider for more secure random numbers involved in token generation.
...
Also removes some unnecessary limitations.
Closes #1388
2017-01-31 11:25:59 +10:30
White
94fb0e18b7
Deprecated the RESTLimitOnlyFailedLoginRequests config option
2017-01-31 11:23:52 +10:30
DogooFalchion
6fb6098acf
Add campfire to the orientable tiles list.
2017-01-19 19:10:53 -05:00
White
0ba826e1fd
bandaid fix for invalid indexes in OnLeave
2017-01-17 16:13:30 +10:30
White
fe670bc18f
Fix for null reference exceptions from REST
2017-01-11 19:42:38 +10:30
Lucas Nicodemus
f264e2b060
Add parity in REST /world/meteor with /dropmeteor functionality
...
See #1361
It looks like we're setting spawnMeteor before executing WorldGen.dropMeteor()
in the command but not in the REST API. This makes the two code paths
behave the same.
2017-01-10 13:17:31 -07:00
White
c0a679b3f3
Forgot csproj
2017-01-06 13:57:02 +10:30
White
51b796cf47
Updated the UpdateManager.
...
It now performs all its web requests asynchronously and does a better job of explaining errors it encounters without plastering red Exception messages on the console.
2017-01-06 13:30:24 +10:30
White
06f813c203
Release procedure
2017-01-03 21:51:50 +10:30
White
d864acd22f
Merge branch 'general-devel' into fix_trapdoors
2017-01-02 22:03:32 +10:30
White
6359dad213
AllowCutTilesAndBreakables option works better now.
...
Herbs, vines, flowers can be cut inside regions if the option is enabled.
Any action that would also break a wall is still ignored.
Closes #1334
2016-12-31 12:57:16 +10:30
White
24da389050
Re-added /status and added mute bool to /v3/players/read.
...
`/status` is now a root endpoint and will always point to `/v2/server/status` with an added `upgrade` field describing the route to the latest status endpoint.
Closes #1358 . Closes #1348
2016-12-31 11:55:10 +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