Commit graph

94 commits

Author SHA1 Message Date
high
b382125cc5 Removed mousefontchars, valid chars are 0x20-0xA9(32-169)
Added checking to player names too.
2011-07-09 10:00:00 -04:00
Deathmax
718764e533 More race conditions. 2011-07-04 17:32:49 +08:00
Deathmax
061169633d Fix race conditions with saveWorld threading. 2011-07-04 17:20:21 +08:00
Twitchy
a10a0ce6ee Makes server save in background, stops server lag on save
Keeping lag broadcast just in case
2011-07-03 18:27:57 +12:00
high
71a518830c GetGroup wont return null now. *glares at mav* 2011-07-01 16:45:21 -04:00
high
91abde27d2 ConfigFile and ConfigurationManager merged into 1.
Check OnConfigRead for a list of variables that will now be updated when the config file is reloaded.
2011-07-01 13:19:16 -04:00
high
4e87ceb84f Changed to SHA512 2011-07-01 02:09:21 -04:00
Lucas Nicodemus
c5c0a7e506 Out with the new! In with the old! 2011-06-30 20:02:47 -06:00
Lucas Nicodemus
2c5f6387a6 Fixing retarded SHA2 hashing 2011-06-30 19:52:00 -06:00
Lucas Nicodemus
da055867c9 Added basic system for logging in and adding users ingame. 2011-06-30 19:41:37 -06:00
Deathmax
679a28af0a Added /displaylogs. Toggles log output to player who executed the command. 2011-06-24 21:32:04 +08:00
Deathmax
5e7130aa88 users.txt can now use a hostname. 2011-06-23 22:07:34 +08:00
Twitchy
c45696efb2 Changes region allow to use IP addresses rather than names. Cancels out name spoofing. 2011-06-23 16:11:58 +12: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
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
8fa4687f33 Randomized spawn point for mobs (range 50x20 tiles in all directions) 2011-06-17 13:11:28 +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
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
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
1ea6d2e955 Fixed exception in commands crashing the server
Removed Tools.WriteError using Log.Error instead.
2011-06-15 20:54:32 +10:00
ricky
36b33891c9 Using TShock.Players instead of Terraria.Main.Players 2011-06-15 18:58:37 +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
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
high
fc2d04ad9f Merge branch 'master' of github.com:TShock/TShock 2011-06-14 22:52:37 -04:00
high
ce38ac1895 Fixed kill tile crash when switching to vector2 2011-06-14 22:52:21 -04:00
ricky
b1bde376e5 Fixed /rules on console crashing the server 2011-06-15 12:38:08 +10:00
high
e9dd445055 Console can now use ingame commands. Although they are the chat commands so right now some wont work like the ones that spawn bosses at you, etc. 2011-06-14 21:44:32 -04: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
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
7c56524a0d typo 2011-06-14 18:23:54 -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
fff6e1bcbc Changed Group. This isn't java. Don't use accessor/mutator methods. Use properties. 2011-06-14 17:06:17 -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
6411e71cee Added AdminChatPrefix configuration option.
Added AdminChatRGB configuration option.
Tweaked how broadcast works, now clamps RGB values to prevent overflows.
Added a new permission, "adminchat," that defines who is affected by the AdminChatPrefix and the new AdminChatRGB (which is a rgb color spectrum for the chat color of admin's text).
Closes #72
2011-06-14 02:56:04 -06: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
high
c268118c9c Revert "Added DNS resolution for hostnames (no-ip and the like)."
This reverts commit b32e11a49f.
2011-06-13 21:55:36 -04:00
Shank
b32e11a49f Added DNS resolution for hostnames (no-ip and the like). 2011-06-13 15:20:17 -06:00
Shank
169950d1fd Added year and author name to GPL ness. 2011-06-12 01:20:20 -06:00