Commit graph

412 commits

Author SHA1 Message Date
high
e47481210e updated to api v1.4 2011-06-17 15:32:54 -04:00
high
fe4449a436 Updated bins v1.4 2011-06-17 15:31:01 -04:00
ricky
d5875810a1 GetItemByName and GetNPCByName return only one item if full name match, so names like "silver brick" will now work instead of warning multiple match found ("Silver Brick" and "Silver Brick Wall") 2011-06-18 02:48:05 +10:00
ricky
ea0c091355 Added RevertKillTile to TSServerPlayer 2011-06-18 02:11:02 +10:00
ricky
90474920cd Fuck maybe I should not try to make multiple changes at the same time 2011-06-17 22:30:46 +10:00
ricky
e962a33159 All level logging for debug dll only and info level for release dll. 2011-06-17 21:00:30 +10:00
ricky
9e7d11a97f Sync client if they are not allowed to use water/lava
Added log if player tries to use spike if they are not allowed to
2011-06-17 20:21:46 +10:00
Deathmax
b7ee450df8 Added 'canspike' permission, spikes can't be placed without it. 2011-06-17 17:35:12 +08:00
ricky
701659f62a Increased the area used for random spawn points. (mob spawn area now 100 tiles right/left and 50 tiles up/down of player) 2011-06-17 18:53:04 +10:00
ricky
99cafd359e Removed unused GetItemID from TShock.cs (Use GetItemByID, GetItemByName or GetItemByIdOrName in Tools.cs) 2011-06-17 16:20:34 +10:00
ricky
bf49ae7b99 Added InventorySlotAvailable to TSPlayer
Using TSPlayer.GiveItem from /item and /give
Fixed TSPlayer.GiveItem not setting stack size
2011-06-17 16:17:28 +10:00
ricky
4dc5d7f58e Added GiveItem in TSPlayer
/heal using GiveItem from TSPlayer
Added GetItemById and GetItemByName in Tools
2011-06-17 15:28:23 +10:00
ricky
8dc1bcff0d Added /king to spawn king slime.
/eater, /eye, /king, /skeletron and /hardcore accept an optional amount arg
/skeletron changes time to night before spawning (still have to set time manually if using /spawnmob "Skeletron Head")
2011-06-17 14:29:48 +10:00
ricky
e1aa43179b Added an optional bool arg to /butcher to toggle whether to kill friendly monsters (bunnies/goldfish). Default is killFriendly (/butcher false to save all goldfish and bunnies). 2011-06-17 13:42:39 +10:00
ricky
4ac4571bb1 Fixed /password, /p and /me throwing IndexOutOfBoundsException when no text is entered. 2011-06-17 13:28:13 +10:00
ricky
8fa4687f33 Randomized spawn point for mobs (range 50x20 tiles in all directions) 2011-06-17 13:11:28 +10:00
ricky
b290802e6a Errr forgot the for loop for amount 2011-06-17 11:28:09 +10:00
ricky
51aa337839 Added support to spawn all types of slimes (have to use the full exact name)
Added SpawnNPC in TSServerPlayer
Warn user if multiple mob with name are found
2011-06-17 11:21:37 +10:00
ricky
7bccfbe441 Added Disconnect, SendTileSquare, SetPvP to TSPlayer
Added SetBloodMoon, SetTime, StrikeNPC to TSServerPlayer
2011-06-17 02:09:30 +10:00
ricky
5a0b00b398 HackedHealth method now takes in TSPlayer instead of int 2011-06-17 02:09:28 +10:00
ricky
c2d8461fb8 Removed unused UpdateInventories and UpdatePlayers methods from TShock.cs 2011-06-17 02:09:25 +10:00
high
b64b6e7664 updated the api bin 2011-06-16 11:33:53 -04:00
high
bde8bc8bf2 Merge branch 'master' of github.com:TShock/TShock into sql 2011-06-16 10:49:09 -04:00
high
effe7b0f9b Changed references path 2011-06-16 10:48:33 -04:00
high
3b516da61b Moved bins 2011-06-16 10:47:53 -04:00
high
d2a17a8805 added bins 2011-06-16 10:46:00 -04:00
ricky
f3be17a911 Moved all GetData checks to GetDataHandlers
Fixed GetBanByName not working
2011-06-16 21:00:54 +10:00
ricky
8d1377c7cf ಠ_ ಠ 2011-06-16 16:17:00 +10:00
ricky
6ed2b5044d Pulled the duplicated code for handling commands into helper method 2011-06-16 14:03:06 +10:00
ricky
ad456ac7b6 Added sm alias for spawnmob 2011-06-16 13:20:27 +10:00
ricky
f84949affa All commands now working from console (some print message that they can't be performed from console)
PlayerDamage accept TSPlayer
Added property to check if TSPlayer is real and if connection for that player is alive
2011-06-16 13:18:48 +10:00
ricky
9ed47768ad Grrrr another ThreadStatic 2011-06-16 12:14:34 +10:00
ricky
15924c543e Notify user if command failed
Fixed /heal not working from server console (cant heal self from console now)
/playing from console now outputs the same as the overridden playing
Using args.Player or args.TPlayer in commands instead of Index
2011-06-16 12:09:50 +10:00
ricky
efc5ed5fcf Dunno why VS makes that change 2011-06-16 10:33:50 +10:00
ricky
07d607a9b6 Fixed json config file changes made while server is running lost if reload is not performed before restart
Fixed unban not saving to file until server shutdown
2011-06-16 10:18:22 +10:00
ricky
bc18550a3f Fixed ForceKickAll using the wrong Player.Active
Fixed logs being sent to non active player
Notify the server console as well when tshock updates are available
Made all command methods private
2011-06-16 10:12:12 +10:00
high
780cb36f30 Added exception handler to loading config. 2011-06-15 19:00:34 -04:00
ricky
9c5bb75ac8 Don't need the testing releated log statement anymore 2011-06-16 01:06:19 +10:00
ricky
a976c51101 ForceKick now takes in TSPlayer instead of int
Removed Tools.GetPlayerIP, use TSPlayer.IP instead
2011-06-16 01:04:28 +10:00
ricky
921f8ad4ee Missed converting some for loops into foreach 2011-06-15 21:02:20 +10:00
ricky
91a0b82d3b Dumbass 2011-06-15 20:56:01 +10:00
ricky
1ea6d2e955 Fixed exception in commands crashing the server
Removed Tools.WriteError using Log.Error instead.
2011-06-15 20:54:32 +10:00
ricky
8d13023dac Grrr paramater assigment, why dont you have final for paramater C#. 2011-06-15 20:25:14 +10:00
ricky
8f1c1ede28 Only log player leaving if they successfully joined 2011-06-15 19:53:22 +10:00
ricky
36b33891c9 Using TShock.Players instead of Terraria.Main.Players 2011-06-15 18:58:37 +10:00
ricky
a8df558fe2 Added IP to TSPlayer 2011-06-15 16:10:27 +10:00
ricky
42905f2317 Broadcast and SendLog to server console as well
Removed writing of log message to console
2011-06-15 15:49:50 +10:00
ricky
43ecc064bd Added Team to TSPlayer
Updated Tools.NewNPC to take in NPCList and TSPlayer
Broadcasting when anti-build or spawn protection is toggled
2011-06-15 15:00:33 +10:00
ricky
f42a23e4c1 Fixed of-nosave not kicking all players 2011-06-15 14:03:32 +10:00
ricky
3ced4fc089 Added ForceKillAll to kick all players. 2011-06-15 13:49:42 +10:00