Dylan K. Taylor
3353a00641
List command aliases in /help <commandName>
2022-04-10 21:32:46 +01:00
Covered123
ba05b4f024
Whitelist command now kicks non-whitelisted online players ( #4774 )
...
closes #3868
2022-03-03 18:15:21 +00:00
Dylan K. Taylor
d60dba2de0
DumpMemoryCommand: fixed memory dump dir
2022-02-20 20:39:53 +00:00
Dylan K. Taylor
2f32bd877a
Replace disallowed operators in src/command/
2022-01-20 16:49:58 +00:00
Dylan K. Taylor
661848c5e7
fix more EOF newlines
2022-01-07 20:39:43 +00:00
Dylan K. Taylor
16fd5456aa
Merge branch 'stable' into next-minor
2021-12-18 00:39:58 +00:00
Alexey
93caf72f34
KickCommand: Add missing space
...
closes #4660
closes #4661
2021-12-17 21:09:14 +00:00
Matthew Jordan
a41404bd8a
Allow gamemode strings for gamemode property in server.properties ( #4638 )
...
closes #2692
2021-12-14 22:56:22 +00:00
Matthew Jordan
f8ed23cc1e
ClearCommand: Add OffHandInventory to $inventories ( #4631 )
2021-12-09 11:19:33 +00:00
Dylan K. Taylor
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
Matthew Jordan
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
Dylan T
cc4bb91fcb
Implemented IPv6 support ( #4554 )
2021-11-08 20:03:28 +00:00
Dylan K. Taylor
f93b5be789
Added new dynamic StringToEffectParser
2021-11-08 18:49:28 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
df39a1ca07
TeleportCommand: do not hardcode world bounds
2021-11-08 17:22:01 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
c1f843a42c
GarbageCollectorCommand: fixed duplicate MB suffix
2021-10-09 23:57:36 +01:00
Dylan K. Taylor
fef8297907
GiveCommand: don't crash on bogus item NBT
2021-10-05 19:09:46 +01:00
Dylan K. Taylor
fb570970a8
Localize gamemode command errors
2021-10-02 21:22:54 +01:00
Dylan K. Taylor
30e10c38b6
Localize /help
2021-10-02 20:59:36 +01:00
Dylan K. Taylor
273aa8ab42
Drop useless usage translation strings for commands with no parameters
2021-09-11 17:06:26 +01:00
Dylan K. Taylor
3b7580688c
Stop auto-translating string descriptions/usages for commands
...
Require usage of Translatable for translations.
2021-09-11 16:46:40 +01:00
Dylan K. Taylor
0f70348821
Remove noise
2021-09-07 20:31:13 +01:00
Dylan K. Taylor
e140614a63
Localize /gc
2021-08-26 15:06:43 +01:00
Dylan K. Taylor
47120022c2
Localize messages for /op and /deop
2021-08-26 13:31:19 +01:00
Colin
224d71f272
World: renamed getChunks() to getLoadedChunks() ( #4393 )
2021-08-23 21:23:35 +01:00
Dylan K. Taylor
22316976fa
Introduce next-generation StringToItemParser
...
this isn't specced up with some of the finer features of LegacyStringToItemParser such as metadata parsing, but those are still a work in progress (and probably limited to specific items like durable stuff).
The goal is to unbind these aliases from legacy internal IDs, while also providing a nice flexible way for plugins to add their own items and aliases to the existing system.
This system allows mapping a string to any item at all, irrespective of state, internal IDs, or any of that nonsense. This means it's finally possible to have stuff like lapis_lazuli and bone_meal aliases in commands.
2021-08-23 00:39:20 +01:00
Dylan K. Taylor
a012e7ccc0
VersionInfo: make static methods more constant-like
...
if we could have class constants declared at runtime, these would be constant.
2021-08-16 16:37:36 +01:00
Dylan K. Taylor
039c59856d
Remove % translation prefixes dotted around all over the place
2021-08-15 20:03:38 +01:00
Dylan K. Taylor
dfc82f6820
VanillaCommand: fix bogus mixed typehints
2021-08-15 19:32:33 +01:00
Dylan K. Taylor
60ac76a3bc
Remove more usages of hardcoded translation keys
2021-08-15 19:22:40 +01:00
Dylan K. Taylor
752d1179a1
Do not rely on random translation keys prefixed with % getting translated
2021-08-15 19:05:05 +01:00
Dylan K. Taylor
715fbc9ee5
fix last remaining non-usages of KnownTranslationFactory
2021-08-15 16:35:51 +01:00
Dylan K. Taylor
789a669395
Rename TranslationContainer -> Translatable
2021-08-15 16:17:46 +01:00
Dylan K. Taylor
8b9d7d6390
Support for nested TranslationContainers
2021-08-14 20:57:13 +01:00
Dylan K. Taylor
804d02b086
TranslationContainer: added prefix(), postfix() and format()
2021-08-14 16:08:22 +01:00
Dylan K. Taylor
fd41a0f510
Remove colors from VersionCommand
...
these will have to stay gone for now, until we have some way to terminate formatting codes without breaking logger output. (we need &p!! #4364 )
2021-08-12 20:35:34 +01:00
Dylan K. Taylor
2cdd6e634f
New /version format
2021-08-10 19:32:28 +01:00
Dylan K. Taylor
2293bd948d
Added KnownTranslationFactory and use it in as many places as possible
...
this makes translation usage much more statically analysable.
The only places this isn't used are:
- places that prefix translations with colours (those are still a problem)
- places where server/client translations don't match (e.g. gameMode.changed accepts different parameters in vanilla than in PM)
2021-08-10 14:50:40 +01:00
Dylan K. Taylor
bb79797b68
WhitelistCommand: fixed permission checking
...
closes #4349
2021-08-04 20:34:54 +01:00
Dylan K. Taylor
71c6f69fd3
Command: standardise permission checking
...
if subcommands had different permissions, the permissionMessage would not be used.
2021-08-04 20:29:07 +01:00
Dylan K. Taylor
654fc9a2a6
LegacyStringToItemParser: Throw more specific exceptions
2021-07-10 21:03:12 +01:00
Dylan K. Taylor
a888ab0257
GiveCommand: remove useless clone
...
addItem() clones this anyway.
2021-06-30 14:07:58 +01:00
Dylan K. Taylor
f3bd48e6cb
Updated some more hardcoded translation key usages missed by 94e16f416de31b79c93bdc2c6cf84b22d25ba63f
2021-06-30 14:02:55 +01:00
Dylan K. Taylor
94e16f416d
Added KnownTranslationKeys (generated) and start using it
2021-06-29 22:46:04 +01:00
Dylan T
32d7b1e6af
Start using webmozart/pathutil for joining paths ( #4287 )
2021-06-29 19:40:43 +01:00
Dylan K. Taylor
6fb8ac211e
Make GameMode::fromString() and PluginEnableOrder::fromString() return null, instead of throwing exceptions
...
since these are always used for handling userdata, it doesn't make sense for them to throw exceptions.
2021-06-27 20:56:51 +01:00
Dylan K. Taylor
902ea515f7
Separate ID handling from GameMode
...
the aliases of 0,1,2,3 remain for user-interface level compatibility.
2021-06-27 20:32:35 +01:00