EpicKnarvik97 430f340fd4 Updates to 1.21.4
Updates Spigot version
Updates API version
Fixes invulnerability ticks not working as intended
Removes missing material tag.
Fixes max health attribute.
2025-02-21 18:11:06 +01:00

29 lines
774 B
Java

package net.knarcraft.minigames.arena.reward;
import org.bukkit.configuration.serialization.ConfigurationSerializable;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
/**
* A reward a player can be awarded
*/
public interface Reward extends ConfigurationSerializable {
/**
* Grants this reward to the given player
*
* @param player <p>The player this reward should be granted to</p>
* @return <p>True if the item was granted. False if not possible.</p>
*/
boolean grant(@NotNull Player player);
/**
* Gets the message to display to a user when granting this reward
*
* @return <p>The message to display when this reward is granted</p>
*/
@NotNull
String getGrantMessage();
}