mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-12 02:36:05 +00:00
Cleanup
This commit is contained in:
@@ -52,13 +52,13 @@ public class DecreeNode {
|
||||
|
||||
for (Parameter i : method.getParameters()) {
|
||||
DecreeParameter p = new DecreeParameter(i);
|
||||
if (p.isRequired()){
|
||||
if (p.isRequired()) {
|
||||
required.add(p);
|
||||
} else {
|
||||
optional.add(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
required.addAll(optional);
|
||||
|
||||
return required;
|
||||
|
||||
@@ -60,8 +60,7 @@ public interface DecreeSystem extends CommandExecutor, TabCompleter {
|
||||
|
||||
@Override
|
||||
default boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
|
||||
if(!sender.hasPermission("iris.all"))
|
||||
{
|
||||
if (!sender.hasPermission("iris.all")) {
|
||||
sender.sendMessage("You lack the Permission 'iris.all'");
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ import com.volmit.iris.util.decree.DecreeSystem;
|
||||
import com.volmit.iris.util.decree.exceptions.DecreeParsingException;
|
||||
import com.volmit.iris.util.decree.exceptions.DecreeWhichException;
|
||||
import com.volmit.iris.util.format.Form;
|
||||
import com.volmit.iris.util.plugin.VolmitSender;
|
||||
import org.bukkit.FluidCollisionMode;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.BlockVector;
|
||||
|
||||
@@ -30,7 +30,7 @@ public class WorldHandler implements DecreeParameterHandler<World> {
|
||||
public KList<World> getPossibilities() {
|
||||
KList<World> options = new KList<>();
|
||||
for (World world : Bukkit.getWorlds()) {
|
||||
if (!world.getName().toLowerCase().startsWith("iris/")){
|
||||
if (!world.getName().toLowerCase().startsWith("iris/")) {
|
||||
options.add(world);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user