QOL #203
@ -77,11 +77,11 @@ public class BindCommand extends SWCommand implements Listener {
|
|||||||
if (command.length != 0) {
|
if (command.length != 0) {
|
||||||
String commandText = String.join(" ", command);
|
String commandText = String.join(" ", command);
|
||||||
meta.getPersistentDataContainer().set(KEY, PersistentDataType.STRING, commandText);
|
meta.getPersistentDataContainer().set(KEY, PersistentDataType.STRING, commandText);
|
||||||
meta.setLore(Collections.singletonList(BauSystem.MESSAGE.parse("OTHER_BIND_LORE", player, commandText)));
|
meta.setDisplayName(BauSystem.MESSAGE.parse("OTHER_BIND_LORE", player, commandText));
|
||||||
BauSystem.MESSAGE.send("OTHER_BIND_MESSAGE_BIND", player, commandText);
|
BauSystem.MESSAGE.send("OTHER_BIND_MESSAGE_BIND", player, commandText);
|
||||||
} else {
|
} else {
|
||||||
meta.getPersistentDataContainer().remove(KEY);
|
meta.getPersistentDataContainer().remove(KEY);
|
||||||
meta.setLore(Collections.emptyList());
|
meta.setDisplayName(null);
|
||||||
BauSystem.MESSAGE.send("OTHER_BIND_MESSAGE_UNBIND", player);
|
BauSystem.MESSAGE.send("OTHER_BIND_MESSAGE_UNBIND", player);
|
||||||
}
|
}
|
||||||
item.setItemMeta(meta);
|
item.setItemMeta(meta);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren