919 Commits

Author SHA1 Message Date
UnknownShadow200
75f5bafffb Fix /nick not showing the part after an '=' in an nick. 2016-03-16 10:47:47 +11:00
UnknownShadow200
4705eb6ddc Add LevelItem to cleanup last of hardcoded stuff from /buy, /eco and /store. Also fix /undo not working for large timespans. (Thanks goodlyay) 2016-03-16 10:00:28 +11:00
UnknownShadow200
2e0183e57d Now /highlight just shows red if new block is air, otherwise green. (None of that strange if 'curTile == air') 2016-03-15 23:54:41 +11:00
UnknownShadow200
6bcf192a3b Add RankItem to the economy. 2016-03-15 23:28:49 +11:00
UnknownShadow200
bb3d6c7f66 titlecolor/color/title now use the new item code. 2016-03-15 22:45:07 +11:00
UnknownShadow200
c2f4132168 Implement ColorItem, TitleColorItem, and TitleItem for the new economy system. 2016-03-15 22:24:32 +11:00
UnknownShadow200
8695d90945 Pack Level.UndoPos(saving 2 bytes) and Level.BlockPos(saving 2 bytes) more efficiently, reducing memory usage even further. 2016-03-15 14:55:09 +11:00
UnknownShadow200
290189d3c4 Cleanup /freeze and /trust. 2016-03-15 13:58:15 +11:00
UnknownShadow200
da36623a53 Use Economy.Settings.Enabled instead of some group.commands.contains hackiness. 2016-03-15 12:19:09 +11:00
UnknownShadow200
82a08e6b7e The /write command is now a drawop. (Does not use player brush though) 2016-03-14 23:12:35 +11:00
UnknownShadow200
e15b8f1d94 Fix in the gui changing the extra command index (when the current additional permission index is greater than the new command's max additional permission index) causing the server to crash. 2016-03-14 22:52:15 +11:00
UnknownShadow200
f202f68a8b More proper checking for CanSee, combine /hide and /xhide's code. 2016-03-14 21:57:44 +11:00
UnknownShadow200
c76d8edb82 Combine /eco stats into /money, rename /money to /balance (with the shortcut of /money still) 2016-03-14 21:18:59 +11:00
UnknownShadow200
9b645b6e0d Separate /eco info into a /store command. 2016-03-14 21:08:21 +11:00
UnknownShadow200
cb4890cb4d Cleanup /take. 2016-03-14 19:45:38 +11:00
UnknownShadow200
69f5bdefc7 Cleanup /economy, separate into a /buy command. 2016-03-14 19:25:20 +11:00
UnknownShadow200
72e0bdd7fc Separate /economy into separate functions. It's still an utter mess though. 2016-03-14 16:47:08 +11:00
UnknownShadow200
21ea77eba9 Cleanup /pay. 2016-03-14 16:23:14 +11:00
UnknownShadow200
24b220ff7d Cleanup a number of the economy commands. 2016-03-14 16:02:50 +11:00
UnknownShadow200
d8298a5010 Initial support for message types, use %S and p.FullName in more places. 2016-03-14 14:02:57 +11:00
UnknownShadow200
e169d19071 Fix bug when round was still considered to be as 'in progress', even though the 'error: need two or more players' message was shown. Modularise some games code more. 2016-03-14 13:28:46 +11:00
UnknownShadow200
21c5a9c25b Fix random level picking not being random. 2016-03-14 10:44:26 +11:00
UnknownShadow200
e68cf4edf6 Cleanup level choosing code, also fix block changes in zombie survival being permanently saved. 2016-03-14 10:31:17 +11:00
UnknownShadow200
0e36b31505 Use generic ShouldSaveLevelFile(), also use LevelInfo.Loaded.Items in most places. 2016-03-14 10:04:53 +11:00
UnknownShadow200
e8471cdf30 Create VolatileArray class, that is used for both online players and loaded levels. 2016-03-14 08:12:50 +11:00
UnknownShadow200
c9ae84d5f6 Fix bounties for zombie survival. 2016-03-13 23:18:22 +11:00
UnknownShadow200
50f43e5bd2 Add /zg hitbox to allow configuring hitbox detection distance, more code cleanup. 2016-03-13 22:52:21 +11:00
UnknownShadow200
c598df0006 Modularise /zg. 2016-03-13 21:38:33 +11:00
UnknownShadow200
42300d5617 Remove usage of class fields in /copy and /drawimage (can be used by multiple people independently now), also fix /hackrank only worked once for the entire duration of the server. 2016-03-13 20:06:58 +11:00
UnknownShadow200
2cfaaa5afc Cleanup infect messages code (so they can be eventually extended to player messages), use DisplayName instead of name in end of round messages. 2016-03-13 12:50:33 +11:00
UnknownShadow200
ab6c4288bc More code cleanup for zombie survival. 2016-03-13 12:31:59 +11:00
UnknownShadow200
6b04139c5b Modularise core zombie code some more, poll player positions every 50ms instead of every 500ms, also rounds start after 30 seconds not two minutes. 2016-03-13 10:51:01 +11:00
UnknownShadow200
2752a9e018 Add /bounties, start work for /bounty. 2016-03-13 10:27:08 +11:00
UnknownShadow200
0f2d42301a Only show zombie survival commands in /help when zombie survival is active, start basis for game teams. 2016-03-12 23:40:09 +11:00
UnknownShadow200
723aa56e57 Quick fix for rank group colour being hidden in the gui. 2016-03-12 22:15:35 +11:00
UnknownShadow200
2f2a62cf45 Prettify gui. 2016-03-12 22:01:54 +11:00
UnknownShadow200
561c3bf597 Rename some controls in the properties window to more logical ones. 2016-03-12 18:23:30 +11:00
UnknownShadow200
b71918e34f Add static CaselessEquals/CaselessStarts extension methods, remove the useless 'ignore omnibans' button. 2016-03-12 17:33:42 +11:00
UnknownShadow200
69eb45492e Quick fix for NullReferenceException in properties gui. 2016-03-12 16:55:55 +11:00
UnknownShadow200
9c2d3f14bf Shave two bytes off each undo entry, reduces memory usage even further. 2016-03-12 16:43:50 +11:00
UnknownShadow200
1d48c3822a Minor performance optimisations for /undo, fix missing some block updates if we only undid for a small amount of time. 2016-03-12 14:10:48 +11:00
UnknownShadow200
7dd3f578e7 Majorly optimise /undo and /redo - less memory and CPU usage, less bandwidth usage, and less likelihood of overloading the server. 2016-03-12 13:41:33 +11:00
UnknownShadow200
fe0b16b33f First pass of optimisations for /undo - use O(1) lookup instead of O(n) lookup for Block.canPlace. 2016-03-12 12:16:42 +11:00
UnknownShadow200
5f0146da3e Use BulkBlockUpdate to reduce bandwidth consumption, also create a BulkBlockSender class for future usage elsewhere. 2016-03-12 11:21:42 +11:00
UnknownShadow200
aa85421070 Parameterised queries now use independent instances, thus avoiding the problem of multiple queries mixing up the old static parameters list. 2016-03-12 07:38:59 +11:00
UnknownShadow200
b919ed98a6 Cleanup initalising commands, use much nicer GetTypes() instead of hardcoding every single command (Thanks Xeonaion). Remove /heartbeat and also remove /interval as its license explictly prevents us from modifying its source code. 2016-03-11 21:55:11 +11:00
UnknownShadow200
786d197b12 Merge pull request #115 from MCSoup-classic/master
Fix "^detail.user=" exploit
2016-03-11 20:11:53 +11:00
UnknownShadow200
74116ee8f7 Remove seed from random rainbow brush, start work on adding a random brush. 2016-03-11 19:35:29 +11:00
UnknownShadow200
7d22d75111 Cuboid modes holes and random should read given arguments. (Thanks goodlyay) 2016-03-11 19:21:12 +11:00
UnknownShadow200
ded5647e6d Spin command now rotates origin point correctly. (Thanks goodlyay) 2016-03-11 18:46:33 +11:00