Commit Graph

18875 Commits

Author SHA1 Message Date
pmmp-admin-bot[bot]
09f4626fa6 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18636079241
2025-10-19 21:05:38 +00:00
pmmp-admin-bot[bot]
14bc9f4f8c Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18636079241
2025-10-19 21:05:37 +00:00
Dylan T.
85ddcd17eb Trigger Crowdin upload via RestrictedActions 2025-10-19 19:14:17 +01:00
Dylan T.
e9eeaf9c61 Trigger RestrictedActions Crowdin using cron job
same reason for this as why we trigger the branch sync from here - we need to make sure the cron doesn't get disabled

RestrictedActions can do things this repo can't - the old workflow would've failed because GH Actions doesn't have pull_request write perms here (which we can't grant because it would also allow it to approve PRs)
2025-10-19 18:35:30 +01:00
Remminiscent
c92674a285 Short grass and ferns: add bone meal growth into double variants (#6845) 2025-10-19 17:36:45 +01:00
Dylan K. Taylor
806d88ec20 Player: fixed suspicious ground state check
fixes #3552 and #3553 for non-spectator-gamemode situations
this would've caused problems if setHasBlockCollision(false) was used in other game modes
2025-10-19 00:34:14 +01:00
Dylan K. Taylor
52c0c9a922 Merge branch 'minor-next' into major-next 2025-10-18 18:07:15 +01:00
Dylan K. Taylor
8ef583a7d6 Add usage for remove-dead-translations build tool 2025-10-18 18:07:08 +01:00
Dylan K. Taylor
0932a6857d always CS has something to say 2025-10-18 18:05:42 +01:00
Dylan K. Taylor
c62ba26f39 Restore cmdalias strings for major-next
This reverts commit eb429efe89.
2025-10-18 18:04:28 +01:00
Dylan K. Taylor
5d603f2053 Merge branch 'minor-next' into major-next 2025-10-18 18:04:12 +01:00
Dylan K. Taylor
eb429efe89 These strings are only for major-next 2025-10-18 18:04:03 +01:00
Dylan K. Taylor
efaf549d67 Remove a bunch of dead translation keys 2025-10-18 18:00:57 +01:00
Dylan K. Taylor
a80fe6bdd0 Merge branch 'minor-next' into major-next 2025-10-18 16:00:41 +01:00
Dylan K. Taylor
87afd545fd Merge the Language repo into the main PM repo
the separated language repository has long been a source of inconvenience and annoyance,
particularly for PR contributors, because having to sync two PRs across different repos
for no reason adds unnecessary friction.

In addition, having the language files separate creates unnecessary requirements for
versioning and branching, which could all be avoided if the language strings were managed
directly in this repository.

This change will make it much easier to do new features that require adding new translation
strings, as well as getting rid of the inconvenience of cleaning up older strings.
Translation updates from Crowdin should also be able to be merged more quickly, since they
will have higher visibility on this repository.
2025-10-18 15:55:24 +01:00
Dylan K. Taylor
25e1feadd8 Add 'resources/translations/' from commit '822b73086d50f4dc5eb938d30f29349d10f91c70'
git-subtree-dir: resources/translations
git-subtree-mainline: ca332588b8
git-subtree-split: 822b73086d
2025-10-18 13:36:04 +01:00
github-actions[bot]
822b73086d New translations from Crowdin (#203)
Co-authored-by: dktapps <14214667+dktapps@users.noreply.github.com>
2025-10-18 13:32:27 +01:00
github-actions[bot]
400958d6c9 New translations from Crowdin (#202) 2025-10-18 00:09:50 +01:00
Dylan T.
12ba9d7f85 Fix post-processing regex 2025-10-17 23:12:11 +01:00
Dylan K. Taylor
94ba486f9d Apply pre- and post-processing steps to translations via GitHub Actions
Crowdin doesn't understand {%param}, which affects our ability to do QA on Crowdin directly. It does understand {param}, which is the closest neighbour.
2025-10-17 22:38:39 +01:00
pmmp-admin-bot[bot]
61258bef50 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18604829932
2025-10-17 21:05:54 +00:00
pmmp-admin-bot[bot]
ca332588b8 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18604829932
2025-10-17 21:05:53 +00:00
Dylan T.
6c4718faaf New Crowdin updates (#200)
* New translations eng.ini (Romanian)

* New translations eng.ini (Russian)

* New translations eng.ini (Vietnamese)

* New translations eng.ini (Vietnamese)

* New translations eng.ini (Vietnamese)
2025-10-17 20:58:25 +01:00
Dylan T.
40ecbe82f9 NetworkSession: allow discarding consecutive identical packets without decoding in certain cases (#6715)
This allows packet handlers to tell the network session to discard any following packets if their buffers were identical to the current one.

This is a very conservative and basic limiter. If we start having problems with multiple packets being spammed at once interleaved, this will become ineffective. However, for now, all the known spam bugs are of single packets, and the buffers of said packets are always identical. Dealing with interleaved packets would be quite a bit more complex. This mechanism is very simple and should avoid any negative side effects.
2025-10-16 23:52:23 +01:00
Renz
2d0dd72ae7 Fix StringToItemParser::override() not fully overriding aliases (#6835) 2025-10-16 23:44:52 +01:00
pmmp-admin-bot[bot]
ebcfb34cbe Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18510095782
2025-10-14 21:06:15 +00:00
Asfadavy Aulia A.
14114f6eaf Implement Cactus Flower (#6838) 2025-10-14 14:19:57 +01:00
pmmp-admin-bot[bot]
fbf6758f58 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18478213422
2025-10-13 21:06:14 +00:00
pmmp-admin-bot[bot]
15ac744f7e Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18478213422
2025-10-13 21:06:13 +00:00
Wraith
ef525a66a3 Fix entity AABB size mismatch with vanilla (#6841) 2025-10-13 17:59:52 +01:00
Asfadavy Aulia A.
06a75759bb Implement Copper variant of existing blocks (#6839) 2025-10-13 15:39:50 +01:00
pmmp-admin-bot[bot]
f412a390b8 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18449480978
2025-10-12 21:05:39 +00:00
Pup
32db9f9136 Added Sonic Explosion Particle (#6836) 2025-10-12 02:44:45 +01:00
Dylan K. Taylor
01092fd8a9 Merge branch 'minor-next' into major-next 2025-10-10 23:37:31 +01:00
Dylan K. Taylor
21e0ca5529 Update Composer dependencies (major-next) 2025-10-10 23:36:59 +01:00
Dylan K. Taylor
dbeea83287 Merge branch 'stable' into minor-next 2025-10-10 23:36:23 +01:00
Dylan K. Taylor
d241807752 Update composer dependencies 2025-10-10 23:36:05 +01:00
Dylan T.
9f9bc5fb1a Rework command alias handling, step 1 (#6685)
This PR started out as an effort to decouple Command and CommandMap, but it's turned into a bit more than that.

A summary of changes:

## UX
- Added `cmdalias create`, `cmdalias delete` and `cmdalias list` commands
- `/help` now shows prefixed names such as `pocketmine:help`
- Prefixed command name (e.g. `pocketmine:help`) are now visible to Minecraft clients
- Permission denied messages are now able to show more useful context when e.g. checking subcommand permissions
- Multiple commands claiming an alias make the alias unusable (an error will be shown when used telling the user to pick from the namespaced names), instead of whichever plugin loaded last getting lucky

## API
- Added `CommandAliasMap`, which handles mapping of aliases to namespaced command IDs
- Added `CommandSender->getCommandAliasMap()` for user-specific aliases
- Added `CommandMap->getAliasMap()` for global fallback aliases
- `Command` no longer tracks its own registered aliases (now the job of `CommandMap`), breaking circular dependency
- Aliases must now be provided to `CommandMap->register()`
- Aliases can now be individually registered and unregistered without re-registering/unregistering the whole command using `CommandAliasMap` APIs
- Aliases are no longer namespaced, only the main command name (e.g. `pocketmine:?` is now gone while `pocketmine:help` still exists)
- `Command` now requires a `$namespace` parameter, which replaces the old `$fallbackPrefix` parameter of `register()`. It should be set to the name of the plugin.

Relevant issues
- #6508 
- #3371 - this PR doesn't implement storage, but allows configuration of per-user aliases during server runtime
2025-10-10 23:34:57 +01:00
Dylan K. Taylor
83d0d7e5bc New translations for /cmdalias (pmmp/PocketMine-MP#6685) 2025-10-10 23:27:39 +01:00
Dylan K. Taylor
f1c5c7b699 Update CallbackValidator 2025-10-10 23:00:35 +01:00
pmmp-admin-bot[bot]
a12592ab8c Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18418408959
2025-10-10 21:06:11 +00:00
pmmp-admin-bot[bot]
541b730237 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18418408959
2025-10-10 21:06:10 +00:00
Dylan T.
96a10c8ca7 contributing: remove unnecessary stuff
[ci skip]
2025-10-10 18:05:34 +01:00
Dylan T.
b365522702 Denoise contribution requirements & guidelines
Most of this stuff is just adding more visual noise and making people less likely to read it.

[ci skip]
2025-10-10 17:59:18 +01:00
Dylan T.
203494e005 CONTRIBUTING: consider AI code as the same as copy-pasta
too much of this crap going around these days...

[ci skip]
2025-10-10 17:36:42 +01:00
Dylan K. Taylor
5553c2ab8a Merge remote-tracking branch 'origin/minor-next' into major-next 2025-10-08 22:13:01 +01:00
pmmp-admin-bot[bot]
7cce33a800 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/18326199588
2025-10-07 21:06:02 +00:00
Dylan K. Taylor
6da3935abc Splash some URLs on the console at the end of startup
Maybe this will be useful for people whose first encounter with PM is on a server host.
2025-10-07 18:34:20 +01:00
Dylan K. Taylor
f791369ae0 Add new strings for splash URLs 2025-10-07 18:26:32 +01:00
Dylan K. Taylor
335fcc8ed1 Trident: do not allow using if damage is too high
fixes #6828
2025-10-07 17:50:05 +01:00