mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Add checks for unicode in home/description names if enabled
This commit is contained in:
1 parent
e90fc481a9
commit
1c6902fc9e
8 files changed
+36
-19
No files matched your search
@@ -22,9 +22,11 @@ public class DelWarpCommand extends CommandBase implements TabCompletable {
|
||||
final String warpName = args[0];
|
||||
plugin.getSavedPositionManager().deleteWarp(warpName).thenAccept(deleted -> {
|
||||
if (deleted) {
|
||||
plugin.getLocales().getLocale("warp_deleted").ifPresent(onlineUser::sendMessage);
|
||||
plugin.getLocales().getLocale("warp_deleted", warpName)
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
} else {
|
||||
plugin.getLocales().getLocale("error_warp_invalid", warpName).ifPresent(onlineUser::sendMessage);
|
||||
plugin.getLocales().getLocale("error_warp_invalid", warpName)
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user