1644 Commits

Author SHA1 Message Date
UnknownShadow200
c02e2d96d9 The great drawop rewrite. (Part 1) 2016-08-04 17:26:47 +10:00
UnknownShadow200
a3ee120e61 Combine simple brushes code into one files. 2016-08-04 12:35:09 +10:00
UnknownShadow200
3c3e16c1e3 Refactory all brushes into Brush code and BrushFactory code. 2016-08-04 12:32:01 +10:00
UnknownShadow200
b3ae2052d1 Start work on separate brush factory code (So we can validate arguments at the time the player first does /z, instead of by the time they have placed their second block. 2016-08-04 11:42:58 +10:00
UnknownShadow200
fdb00cadc1 Space wars II: Revenge of the Regex 2016-08-04 00:39:41 +10:00
UnknownShadow200
b923824dd4 Mark/Place should default to held block instead of stone. (Thanks canadacanucks01), also use the fact that clients with HeldBlock CPE ext update the held block in every position movement packet. 2016-08-03 23:57:26 +10:00
UnknownShadow200
e89d776e3e Now actual block bound (e.g. door/bird_blue) is logged to the BlockDB. (Thanks 123DMWM) 2016-08-03 23:45:03 +10:00
UnknownShadow200
e2c6a6212a Fix /copy cut always showing 'copied 0 blocks'. 2016-08-03 23:14:42 +10:00
UnknownShadow200
6f27cdc5fb Since people seem to be confused by the 'Someone logged in as you' message, now just show a '(reconnecting)' message. 2016-08-03 23:02:31 +10:00
UnknownShadow200
6f0a9e0abf Fix ExtInfo packet from last commit. 2016-08-03 21:31:48 +10:00
UnknownShadow200
d8e8159d8c Ensure PacketSize includes opcode. 2016-08-03 21:11:07 +10:00
UnknownShadow200
32616884ad Avoid unnecessary array copying. (Untested) 2016-08-03 20:48:16 +10:00
UnknownShadow200
2e4e314f5e Tidy up HandleMessage. 2016-08-03 20:09:27 +10:00
UnknownShadow200
ef53875460 Rewrite /pause to use main scheduler, instead of a separate timer. 2016-08-03 19:36:26 +10:00
UnknownShadow200
aeb4ac8fd8 Use Player.Message in more places so things work from IRC and console. 2016-08-03 19:15:07 +10:00
UnknownShadow200
59c0d50f2a Fix level.properties not saving after doing /env fog -1, use 66 instead of 128 for size of bindings array. 2016-08-03 18:15:45 +10:00
UnknownShadow200
d3e1381f8d Get rid of code duplication in /clones. 2016-08-03 09:37:40 +10:00
UnknownShadow200
3603893216 Now if only [block] is given for replace/replacenot/replaceall, it replaces that block with your current held block. 2016-08-03 09:32:52 +10:00
UnknownShadow200
93b70cbebc Make /ban /unban and /setrank use the same rank changing method. 2016-08-02 20:17:43 +10:00
UnknownShadow200
c2a318ea1d Now do partial rank name matching in /viewranks 2016-08-02 19:51:32 +10:00
UnknownShadow200
4336855f80 Less LINQ usage. 2016-08-02 19:28:22 +10:00
UnknownShadow200
b16c64eb62 Add some comments to PlayerInfo class. 2016-08-02 19:21:01 +10:00
UnknownShadow200
7b50b25c8a Now /voice no longer shows + before their name in chat. 2016-08-02 18:58:17 +10:00
UnknownShadow200
c9543e30a0 Bot ids are now per-world instead of a single global list, fixes having too many bots causing issues. (Thanks goodlyay) 2016-08-02 18:42:13 +10:00
UnknownShadow200
22003a321c Use safer method for retrieving next player id. 2016-08-02 18:27:21 +10:00
UnknownShadow200
b297191501 Turns out MySQL uses NULL instead of an empty string for the default empty value for totalCuboided column. 2016-08-02 12:46:46 +10:00
UnknownShadow200
f484469b3f Make sure to always init time spent playing to 1 second before checking wit hthe database. 2016-08-02 12:36:56 +10:00
UnknownShadow200
6bcb988dfb Fix when integer/long column is an empty string breaking PlayerData.Load, causing a stats reset for that player. 2016-08-02 10:27:03 +10:00
UnknownShadow200
8c51525fb9 Ensure that SendRawMap sends map in threadsafe way, thus avoiding client crash when doing /reload and then another /reload while the first map was still being sent. 2016-08-02 07:43:06 +10:00
UnknownShadow200
a79adc7dab Also show most placed/deleted/drawn in /top. Still need to fix /pe though. 2016-08-01 00:15:57 +10:00
UnknownShadow200
54e9afe747 Now TotalPlaced/TotalDeleted is saved to the database (packing into the totalCuboided and totalBlocks columns). Breaks /pe though. 2016-07-31 23:54:22 +10:00
UnknownShadow200
e4ace08a91 Start tracking total placed and total deleted, not yet saved to the database though. 2016-07-31 22:35:14 +10:00
UnknownShadow200
366551c28c Cleanup PlayerInfo and make it pwetty. 2016-07-31 21:55:04 +10:00
UnknownShadow200
a30dadfa1c Make adding to the BlockDB threadsafe. 2016-07-31 14:17:07 +10:00
UnknownShadow200
a5c06065ca Start tracking total blocks drawn in /whois. 2016-07-31 14:02:54 +10:00
UnknownShadow200
e5d8e0e95e scale movement steps for bots with update interval time, so bots appear to always move at same speed. 2016-07-31 00:19:27 +10:00
UnknownShadow200
64f54d0e44 Fix bot jumping to actually work, cleanup PlayerBot code. 2016-07-30 23:39:27 +10:00
UnknownShadow200
5e4a189511 Make bot movement not use 90% cpu on mono and also make it consistent movement speed regardless of position sending interval, partially addresses #205. 2016-07-30 16:54:18 +10:00
UnknownShadow200
036e758e38 Move Hunt/Kill to Instructions class. 2016-07-30 16:12:42 +10:00
UnknownShadow200
3a0c852ab6 Refactor bots code to use separate Instruction class. 2016-07-30 13:02:15 +10:00
UnknownShadow200
b15e598250 Now /server restore no longer reads the entire file in one go. (Avoids running out of memory for big databases) 2016-07-29 15:01:00 +10:00
UnknownShadow200
f2d6b6c283 Make /server restore actually sort of work. 2016-07-29 13:57:11 +10:00
UnknownShadow200
367cefa97b Fix /server backup lite for windows. 2016-07-29 13:35:21 +10:00
UnknownShadow200
49a7a1ab03 Fix PluginManager.Unload erroring on mono. 2016-07-29 10:05:33 +10:00
UnknownShadow200
23b0d3fcc9 Now make /zg start on level you are currently on, and also globally announce the level zombie survival is running on. 2016-07-29 09:58:55 +10:00
UnknownShadow200
d7b53bebea Show map Zombie survival is running on in /zg status. 2016-07-29 08:59:22 +10:00
UnknownShadow200
2a4061b61c If a player is both banned and tempbanned, /unban should remove both bans. Also fix name colour in tab not being updated when doing /unban. 2016-07-29 08:54:47 +10:00
UnknownShadow200
b188c12172 Make perbuild/pervisit/perbuildmax/pervisitmax show actual rank name instead of the LevelPermission enum value (thanks Joshim4), also fix not showing multiple level matches for those commands too. 2016-07-29 08:46:49 +10:00
UnknownShadow200
7116c49e8f Now /unban partially matches player names. 2016-07-28 23:13:15 +10:00
UnknownShadow200
cb51be2d6a Add initial ThreadSafeCache class, also do Database.TableExists checks for zones/portals/messages. 2016-07-28 22:07:14 +10:00