mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Start refactor work
This commit is contained in:
1 parent
6a8851a446
commit
3e1ec09487
51 files changed
+2397
-2474
No files matched your search
@@ -26,7 +26,7 @@ public class DelWarpCommand extends CommandBase implements TabCompletable {
|
||||
if (args.length <= 2) {
|
||||
final String warpName = args[0];
|
||||
final boolean confirm = args.length == 2 && args[1].equalsIgnoreCase("confirm");
|
||||
plugin.getSavedPositionManager().deleteWarp(warpName).thenAccept(deleted -> {
|
||||
plugin.getManager().deleteWarp(warpName).thenAccept(deleted -> {
|
||||
if (deleted) {
|
||||
plugin.getLocales().getLocale("warp_deleted", warpName)
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
@@ -59,7 +59,7 @@ public class DelWarpCommand extends CommandBase implements TabCompletable {
|
||||
return;
|
||||
}
|
||||
|
||||
plugin.getSavedPositionManager().deleteAllWarps().thenAccept(deleted -> {
|
||||
plugin.getManager().deleteAllWarps().thenAccept(deleted -> {
|
||||
if (deleted == 0) {
|
||||
plugin.getLocales().getLocale("error_no_warps_set")
|
||||
.ifPresent(deleter::sendMessage);
|
||||
|
||||
Reference in new issue
Block a user