Untested but _should_ work.
File an Issue if it doesn't. Signed-off-by: TheTechRobo <thetechrobo@protonmail.ch>
This commit is contained in:
parent
828bcebe44
commit
3c959cfa1f
|
@ -19,10 +19,7 @@ public class GiveSteakToPlayer implements Listener {
|
|||
public boolean canPlayerGetSteak(Player p) {
|
||||
PersistentDataContainer cont = p.getPersistentDataContainer();
|
||||
NamespacedKey key = new NamespacedKey(this.pl, "canHasSteak");
|
||||
if (cont.has(key))
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
return !(cont.has(key));
|
||||
}
|
||||
public void playerGotSteak(Player p) {
|
||||
PersistentDataContainer cont = p.getPersistentDataContainer();
|
||||
|
|
Loading…
Reference in New Issue