translatable DeleteCommand
This commit is contained in:
parent
583f8a1257
commit
b7e97212ac
4 changed files with 11 additions and 3 deletions
|
|
@ -2,6 +2,8 @@ package de.lunarakai.minecleaner.commands;
|
|||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.command.Command;
|
||||
|
|
@ -18,6 +20,8 @@ import de.lunarakai.minecleaner.MinecleanerArena;
|
|||
import de.lunarakai.minecleaner.MinecleanerPlugin;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
|
||||
import static de.lunarakai.minecleaner.utils.MinecleanerComponentUtils.createLangComponent;
|
||||
|
||||
public class DeleteCommand extends SubCommand {
|
||||
private final MinecleanerPlugin plugin;
|
||||
|
||||
|
|
@ -52,9 +56,9 @@ public class DeleteCommand extends SubCommand {
|
|||
}
|
||||
if(arena != null) {
|
||||
plugin.getArenaList().removeArena(arena);
|
||||
sender.sendMessage(ChatColor.YELLOW + "Die " + plugin.getDisplayedPluginName() + "-Arena " + arena.getName() + " wurde gelöscht.");
|
||||
sender.sendMessage(createLangComponent("arena.delete.success", plugin.getDisplayedPluginName(), arena.getName(), NamedTextColor.YELLOW));
|
||||
} else {
|
||||
sender.sendMessage(ChatColor.YELLOW + "Hier befindet sich keine " + plugin.getDisplayedPluginName() + "-Arena.");
|
||||
sender.sendMessage(createLangComponent("arena.delete.noarena", plugin.getDisplayedPluginName(), NamedTextColor.YELLOW));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ arena.create.lookAtCenter=Bitte gucke den Block an, der im Zentrum des {0}-Spiel
|
|||
arena.create.lookAtSide=Bitte gucke die Seite des Blockes an, wo das {0}-Spielfeld erstellt werden soll.
|
||||
arena.create.otherArena=An dieser Stelle befindet sich bereits eine Arena.
|
||||
arena.create.success=Die Arena wurde erfolgreich angelegt.
|
||||
arena.delete.success=Die {0}-Arena {1} wurde geloescht.
|
||||
arena.delete.noarena=Hier befindet sich keine {0}-Arena.
|
||||
|
||||
arena.list=Angelegte {0}-Arenen
|
||||
arena.list.none=(keine)
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ arena.create.lookAtCenter=Please look at the block that should be in the center
|
|||
arena.create.lookAtSide=Please look at the side of the block where the {0} field is to be created.
|
||||
arena.create.otherArena=There is already an arena at this location.
|
||||
arena.create.success=The arena has been created successfully.
|
||||
arena.delete.success=The {0}-arena {1} has been deleted.
|
||||
arena.delete.noarena=There is no {0}-arena here.
|
||||
|
||||
arena.list=Created {0} arenas
|
||||
arena.list.none=(none)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
name: Minecleaner
|
||||
version: '${project.version}-${git.commit.id.abbrev}'
|
||||
author: LunarAkai
|
||||
website: https://git.lunarakai.de/LunarAkai/NewMinecleaner
|
||||
website: https://github.com/LunarAkai/Minecleaner
|
||||
main: de.lunarakai.minecleaner.MinecleanerPlugin
|
||||
api-version: '1.20'
|
||||
depend:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue