This commit is contained in:
cyberpwn
2021-08-28 21:50:50 -04:00
parent faf5bcb32b
commit dd0b4f27d4
49 changed files with 271 additions and 444 deletions

View File

@@ -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;

View File

@@ -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'");
}

View File

@@ -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;

View File

@@ -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);
}
}