mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
Potential fix for commands
This commit is contained in:
parent
7b1c4a5042
commit
a554ae5633
@ -223,12 +223,12 @@ public class MainCommand extends Command {
|
|||||||
// Trim command
|
// Trim command
|
||||||
args = Arrays.copyOfRange(args, 1, args.length);
|
args = Arrays.copyOfRange(args, 1, args.length);
|
||||||
}
|
}
|
||||||
if (args.length >= 2 && args[0].charAt(0) == '-') {
|
if (args.length >= 2 && !args[0].isEmpty() && args[0].charAt(0) == '-') {
|
||||||
switch (args[0].substring(1)) {
|
switch (args[0].substring(1)) {
|
||||||
case "f":
|
case "f":
|
||||||
confirm = new RunnableVal3<Command, Runnable, Runnable>() {
|
confirm = new RunnableVal3<Command, Runnable, Runnable>() {
|
||||||
@Override
|
@Override
|
||||||
public void run(final Command cmd, final Runnable success, final Runnable failure) {
|
public void run(Command cmd, Runnable success, Runnable failure) {
|
||||||
if (EconHandler.manager != null) {
|
if (EconHandler.manager != null) {
|
||||||
PlotArea area = player.getApplicablePlotArea();
|
PlotArea area = player.getApplicablePlotArea();
|
||||||
if (area != null) {
|
if (area != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user