mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
More command refactoring
This commit is contained in:
1 parent
3bde5305d7
commit
34eb2c1f54
17 files changed
+382
-540
No files matched your search
@@ -41,6 +41,10 @@ public class WarpsManager {
|
||||
plugin.getDatabase().saveWarp(warp);
|
||||
}
|
||||
|
||||
public void createWarp(@NotNull String name, @NotNull Position position) throws ValidationException {
|
||||
this.createWarp(name, position, plugin.getSettings().doOverwriteExistingHomesWarps());
|
||||
}
|
||||
|
||||
public void deleteWarp(@NotNull String name) throws ValidationException {
|
||||
final Optional<Warp> warp = plugin.getDatabase().getWarp(name);
|
||||
if (warp.isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user