Commit graph

140 commits

Author SHA1 Message Date
White
c4a3a9fb67 Updated Copyright for 2017 2017-03-13 12:17:16 +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
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
26a5b00567 Updated Utils.HasBanExpired to use new Ban fields 2017-02-21 22:21:28 +10:30
White
b0d9407f52 Fixed tabbing in Utils.HasBanExpired 2017-02-21 21:43:19 +10:30
Lucas Nicodemus
b4f37a60c9 Merge branch 'general-devel' into mintaka 2016-12-14 10:02:02 -07:00
Lucas Nicodemus
f13d8b51c6
Fix Main.rand not being initiated with UnifiedRandom 2016-12-12 13:20:55 -07:00
Lucas Nicodemus
678f6c7cf8
Update to Mintaka (thanks @enerdy) 2016-12-06 17:36:44 -07:00
DogooFalchion
8f1adcce4d Who knew readme.io was so difficult :D 2016-10-26 18:50:48 -04:00
DogooFalchion
c35389f9f8 Break Item dump into versions. Readme.io 400kb limit O_o 2016-10-26 18:08:07 -04:00
DogooFalchion
1a622f241f Fix formatting for readme.io 2016-10-25 22:20: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
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
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
DogooFalchion
fcca88c2d6 Add support for start of line colors and terraria chat tags being nested. 2016-10-23 14:01:36 -04:00
Lucas Nicodemus
a0c4864567
Removed all obsolete methods from TShock 2016-10-23 06:09:17 -06:00
DogooFalchion
31794b6a27 ShowFileToUser shouldn't assume the file is in the TShock folder. Use the file path variables where we can. Use smart text instead of removing color parsing. 2016-10-22 19:01:27 -04:00
White
09bbf8abe8 Removed colour parsing from the ShowFileToUser method.
Also added an info log message if a file contains the old format.
Fixes #1314
2016-10-20 21:03:25 +10:30
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
Enerdy
e31cdfb7d5 Handle the MassWireOperation packet. Fixes #1190 2016-05-28 19:16:52 +01:00
Enerdy
aa419283a9 Add PlayerPermission hook, replace p.Group.HasPermission by p.HasPermission everywhere possible. 2016-01-11 14:37:02 +00:00
tysonstrange
6abff7e3df Update Utils.cs
/reload doesn't reload proj and tile bans.
2015-09-22 20:54:34 +10:00
Enerdy
2320613a1d Add GetItemFromTag(), null check on item names. 2015-07-29 15:27:16 +01:00
White
1ab66128ab Added Moon Lord to SpawnBoss 2015-07-16 20:06:54 +09:30
Enerdy
63bf256abf Fix bubble tile triggering noclip checks. 2015-07-15 03:12:56 +01:00
Enerdy
6495496cd4 Fixes /who -i and /userinfo. Also updates the submodule. 2015-07-09 03:23:37 +01:00
Enerdy
fd96f9d65c Fix /buff + Update Submodule 2015-07-06 17:07:16 +01:00
Enerdy
eca0c03189 Add ColorTag() and ItemTag() to Utils.cs, to make those easier to use across plugins and possibly TShock in the future. 2015-07-06 00:46:56 +01:00
White
63bf31ded5 Removed Disconnect handling in NetHooks_SendData 2015-07-05 12:12:31 +09:30
Enerdy
0e23ffa1a6 Fixed issues with BitsByte. TShock should compile again. 2015-07-04 17:17:26 +01:00
White
44ad0c68b8 Change TSPlayer.UserID to TSPlayer.User.ID, as well as refactoring some of UserManager.cs. Solves #916 2015-05-01 11:18:37 +09:30
Lucas Nicodemus
342921b3ed Document Utils.cs & UserManager.cs
Deprecated Utils.Random()
2015-04-19 21:14:15 -06:00
Lucas Nicodemus
ce4585d151 🍰 Moved indentation back for deprecated algo block 2015-04-18 13:51:53 -06:00
Lucas Nicodemus
5e4651e9c4 Deprecate ValidString & SanitizeString methods.
They're unused and don't support UTF-8.
2015-04-17 04:20:48 -06:00
Lucas Nicodemus
37b5a52fdb Move all TShock usages to use User.VerifyPassword() 2015-04-13 11:16:21 -06:00
Lucas Nicodemus
ed34a87c3f Migrate some manual password creation to BCrypt
Note that several times, user.Password was set to a plain text password,
but then later changed to a hashed password, creating data inconsistency.

This also changes User.Password to private set to prevent further accidents.
2015-04-13 10:44:45 -06:00
Lucas Nicodemus
1dae83d1b6 Fix TryParseTime documentation again? 2015-04-12 23:43:39 -06:00
Lucas Nicodemus
417ffbc740 Updated XML documentation for several methods 2015-04-12 23:39:04 -06:00
Zack Piispanen
904c44a1b6 Fix UseServerName config options, to now work properly. Remove duplicate unused code. Ensure that everywhere we use Main.WorldName, we are sending the config server name. 2015-04-09 22:58:32 -04:00
Lucas Nicodemus
eda5ba312e Remove deprecated GetUsers() and IDs method
Thanks @Enerdy
2015-03-14 13:38:22 -06:00
Lucas Nicodemus
d971db165c Remove several obsolete shims
No need to keep obsolete shims in for several versions of TShock
2015-02-28 20:15:56 -07:00
Lucas Nicodemus
d8f1324836 Utils.cs now has uniform tabs 2015-02-28 19:47:27 -07:00
Lucas Nicodemus
1be5f6fdc2 Remove remaining obsolete references to Log vs TShock.Log 2015-02-28 19:42:26 -07:00
Zack
f9bf470b1d Tick version and update copyright 2015-01-28 15:29:13 -05:00
Zack Piispanen
444af6cf57 Update to latest TSAPI. Changed update manager to use same code as stat tracker, which hopefully doesnt break on mono. Also changed it to not check every update to see if time has passed. Made packetbufferer async for windows and if specified for mono. Fixed maxspawns error message to explain range. Ticked version. 2014-09-09 03:49:57 -04:00
Enerdy
7135217315 Fix Utils.GetPrefixById 2014-07-20 01:54:02 +01:00
Zack
fb451c6d49 Update license header for 2014 2014-07-10 21:48:33 -04:00
Zack
915e791406 Initial work to move all Server Side Character code to its own module. 2014-07-10 21:09:32 -04:00
MarioE
16cf364d59 Add user account banning, similar to offline bans
Also removed logging of bans since... the command is logged as well
2014-07-02 13:34:15 -04:00