mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 14:33:08 +00:00
Fixed errors :D
This commit is contained in:
parent
5b62523003
commit
2dc935eed6
3 changed files with 18 additions and 0 deletions
|
@ -159,6 +159,7 @@ public class MainCommand implements CommandExecutor, TabCompleter {
|
|||
if(!(commandSender instanceof Player)) return null;
|
||||
Player player = (Player) commandSender;
|
||||
ArrayList<SubCommand> subo = subCommands;
|
||||
if(strings.length < 1 || strings[0].length() < 2) return null;
|
||||
while(true) {
|
||||
String sub = new StringComparsion(strings[0], subo.toArray()).getBestMatch();
|
||||
if(subo.isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue