Changed a message in DeliveryManMenu to use the static DELIVERY_MAN_NAME field.

This commit is contained in:
nickreesdev 2021-02-21 13:31:38 -06:00
parent a922104f8f
commit dc8e23bd02

View File

@ -89,7 +89,7 @@ public class DeliveryManMenu extends UpdatableMenu {
itemBuilder.setLore(lore);
set(1, slot, new Button(itemBuilder.toItemStack(), event -> {
if (!canClaim) {
player.sendMessage(Style.main("Harold", "You can not claim this reward right now!"));
player.sendMessage(Style.main(DeliveryManManager.DELIVERY_MAN_NAME, "You can not claim this reward right now!"));
player.playSound(player.getLocation(), XSound.ENTITY_ENDERMITE_AMBIENT.parseSound(), 0.9f, 1f);
return;
}