ricky
aa9d627f69
Moved Teleport to TSPlayer and added Spawn
...
Warn player teleport is not possible if custom spawn point is set.
/home now take you to spawnpoint (custom if set else main spawn point)
2011-06-21 13:47:31 +10:00
ricky
dd63436d29
Since no matching command was found returning false so other plugin after TShock have chance to handle the chat message.
2011-06-21 13:03:02 +10:00
Twitchy
2811a68002
Merge branch 'master' of git://github.com/TShock/TShock
2011-06-20 18:49:26 +12:00
Lucas Nicodemus
4ae62f53a7
Added it for real this time.
...
Closes #90
2011-06-20 00:28:28 -06:00
Lucas Nicodemus
5b0716c8ee
Added whitelist command.
2011-06-20 00:26:58 -06:00
Lucas Nicodemus
4d200ee24a
Pretty sure that we don't need assume that there aren't other commands from other plugins.
2011-06-20 00:06:03 -06:00
Twitchy
66864f30d0
Allowed plugins to add new commands to TShock dictionary
2011-06-20 17:37:37 +12:00
ricky
4332ea9b73
Issue #102 Fixed /item only using the first argument instead of joining all string for people who don't put quotes around item name with spaces
2011-06-20 10:42:29 +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
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
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
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
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
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
ricky
3af6e990dc
Kick/Ban now take TSPlayer instead of player index
2011-06-15 13:41:49 +10:00
ricky
b1bde376e5
Fixed /rules on console crashing the server
2011-06-15 12:38:08 +10:00
ricky
3f8b78d3b7
Overridden console playing to print tshock player group
...
Kick player before shuting down from console
2011-06-15 12:02:21 +10:00
high
f31bae459e
Fixed GetData now logs exceptions as Terraria will swallow the exception.
...
Removed FindPlayer(int)
Removed Tools.SendMessage
Added TSPlayer.SendMessage to replace it
Changed FindPlayer(string) now returns List<TSPlayer>
2011-06-14 21:08:13 -04:00
high
12946c8a63
Removed pointless unbanip permission.
...
TSPlayer improved.
2011-06-14 19:49:45 -04:00
high
f233ef82e5
Sub classes are ugly as hell.
2011-06-14 19:28:20 -04:00
high
a6f168115a
That FindPlayer function returning -1 or -2 was bothering me so I did a temp fix.
2011-06-14 18:57:08 -04:00
high
43beb99cb7
This is C#, not javascript!
2011-06-14 18:21:14 -04:00
high
966735ec2e
More code tidying.
2011-06-14 18:13:46 -04:00
high
c3bf304c0c
Changed the TSPlayer class.
2011-06-14 16:54:30 -04:00
high
17b2ed7eea
Change Broadcast and SendMessage to use Byte instead of Float
2011-06-14 16:23:33 -04:00
Shank
37d40374be
/rules now follows MOTD formatting rules.
...
Tools.ShowMOTD is deprecated, use Tools.ShowFileToUser instead.
2011-06-14 02:15:18 -06:00
Shank
b8b4b6c8e8
Added /rules, reads from ./tshock/rules.txt
2011-06-14 02:06:04 -06:00
ricky
a1a82745d0
Using Player Damage instead of Kill Me message for /kill
...
Added current value of DisableBuild to the debug-condig output
2011-06-14 12:16:12 +10:00
Shank
feea5700ac
Added command to toggle anti-build.
2011-06-12 02:49:37 -06:00
Shank
169950d1fd
Added year and author name to GPL ness.
2011-06-12 01:20:20 -06:00
Maverick Motherfucker
3a2c6bb314
gpl up in dis bitch
2011-06-11 21:35:29 -07:00
ricky
82470d1cf1
Added message when trying to kill self (1.0.4 doesnt let you kill self using kill me packet)
...
Enable all the cheat comands only if distributationAgent != "terraria-online"
Added spamChecks to output of debug-config
2011-06-11 20:37:29 +10:00
Shank
c690a2d2fc
Added command aliases:
...
- /i
- /who, /online
Closes #63
Closes #62
Kill isn't possible.
Closes #66
2011-06-11 00:43:14 -06:00
ricky
e663698497
Using the maxNPCTypes and maxItemTypes constants from Terraria.Main so we don't have to update everytime new things are added
2011-06-11 09:43:23 +10:00
ricky
3c0cb13222
TShock the string.Format edition specially for high6.
2011-06-11 00:44:11 +10:00