705 Commits

Author SHA1 Message Date
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
Rasmus
d35243f39b Fixes 2016-03-11 07:04:07 +01:00
UnknownShadow200
7cfc021420 Majorly cleanup /impersonate. The SendIt function only worked for online players, yet the Use method still tried to handle offline players.. ugh. 2016-03-11 12:41:18 +11:00
UnknownShadow200
b18919d08c Cleanup /fakerank. 2016-03-11 12:23:06 +11:00
UnknownShadow200
464d66443f Update more commands to use PlayerInfo.FindOrShowMatches, cleanup some commands. 2016-03-11 11:59:02 +11:00
UnknownShadow200
ec0080c586 Merge branch 'master' of github.com:Hetal728/MCGalaxy 2016-03-11 11:05:07 +11:00
UnknownShadow200
573fcbac59 Use PlayerInfo.FindOrShowMatches in more places, cleanup /oprules and /opstats. 2016-03-11 11:04:53 +11:00
UnknownShadow200
6a5cb14b5c Add PlayerInfo.FindOrShowMatches to avoid the unhelpful 'player is offline' when multiple players match the input, also cleanup /rules. 2016-03-11 09:12:16 +11:00
Rasmus
b13bb96d17 Fix "^detail.user=" exploit
Try it on a server with CC and you will see the reason.
2016-03-10 16:58:08 +01:00
UnknownShadow200
70739f5d15 Fix torus missing blocks, also modularise zombie game code more. 2016-03-10 23:49:03 +11:00
UnknownShadow200
9e4eed36b1 Remove references to mcgalaxy.tk/mcgalaxy.ml, modularise Server.cs more, also updating staff list no longer blocks the main thread. 2016-03-10 23:08:38 +11:00
UnknownShadow200
17eb068d51 Quick fix for /paste throwing a NullReferenceException. (Thanks goodlyay) 2016-03-10 18:30:27 +11:00
UnknownShadow200
fbd3db48eb Update help for all drawing commands, add help for brushes. 2016-03-10 17:51:59 +11:00
UnknownShadow200
3bb6f9aa45 Add /replacebrush and /replacenotbrush. 2016-03-10 13:23:12 +11:00
UnknownShadow200
bcaf2e43d3 Cleanup /replace, /replacenot, and /replaceadd commands to be more modular. 2016-03-10 12:49:06 +11:00