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.aliases;
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.entity.Player;
@@ -35,7 +34,7 @@ public class CopyAliasCommand implements ICommand {
public void execute(Player player, String[] args) {
if (!player.hasPermission("builders.util.aliases")) {
if (Settings.sendErrorMessages) {
player.sendMessage(Main.MSG_NO_PERMISSION + "builders.util.aliases");
player.sendMessage(BuildersUtilities.MSG_NO_PERMISSION + "builders.util.aliases");
}
return;
}
@@ -47,6 +46,6 @@ public class CopyAliasCommand implements ICommand {
}
}
Main.getInstance().getServer().dispatchCommand(player, "/copy " + builder.toString());
BuildersUtilities.getInstance().getServer().dispatchCommand(player, "/copy " + builder.toString());
}
}