mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-02-11 03:29:53 +00:00
Fix preset group overrides for command not working properly
This commit is contained in:
parent
770a934db1
commit
09fdeaf612
1 changed files with 2 additions and 4 deletions
|
@ -151,13 +151,11 @@ public class GroupCommandModule implements CommandModule {
|
|||
|
||||
group = presetGroup.getGroup();
|
||||
isPreset = true;
|
||||
}
|
||||
|
||||
if (!group.canPlayerUse(pplayer)) {
|
||||
} else if (!group.canPlayerUse(pplayer)) {
|
||||
localeManager.sendMessage(pplayer, "group-no-permission", StringPlaceholders.single("group", groupName));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Empty out the active group and fill it with clones from the target group
|
||||
ParticleGroup activeGroup = pplayer.getActiveParticleGroup();
|
||||
activeGroup.getParticles().clear();
|
||||
|
|
Loading…
Reference in a new issue