mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-08-09 22:13:12 +00:00
Actually use PPlayers for permissions
This commit is contained in:
parent
386a98f88f
commit
8a5479ec54
18 changed files with 50 additions and 49 deletions
|
@ -48,9 +48,9 @@ public class DataCommandModule implements CommandModule {
|
|||
List<String> matches = new ArrayList<>();
|
||||
if (args.length <= 1) {
|
||||
if (args.length == 0) {
|
||||
matches = permissionManager.getEffectNamesUserHasPermissionFor(pplayer.getPlayer());
|
||||
matches = permissionManager.getEffectNamesUserHasPermissionFor(pplayer);
|
||||
} else {
|
||||
StringUtil.copyPartialMatches(args[0], permissionManager.getEffectNamesUserHasPermissionFor(pplayer.getPlayer()), matches);
|
||||
StringUtil.copyPartialMatches(args[0], permissionManager.getEffectNamesUserHasPermissionFor(pplayer), matches);
|
||||
}
|
||||
}
|
||||
return matches;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue