Rename main to BU internally declaring BU as BU (#14)

* [CI-SKIP] Update actions workflow addressing latest deprecations

* Rename main to BU internally

* Delete unused help command
This commit is contained in:
NotMyFault authored and GitHub committed 2020-12-01 20:18:41 +01:00
1 parent 063df280ee
commit dac0f60c18
64 files changed
+113 -209

No files matched your search

@@ -22,10 +22,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package net.arcaniax.buildersutilities.commands;
import net.arcaniax.buildersutilities.Main;
import net.arcaniax.buildersutilities.BuildersUtilities;
import net.arcaniax.buildersutilities.Settings;
import net.arcaniax.buildersutilities.commands.system.ICommand;
import org.bukkit.ChatColor;
@@ -38,17 +37,17 @@ public class NightVisionCommand implements ICommand {
public void execute(Player player, String[] args) {
if (!player.hasPermission("builders.util.nightvision")) {
if (Settings.sendErrorMessages) {
player.sendMessage(Main.MSG_NO_PERMISSION + "builders.util.nightvision");
player.sendMessage(BuildersUtilities.MSG_NO_PERMISSION + "builders.util.nightvision");
}
return;
}
if (player.hasPotionEffect(PotionEffectType.NIGHT_VISION)) {
player.removePotionEffect(PotionEffectType.NIGHT_VISION);
player.sendMessage(Main.MSG_PREFIX + "Night Vision " + ChatColor.RED + "disabled");
player.sendMessage(BuildersUtilities.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 + "enabled");
player.sendMessage(BuildersUtilities.MSG_PREFIX + "Night Vision " + ChatColor.GREEN + "enabled");
}
}
}