stevenh
41dbd31aac
Converted all files to LF line endings
2012-02-21 15:56:34 +00:00
stevenh
d34199b17d
Refactored server stop and world save operations fixing race conditions so as to ensure operations always happen in a predicable order. This fixes output not appearing in the console / log for example. This adds TShock.Utils.StopServer method used by IGA, rcon and the RestAPI.
...
Fixed console title set not working
Optimised command line parsing
Made Utils a singleton to enforce the fact that only one copy should ever exist
Added name to /v2/user/read output as users can be found by id
2012-02-20 22:31:16 +00:00
stevenh
098363a9cc
Fixed internal object and DB inconsitencies for modified default groups
...
Fixed console errors for failed parent dependencies of default groups that already exist caused by fb11729547 consistency fixes
Made GroupManager.groups readonly to discourage overwriting it. Could still do with better encapsulation to prevent consistency problems if modified externally.
Added UpdateGroup method to GroupManager
Refactored Group handling of permissions and chatcolor to prevent inconsistent data
Notably:-
* AddPermission now does the right thing when passed the string "!permission"
* Converted ChatColor from method to getter / setter
Added RemovePermission to Group
Refactored GroupManager Permissions handling to ensure consistent data between DB and internal objects
Removed redundent AddGroup method in preference to a default value on the main method
Correct some tabs vs spaces
Added ParentName helper to Group
Fixed inverted parameters to error "Invalid parent {0} for group {1}"
2012-02-16 11:23:39 +00:00
stevenh
2f3bfca082
Fixed how ban logic works so it matches the description of the variables EnableBanOnUsernames & EnableIPBans
...
Now it doesn't prevent bans being created or found but it only actions kicks on join based on the relavent config options.
Changed /unban <player> to only work on names and /unbanip <ip> to only work on ip's to avoid user confusion
Changed error message returned when no bans are found when actioning /unban <player> & /unbanip <ip> to be more appropriate
Fixed formatting of -maxplayers / -players block
2012-02-16 11:08:53 +00:00
Lucas Nicodemus
2c8c5dc7b9
Update TShockAPI/TShock.cs
2012-02-15 16:06:39 -07:00
stevenh
ce5c659e89
Moved RestApi initialisation to main Initialise method so its available early. This helps tools detect a server during its timeconsuming startup. Additional threading may be required to ensure timely responses during high load periods
2012-02-13 22:23:01 +00:00
k0rd
3641c3ca87
Consider command line parameters when /reload command is issued
2012-02-12 23:56:49 -05:00
k0rd
d478810336
-maxplayers or -players cl argument should override config
...
additions to /removespecial
2012-02-12 15:27:23 -05:00
Lucas Nicodemus
ee20946cdd
REST endpoint /v2/users/activelist now null checks and works with 0 players.
...
Fixes #362
2012-02-09 21:43:35 -07:00
k0rd
b6e220e9f2
A player should be teleported to remembered position after he is finished being harassed to login.
2012-02-06 20:17:39 -05:00
Lucas Nicodemus
9df8785415
Undid change to -rest-enabled that would limit the functionality of the startup parameter.
2012-02-04 21:24:53 -07:00
Lucas Nicodemus
ccee8f3ff4
Add some debug output so people know why REST is magically enabled.
2012-02-04 21:22:55 -07:00
Lucas Nicodemus
c1f6204045
Remove duplicated -rest-enabled flags
2012-02-04 20:19:32 -07:00
Lucas Nicodemus
2d12cbe398
Added -rest-enabled and -rest-port command line parameters
2012-02-04 20:19:04 -07:00
Lucas Nicodemus
70e8bb9759
Added -rest-enabled, which will define if the REST API is enabled from command line.
2012-02-04 20:14:34 -07:00
Lucas Nicodemus
7cfc73ea4d
Added -rest-token, which will allow command line creation of a REST token.
2012-02-04 20:09:18 -07:00
k0rd
364d4cb3f6
Send player back to spawn if remembered position puts them somewhere they can't really go.
2012-02-04 18:11:17 -05:00
Zack Piispanen
46a653da99
Added config option for how often to save ssi, and applied that to the save checker.
...
Changed the OnTileEdit hook to take a player as well, so we know who is doing the edit.
Changed the output of the Debug folder to go back to bin\Debug\ since I dont work 3 directories about TShock.
2012-02-04 16:39:36 -05:00
k0rd
f3d4b0c6d1
another change to make remembered position work correctly
2012-01-31 23:00:56 -05:00
Darkvengance aka Sildaekar
fcb44cc62a
Fixed minor error in log name code
2012-01-31 05:02:45 -06:00
Darkvengance aka Sildaekar
9371c4972d
Log's name is now timestamp with yyyyMMddHHmmss.log format
2012-01-31 03:41:25 -06:00
k0rd
436cd058ec
We don't want to revert everything the player has done on the server in case of disable() for tilekill
2012-01-29 08:39:42 -05:00
Zack Piispanen
55a2ba8c35
Merge remote-tracking branch 'remotes/origin/general-devel'
2012-01-27 00:38:42 -05:00
k0rd
b66358bef2
Prevents users from sneaking items onto the server by holding them in their hands when ServerSideInventory is enabled.
2012-01-24 00:07:25 -05:00
Zack Piispanen
ae34636092
Whoops, there's a good reason why we handle the packet...too bad for anyone that wants to modify it after tshock :(
2012-01-23 02:03:19 -05:00
Zack Piispanen
6808f65d25
Removed improper chat packet handling
2012-01-23 01:42:20 -05:00
Lucas Nicodemus
9551179362
Change codename
2012-01-22 02:02:39 -07:00
Lucas Nicodemus
d2732a4b0a
Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
2012-01-22 00:29:38 -07:00
Lucas Nicodemus
f1113675c4
Code Freeze
2012-01-22 00:28:02 -07:00
Lucas Nicodemus
a6cf55229d
Merge pull request #330 from k0rd/master
...
Messy changes to prevent being spammed with permission denied changes
2012-01-21 22:58:07 -08:00
Lucas Nicodemus
c0b2c4eed2
ETA
2012-01-21 23:18:31 -07:00
k0rd
9d0f97851d
TShock will now wait 2 seconds before sending another XXX protected from changes for a given protection type - per user.
2012-01-21 21:15:23 -05:00
Lucas Nicodemus
39c0007c84
Exploit prevention. Previously, the server trusted the client's tileType, now we check it ourselves.
2012-01-21 00:48:24 -07:00
Lucas Nicodemus
c7871cd88f
Remove more debug code
2012-01-21 00:38:44 -07:00
Lucas Nicodemus
51d6693f28
Remove debug code
2012-01-21 00:38:33 -07:00
Lucas Nicodemus
0918675965
Is the debug code just not being called then?
2012-01-21 00:23:53 -07:00
Lucas Nicodemus
c3d37846bd
More work on trying to fix this.
...
Changed MOTD to be a bit more convincing to change.
2012-01-21 00:10:59 -07:00
Lucas Nicodemus
5f31937af7
Getting there
2012-01-20 23:50:09 -07:00
Lucas Nicodemus
940341e7bb
I promise this sort of fixes some of the issues!
2012-01-20 23:40:34 -07:00
Lucas Nicodemus
5a7f5414cd
Whoops, maybe we shouldn't let people kill shit.
2012-01-20 23:28:48 -07:00
Lucas Nicodemus
11802f2a13
Added IceTile system.
2012-01-20 23:25:15 -07:00
Zack Piispanen
efee7caed2
Added ice workaround for players who want to use ice even with canbuild off.
...
This feature is only half done as players still get warned when their ice breaks.
2012-01-20 23:36:27 -05:00
Deathmax
672d360e9d
Merge fail
2012-01-20 14:35:59 +08:00
Deathmax
e879135d21
Remove valid string checks, Terraria seems to check and replace invalid chars by default
2012-01-18 20:55:30 +08:00
Deathmax
44408a25d6
Update to 1.1.2
2012-01-18 19:42:38 +08:00
Zack Piispanen
38011f6364
added a bool to the world save mechanism. This should prevent it from saving 3 times at once. Hopefully thats what was causing server crashes
2012-01-15 17:46:38 -05:00
Zack Piispanen
2a59de5293
Added config options for ignoring projectile bugs. Just turn these on if you get debuffed for projectile update/create/kill messages.
2012-01-15 02:11:23 -05:00
Deathmax
71117ae0b5
Add reasons to all Disable() usages
2012-01-14 10:40:06 +08:00
Deathmax
19aec7ffec
Re-add saveworld hook & broadcast
2012-01-13 16:50:09 +08:00
Deathmax
fcc7cfff50
Some hooks aren't disposed.
2012-01-13 16:33:35 +08:00