Merge pull request #12 from nickreesdev/master

Changed a message in DeliveryManMenu to use the static DELIVERY_MAN_NAME field.
This commit is contained in:
Braydon 2021-02-21 14:35:50 -05:00 committed by GitHub
commit c128e1ad5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}