mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 14:38:53 +00:00
Finish implementation of home overwriting, add additional success check, close #168
This commit is contained in:
1 parent
729cb5870f
commit
c4170cef77
3 files changed
+28
-3
No files matched your search
@@ -31,6 +31,11 @@ public class SetWarpCommand extends CommandBase {
|
||||
yield plugin.getLocales().getLocale("set_warp_success",
|
||||
setResult.savedPosition().get().meta.name);
|
||||
}
|
||||
case SUCCESS_OVERWRITTEN -> {
|
||||
assert setResult.savedPosition().isPresent();
|
||||
yield plugin.getLocales().getLocale("edit_warp_update_location",
|
||||
setResult.savedPosition().get().meta.name);
|
||||
}
|
||||
case FAILED_DUPLICATE -> plugin.getLocales().getLocale("error_warp_name_taken");
|
||||
case FAILED_NAME_LENGTH -> plugin.getLocales().getLocale("error_warp_name_length");
|
||||
case FAILED_NAME_CHARACTERS -> plugin.getLocales().getLocale("error_warp_name_characters");
|
||||
|
||||
Reference in new issue
Block a user