Commits
FreeSoccerHDX authored and md_5 committed 777d24e9e43
19 19 | import org.bukkit.WorldBorder; |
20 20 | import org.bukkit.advancement.Advancement; |
21 21 | import org.bukkit.advancement.AdvancementProgress; |
22 22 | import org.bukkit.block.Block; |
23 23 | import org.bukkit.block.BlockState; |
24 24 | import org.bukkit.block.Sign; |
25 25 | import org.bukkit.block.data.BlockData; |
26 26 | import org.bukkit.conversations.Conversable; |
27 27 | import org.bukkit.event.block.BlockBreakEvent; |
28 28 | import org.bukkit.event.block.BlockDropItemEvent; |
29 + | import org.bukkit.event.player.PlayerExpCooldownChangeEvent; |
29 30 | import org.bukkit.event.player.PlayerResourcePackStatusEvent; |
30 31 | import org.bukkit.inventory.EquipmentSlot; |
31 32 | import org.bukkit.inventory.ItemStack; |
32 33 | import org.bukkit.map.MapView; |
33 34 | import org.bukkit.plugin.Plugin; |
34 35 | import org.bukkit.plugin.messaging.PluginMessageRecipient; |
35 36 | import org.bukkit.scoreboard.Scoreboard; |
36 37 | import org.jetbrains.annotations.ApiStatus; |
37 38 | import org.jetbrains.annotations.NotNull; |
38 39 | import org.jetbrains.annotations.Nullable; |
795 796 | */ |
796 797 | |
797 798 | public WeatherType getPlayerWeather(); |
798 799 | |
799 800 | /** |
800 801 | * Restores the normal condition where the player's weather is controlled |
801 802 | * by server conditions. |
802 803 | */ |
803 804 | public void resetPlayerWeather(); |
804 805 | |
806 + | /** |
807 + | * Gets the player's cooldown between picking up experience orbs. |
808 + | * |
809 + | * @return The cooldown in ticks |
810 + | */ |
811 + | public int getExpCooldown(); |
812 + | |
813 + | /** |
814 + | * Sets the player's cooldown between picking up experience orbs.. |
815 + | * |
816 + | * <strong>Note:</strong> Setting this to 0 allows the player to pick up |
817 + | * instantly, but setting this to a negative value will cause the player to |
818 + | * be unable to pick up xp-orbs. |
819 + | * |
820 + | * Calling this Method will result in {@link PlayerExpCooldownChangeEvent} |
821 + | * being called. |
822 + | * |
823 + | * @param ticks The cooldown in ticks |
824 + | */ |
825 + | public void setExpCooldown(int ticks); |
826 + | |
805 827 | /** |
806 828 | * Gives the player the amount of experience specified. |
807 829 | * |
808 830 | * @param amount Exp amount to give |
809 831 | */ |
810 832 | public void giveExp(int amount); |
811 833 | |
812 834 | /** |
813 835 | * Gives the player the amount of experience levels specified. Levels can |
814 836 | * be taken by specifying a negative amount. |