mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-12-02 15:13:51 +01:00
Deprecate a method
This commit is contained in:
parent
b71a5e79e9
commit
b48ad78471
@ -56,6 +56,7 @@ public final class BlockLimitation extends EnumLimitation<CompatibleMaterial> {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public long getBlockLimit(Player player, Block block) {
|
public long getBlockLimit(Player player, Block block) {
|
||||||
return this.getBlockLimit(player, block.getType());
|
return this.getBlockLimit(player, block.getType());
|
||||||
}
|
}
|
||||||
|
@ -302,7 +302,7 @@ public class Block implements Listener {
|
|||||||
|
|
||||||
BlockLimitation limits = plugin.getLimitationHandler().getInstance(BlockLimitation.class);
|
BlockLimitation limits = plugin.getLimitationHandler().getInstance(BlockLimitation.class);
|
||||||
|
|
||||||
long limit = limits.getBlockLimit(player, block);
|
long limit = limits.getBlockLimit(player, block.getType());
|
||||||
|
|
||||||
if (limits.isBlockLimitExceeded(block, limit)) {
|
if (limits.isBlockLimitExceeded(block, limit)) {
|
||||||
CompatibleMaterial material = null;
|
CompatibleMaterial material = null;
|
||||||
|
@ -188,7 +188,7 @@ public class Interact implements Listener {
|
|||||||
|
|
||||||
BlockLimitation limits = plugin.getLimitationHandler().getInstance(BlockLimitation.class);
|
BlockLimitation limits = plugin.getLimitationHandler().getInstance(BlockLimitation.class);
|
||||||
|
|
||||||
long limit = limits.getBlockLimit(player, block);
|
long limit = limits.getBlockLimit(player, block.getType());
|
||||||
|
|
||||||
if (limits.isBlockLimitExceeded(block, limit)) {
|
if (limits.isBlockLimitExceeded(block, limit)) {
|
||||||
plugin.getMessageManager().sendMessage(player,
|
plugin.getMessageManager().sendMessage(player,
|
||||||
|
Loading…
Reference in New Issue
Block a user