mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-01 22:14:56 +00:00
Consistency fixes (#12)
* Consistency fixes * Windows users need a batch file
This commit is contained in:
1 parent
bc1d9a0312
commit
0fcf7cc0c9
8 files changed
+91
-11
No files matched your search
@@ -43,9 +43,9 @@ public class AdvancedFlyCommand implements ICommand {
|
||||
}
|
||||
|
||||
if (PlayerMoveListener.togglePlayer(player)) {
|
||||
player.sendMessage(Main.MSG_PREFIX + "Advanced Fly " + ChatColor.GREEN + ChatColor.ITALIC + "Enabled");
|
||||
player.sendMessage(Main.MSG_PREFIX + "Advanced Fly " + ChatColor.GREEN + "enabled");
|
||||
} else {
|
||||
player.sendMessage(Main.MSG_PREFIX + "Advanced Fly " + ChatColor.RED + ChatColor.ITALIC + "Disabled");
|
||||
player.sendMessage(Main.MSG_PREFIX + "Advanced Fly " + ChatColor.RED + "disabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,10 +45,10 @@ public class NightVisionCommand implements ICommand {
|
||||
|
||||
if (player.hasPotionEffect(PotionEffectType.NIGHT_VISION)) {
|
||||
player.removePotionEffect(PotionEffectType.NIGHT_VISION);
|
||||
player.sendMessage(Main.MSG_PREFIX + "Night Vision " + ChatColor.RED + ChatColor.ITALIC + "Disabled");
|
||||
player.sendMessage(Main.MSG_PREFIX + "Night Vision " + ChatColor.RED + "disabled");
|
||||
} else {
|
||||
player.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, Integer.MAX_VALUE, 0, true, false));
|
||||
player.sendMessage(Main.MSG_PREFIX + "Night Vision " + ChatColor.GREEN + ChatColor.ITALIC + "Enabled");
|
||||
player.sendMessage(Main.MSG_PREFIX + "Night Vision " + ChatColor.GREEN + "enabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,13 +45,13 @@ public class NoClipCommand implements ICommand {
|
||||
|
||||
if (NoClipManager.noClipPlayerIds.contains(player.getUniqueId())) {
|
||||
NoClipManager.noClipPlayerIds.remove(player.getUniqueId());
|
||||
player.sendMessage(Main.MSG_PREFIX + "NoClip " + ChatColor.RED + ChatColor.ITALIC + "Disabled");
|
||||
player.sendMessage(Main.MSG_PREFIX + "NoClip " + ChatColor.RED + "disabled");
|
||||
if (player.getGameMode() == GameMode.SPECTATOR) {
|
||||
player.setGameMode(GameMode.CREATIVE);
|
||||
}
|
||||
} else {
|
||||
NoClipManager.noClipPlayerIds.add(player.getUniqueId());
|
||||
player.sendMessage(Main.MSG_PREFIX + "NoClip " + ChatColor.GREEN + ChatColor.ITALIC + "Enabled");
|
||||
player.sendMessage(Main.MSG_PREFIX + "NoClip " + ChatColor.GREEN + "enabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,7 +29,6 @@ import net.arcaniax.buildersutilities.Main;
|
||||
import net.arcaniax.buildersutilities.commands.AdvancedFlyCommand;
|
||||
import net.arcaniax.buildersutilities.commands.BannerCommand;
|
||||
import net.arcaniax.buildersutilities.commands.ColorCommand;
|
||||
import net.arcaniax.buildersutilities.commands.HelpCommand;
|
||||
import net.arcaniax.buildersutilities.commands.SecretBlockCommand;
|
||||
import net.arcaniax.buildersutilities.commands.NoClipCommand;
|
||||
import net.arcaniax.buildersutilities.commands.NightVisionCommand;
|
||||
@@ -48,7 +47,6 @@ import net.arcaniax.buildersutilities.commands.aliases.TwistAliasCommand;
|
||||
import net.arcaniax.buildersutilities.commands.aliases.ScaleAliasCommand;
|
||||
import net.arcaniax.buildersutilities.commands.aliases.WalkSpeedAliasCommand;
|
||||
import net.arcaniax.buildersutilities.commands.aliases.FlySpeedAliasCommand;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
package net.arcaniax.buildersutilities.utils;
|
||||
|
||||
import net.arcaniax.buildersutilities.Main;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.DyeColor;
|
||||
import org.bukkit.block.banner.Pattern;
|
||||
|
||||
Reference in new issue
Block a user