Add restrict-player-reloot-time config (#7652)

This commit is contained in:
Jake Potrebic
2023-08-12 14:26:47 -07:00
parent 4e4417723a
commit 3d0d1cb6ae
3 changed files with 94 additions and 7 deletions

View File

@@ -106,6 +106,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+
+ /**
+ * Checks if this player can loot this block. Takes into account the "restrict player reloot" settings
+ *
+ * @param player the player to check
+ *
+ * @return Whether this player can loot this block
+ */
+ boolean canPlayerLoot(@NotNull UUID player);
+
+ /**
+ * Has this player ever looted this block
+ * @param player The player to check
+ * @return Whether or not this player has looted this block