mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 01:39:52 +00:00
EffectCommand: Remove support for internal MCPE effect IDs
This commit is contained in:
parent
3632e07cdb
commit
e22986f065
@ -69,11 +69,6 @@ class EffectCommand extends VanillaCommand{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$effect = VanillaEffects::fromString($args[1]);
|
$effect = VanillaEffects::fromString($args[1]);
|
||||||
|
|
||||||
if($effect === null){
|
|
||||||
$effect = VanillaEffects::byMcpeId((int) $args[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if($effect === null){
|
if($effect === null){
|
||||||
$sender->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.effect.notFound", [(string) $args[1]]));
|
$sender->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.effect.notFound", [(string) $args[1]]));
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user