mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-07-13 09:14:19 +00:00
/pp data finished, change some wording, remove debug output
This commit is contained in:
parent
15a1d9c74e
commit
e637e7591e
14 changed files with 91 additions and 184 deletions
|
@ -1,7 +1,6 @@
|
|||
package com.esophose.playerparticles.command;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
@ -133,7 +132,7 @@ public class AddCommandModule implements CommandModule {
|
|||
public List<String> onTabComplete(PPlayer pplayer, String[] args) {
|
||||
Player p = pplayer.getPlayer();
|
||||
List<String> matches = new ArrayList<String>();
|
||||
System.out.println("Args in AddCommandModule: " + Arrays.toString(args) + " " + args.length);
|
||||
|
||||
if (args.length <= 1) { // Effect name
|
||||
if (args.length == 0) matches = PermissionManager.getEffectsUserHasPermissionFor(p);
|
||||
else StringUtil.copyPartialMatches(args[0], PermissionManager.getEffectsUserHasPermissionFor(p), matches);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue