083a35f970
Modernize property type declarations
2022-06-04 18:16:32 +01:00
a38a5c67f1
GiveCommand: show the search term in audit message, instead of the ID
...
this is more useful in the longer term.
2022-05-21 15:49:17 +01:00
d4b7f66e15
Promote some constructors
2022-05-17 22:34:58 +01:00
3e1246acff
FormattedCommandAlias: Invoke commands directly with pre-parsed arguments
...
this resolves a range of issues with quoted arguments when using placeholders, as well as improving performance (no redundant combine -> re-parse needed).
2022-05-10 16:03:09 +01:00
4c29f98292
"Fix CS" are going to be my final words ...
2022-05-10 15:39:44 +01:00
5cc0d92eff
Fixed PHPStan errors
2022-05-10 15:38:26 +01:00
a5ebbf8adb
Fix CS again
2022-05-10 15:23:55 +01:00
217385efb9
CommandStringHelper::parse() returns a non-empty list of strings
2022-05-10 15:22:46 +01:00
f70c36baf9
SimpleCommandMap: parse config-defined commands according to the same rules as manually typed commands
2022-05-10 15:21:39 +01:00
d2e421c424
CommandStringHelper: fixed backslashes not being removed from escaped quotes
...
this time, without breaking eval commands ... stripslashes likes to strip ALL backslashes, whether they are actually escaping something or not, which is super annoying.
2022-05-10 15:09:57 +01:00
72cfea3a63
SimpleCommandMap: extract command string parsing code into its own unit
2022-05-01 22:05:38 +01:00
a353872327
FormattedCommandAlias: match placeholders using regex
2022-05-01 21:16:13 +01:00
f4d71d0b48
FormattedCommandAlias: reduce complexity of buildCommand()
2022-05-01 21:04:38 +01:00
dca457b1e0
Modernize property declarations in pocketmine\command namespace
2022-04-25 13:09:14 +01:00
453bf6d73b
fix build
2022-04-10 21:37:10 +01:00
3353a00641
List command aliases in /help <commandName>
2022-04-10 21:32:46 +01:00
ab93135b84
Merge branch 'stable' into next-minor
2022-03-22 15:49:58 +00:00
b4e1edaa64
CommandSender: provide more detailed types for getScreenLineHeight() and setScreenLineHeight()
2022-03-09 17:17:51 +00:00
ba05b4f024
Whitelist command now kicks non-whitelisted online players ( #4774 )
...
closes #3868
2022-03-03 18:15:21 +00:00
d60dba2de0
DumpMemoryCommand: fixed memory dump dir
2022-02-20 20:39:53 +00:00
2f32bd877a
Replace disallowed operators in src/command/
2022-01-20 16:49:58 +00:00
661848c5e7
fix more EOF newlines
2022-01-07 20:39:43 +00:00
16fd5456aa
Merge branch 'stable' into next-minor
2021-12-18 00:39:58 +00:00
93caf72f34
KickCommand: Add missing space
...
closes #4660
closes #4661
2021-12-17 21:09:14 +00:00
a41404bd8a
Allow gamemode strings for gamemode property in server.properties ( #4638 )
...
closes #2692
2021-12-14 22:56:22 +00:00
a94b88424e
Merge branch 'stable' into next-minor
2021-12-10 19:15:57 +00:00
448f26cefc
SimpleCommandMap: do not strip backslashes from unquoted command arguments
2021-12-10 18:27:49 +00:00
f8ed23cc1e
ClearCommand: Add OffHandInventory to $inventories ( #4631 )
2021-12-09 11:19:33 +00:00
889d048ca3
Make use of Utils::assumeNotFalse() in a bunch of places
...
I've stuck to only doing this in the places where I'm sure we should never get false back. Other places I'm less sure of (and I found more bugs along the way).
2021-12-08 19:39:04 +00:00
3728ddbf24
ClearCommand: Cleanup logic & fix vanilla disparities ( #4619 )
2021-12-06 23:57:07 +00:00
4cad552909
Allow input of relative coordinates to setworldspawn command ( #4575 )
2021-11-14 20:07:37 +00:00
d4a382d568
Fix position of setworldspawn command ( #4574 )
...
* The world spawn position is no longer rounded
* Remove round() since the position is always int
2021-11-14 15:40:20 +00:00
cc4bb91fcb
Implemented IPv6 support ( #4554 )
2021-11-08 20:03:28 +00:00
f93b5be789
Added new dynamic StringToEffectParser
2021-11-08 18:49:28 +00:00
08420c2556
Added new dynamic StringToEnchantmentParser
...
this should be used instead of VanillaEnchantments::fromString(), because it allows registering custom aliases.
2021-11-08 18:44:15 +00:00
df39a1ca07
TeleportCommand: do not hardcode world bounds
2021-11-08 17:22:01 +00:00
32a34d2494
Location: change order of constructor parameters
...
to be consistent with Position::__construct() and Location::fromObject() (although Location::fromObject() has no choice, thanks to the anti-feature known as late static binding ...)
2021-10-29 15:43:09 +01:00
c1f843a42c
GarbageCollectorCommand: fixed duplicate MB suffix
2021-10-09 23:57:36 +01:00
ccc881ee58
Switch to custom permission denied message
...
closes #4494
2021-10-09 00:57:15 +01:00
fef8297907
GiveCommand: don't crash on bogus item NBT
2021-10-05 19:09:46 +01:00
fb570970a8
Localize gamemode command errors
2021-10-02 21:22:54 +01:00
30e10c38b6
Localize /help
2021-10-02 20:59:36 +01:00
05dc675d5b
Replace commands.generic.notFound with a custom PM version
...
this also fixes #4379 .
2021-10-02 20:42:59 +01:00
273aa8ab42
Drop useless usage translation strings for commands with no parameters
2021-09-11 17:06:26 +01:00
3b7580688c
Stop auto-translating string descriptions/usages for commands
...
Require usage of Translatable for translations.
2021-09-11 16:46:40 +01:00
0f70348821
Remove noise
2021-09-07 20:31:13 +01:00
d9b9aed2cc
Fixed CS
2021-08-26 15:31:28 +01:00
7919a1a1c5
Drop support for commands with spaces in the names
...
the use case for this is basically zero, since the community prefers implementing their own subcommand systems instead (which are much more flexible).
In addition, allowing spaces in command names makes it extra complicated to display helpful information to the user, such as the command that was actually accepted by the command map (which would be useful for identifying accidental invisible characters / control characters when sending commands).
2021-08-26 15:24:35 +01:00
e140614a63
Localize /gc
2021-08-26 15:06:43 +01:00
47120022c2
Localize messages for /op and /deop
2021-08-26 13:31:19 +01:00