mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 14:03:22 +00:00
Reformat.
This commit is contained in:
parent
59be72aefe
commit
73e92b8341
167 changed files with 3705 additions and 5553 deletions
|
@ -21,12 +21,11 @@
|
|||
|
||||
package com.intellectualcrafters.plot.commands;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.intellectualcrafters.plot.PlotMain;
|
||||
import com.intellectualcrafters.plot.config.C;
|
||||
import com.intellectualcrafters.plot.object.Plot;
|
||||
import com.intellectualcrafters.plot.util.PlayerFunctions;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* @author Citymonstret
|
||||
|
@ -52,16 +51,14 @@ public class Home extends SubCommand {
|
|||
if (plots.length == 1) {
|
||||
PlotMain.teleportPlayer(plr, plr.getLocation(), plots[0]);
|
||||
return true;
|
||||
}
|
||||
else if (plots.length > 1) {
|
||||
} else if (plots.length > 1) {
|
||||
if (args.length < 1) {
|
||||
args = new String[] { "1" };
|
||||
args = new String[]{"1"};
|
||||
}
|
||||
int id = 0;
|
||||
try {
|
||||
id = Integer.parseInt(args[0]);
|
||||
}
|
||||
catch (final Exception e) {
|
||||
} catch (final Exception e) {
|
||||
Plot temp;
|
||||
if ((temp = isAlias(args[0])) != null) {
|
||||
if (temp.hasOwner()) {
|
||||
|
@ -82,8 +79,7 @@ public class Home extends SubCommand {
|
|||
}
|
||||
PlotMain.teleportPlayer(plr, plr.getLocation(), plots[id - 1]);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
PlayerFunctions.sendMessage(plr, C.NO_PLOTS);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue