Dylan K. Taylor
6424dc9c82
Merge branch '3.6'
2019-02-14 16:04:32 +00:00
Dylan K. Taylor
65529ff2ce
Command: add @throws CommandException
2019-02-14 15:09:41 +00:00
Dylan K. Taylor
c346c45d42
Use regex for command argument parsing, fixes #2266
...
moral of the story: don't abuse functions for things they weren't designed for... lol
2019-02-14 15:07:58 +00:00
Dylan K. Taylor
470879c9bf
Merge branch '3.6'
2019-02-13 14:53:20 +00:00
Jack Noordhuis
27767e7ddb
Verify player name command input, closes #2729 , closes #2749
2019-02-13 14:50:43 +00:00
Dylan K. Taylor
243c12de7c
EffectCommand: fix bounds check, closes #2055
2019-02-13 14:37:40 +00:00
Dylan K. Taylor
3e58708130
Add some missing @throws annotations
2019-02-04 19:50:43 +00:00
Dylan K. Taylor
78dfcc5f2d
Move Effect and EffectInstance to entity\effect namespace
2019-01-28 15:41:07 +00:00
Dylan K. Taylor
0b1bdec3ac
GameMode::fromString() now throws InvalidArgumentException
2019-01-26 17:09:54 +00:00
Dylan K. Taylor
738e310798
Strip out RCON, closes #2686
...
Users should move to the new RconServer plugin instead.
2019-01-23 20:39:16 +00:00
Dylan K. Taylor
6df983da3e
Merge branch '3.5'
2019-01-19 16:24:41 +00:00
Dylan K. Taylor
82dddde159
Remove dead code in /time command handler
2019-01-19 15:15:04 +00:00
Dylan K. Taylor
bc709efb77
Prevent stupidity with /enchant
2019-01-19 15:14:51 +00:00
Dylan K. Taylor
6b7710e62b
Introduce dedicated NBT data exceptions, fix up some corrupted chunk handling
2019-01-19 12:43:47 +00:00
Dylan K. Taylor
e341f3dce2
Level: rename getName() to getDisplayName()
2019-01-17 16:46:56 +00:00
Dylan K. Taylor
5052b75565
Separate Level management functionality from Server, clean up a bunch of mess
2019-01-12 19:11:05 +00:00
Dylan K. Taylor
27761ac26e
Fixed casing: Gamemode -> GameMode
...
it's two words, not one.
2019-01-12 16:19:31 +00:00
Dylan K. Taylor
a756519e6b
Move gamemode constants & functions to their own class
...
future enhancements:
- make gamemode an object containing information about abilities that players have in this gamemode (gamemodes are just predefined ability sets)
- get the magic numbers out of the API
2019-01-12 16:10:14 +00:00
Dylan K. Taylor
f80eeee20f
Merge branch '3.5'
2019-01-05 18:59:13 +00:00
Dylan K. Taylor
93969197f7
Enable status,gc,dumpmemory OOB
...
dumpmemory has been confined to console by default due to the hazards it poses to a running server.
closes #2528
2019-01-05 18:56:57 +00:00
Dylan K. Taylor
adc1069ed2
Merge branch '3.5'
2019-01-04 23:28:44 +00:00
Dylan K. Taylor
4b9a142a5d
Import global functions and constants for enhanced performance
...
This is better for performance because these then don't need to be reevaluated every time they are called.
When encountering an unqualified function or constant reference, PHP will first try to locate a symbol in the current namespace by that name, and then fall back to the global namespace.
This short-circuits the check, which has substantial performance effects in some cases - in particular, ord(), chr() and strlen() show ~1500x faster calls when they are fully qualified.
However, this doesn't mean that PM is getting a massive amount faster. In real world terms, this translates to about 10-15% performance improvement.
But before anyone gets excited, you should know that the CodeOptimizer in the PreProcessor repo has been applying fully-qualified symbol optimizations to Jenkins builds for years, which is one of the reasons why Jenkins builds have better performance than home-built or source installations.
We're choosing to do this for the sake of future SafePHP integration and also to be able to get rid of the buggy CodeOptimizer, so that phar and source are more consistent.
2019-01-04 20:43:15 +00:00
Dylan K. Taylor
0bacf51729
Fix another swathe of number_format() truncation bugs
2019-01-04 19:39:51 +00:00
Dylan K. Taylor
33f6b441d8
Fixed /gc truncating memory freed
...
wtf PHP?
2019-01-04 17:30:35 +00:00
Dylan K. Taylor
e1064a9e36
Merge branch '3.5'
2019-01-04 00:37:48 +00:00
Dylan K. Taylor
d71a543d10
Fixed a bunch of things PHPStan finds unpalatable
...
close #2614 , fix a bunch of docs bugs, fix sendCreativeContents() crash on Human holders, move some inline variable declarations
2019-01-04 00:23:09 +00:00
Dylan K. Taylor
71f123c616
Merge branch '3.5'
...
# Conflicts:
# resources/locale
2019-01-02 21:25:57 +00:00
Dylan K. Taylor
658786f2f6
TitleCommand: fix off-by-one bug in "times" subcommand
2019-01-02 21:04:25 +00:00
Dylan K. Taylor
3c520aa786
Particle no longer extends Vector3
2018-12-16 14:15:41 +00:00
Dylan K. Taylor
ebf9cb3e62
Merge branch 'release/3.5'
2018-12-16 14:13:35 +00:00
Dylan K. Taylor
bf8a8b386e
Allow ~relative coordinates to work in /particle
2018-12-16 14:12:46 +00:00
Dylan K. Taylor
19edacbea9
BanIpCommand: fix crash when banning by playername, closes #2578
2018-12-15 13:59:10 +00:00
Dylan K. Taylor
0028ce0ed2
Merge branch 'release/3.4'
2018-11-04 23:25:05 +00:00
Dylan K. Taylor
1634dd62e3
Don't catch unexpected exceptions during command execution
2018-11-04 23:11:51 +00:00
Dylan K. Taylor
90482e79bc
Merge branch 'release/3.4'
2018-10-21 18:23:54 +01:00
Dylan K. Taylor
6dd2597934
Merge branch 'release/3.3' into release/3.4
2018-10-21 18:17:07 +01:00
Dylan K. Taylor
45c9caa38c
Fixup some formatting issues
2018-10-21 18:15:25 +01:00
Dylan K. Taylor
e9a4acda1d
Merge branch 'release/3.4'
2018-10-21 15:32:57 +01:00
Dylan K. Taylor
b35759cc25
Add /unban and /unban-ip as aliases of /pardon and /pardon-ip
2018-10-21 15:32:38 +01:00
Dylan K. Taylor
ebf5ccea8a
Merge branch 'release/3.3'
2018-09-26 13:12:54 +01:00
Dylan K. Taylor
bb1944ca40
Merge branch 'release/3.1' into release/3.2
2018-09-26 13:12:20 +01:00
Dylan K. Taylor
d1a20ecb4a
CommandReader: Require readline to be explicitly enabled on Windows
...
readline on Windows causes issues with console output corruption. Additionally, PM readline impl is extremely buggy and probably ought to be removed. However, have a hotfix for now.
2018-09-26 13:11:21 +01:00
Dylan K. Taylor
37190c9a65
Apply typehints to all AsyncTask methods
...
Since we're breaking API here anyway, no point in holding back on this.
2018-09-10 15:54:01 +01:00
Dylan K. Taylor
d62e00cc74
AsyncPool: Remove Server dependency (API breaks included)
...
This brings two plugin-breaking changes: AsyncTask->onCompletion() and AsyncTask->onProgressUpdate() no longer accept Server parameters.
This now allows for the functionality of AsyncPool and AsyncTask to be tested outside of a Server.
2018-09-10 15:48:59 +01:00
Dylan K. Taylor
4fb1f8dd76
Merge branch 'release/3.2'
2018-08-25 17:49:28 +01:00
Dylan K. Taylor
fe6d546190
Merge branch 'release/3.1' into release/3.2
2018-08-25 17:49:21 +01:00
Dylan K. Taylor
22fcfffa53
PluginsCommand: remove useless private function
2018-08-25 16:09:51 +01:00
Dylan K. Taylor
7dd53f2397
Replace unnecessary strlen > 0 calls with !== "" checks
2018-08-25 16:07:49 +01:00
Dylan K. Taylor
298259b473
PluginsCommand: clean up garbage code
2018-08-25 16:05:25 +01:00
Dylan K. Taylor
c123f2d10b
SimpleCommandMap: clean up error reporting in registerServerAliases()
2018-08-25 15:43:23 +01:00