Giter Club home page Giter Club logo

limits's Introduction

Limits

Build Status

Add-on for BentoBox to limit island blocks and entities in GameModes like BSkyBlock and AcidIsland. This add-on will work in any game mode world.

How to use

  1. Place the Limits addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml
  4. Edit the config.yml how you want.
  5. Restart the server if you make a change

Commands

There is a user command and an admin command called "limits". Admins can check the limits of a specific island owner. Both show a GUI panel with the limits and the current count.

Setup - Config.yml

The config.yml has the following sections:

  • blocklimits
  • worlds
  • entitylimits

blocklimits

This section lists the maximum number of blocks allowed for each block material. Do not use non-block materials because they will not work. The limits apply to all game worlds.

worlds

This section lists block limits for specific worlds. You must name the world specifically, e.g. AcidIsland_world and then list the materials and the limit.

entitylimits

Coming soon!

Permissions

Island owners can have exclusive permissions that override the default or world settings. The format is:

Format is GAME-MODE-NAME.island.limit.MATERIAL.LIMIT

example: bskyblock.island.limit.hopper.10

Permissions activate when the player logs in.

Usage permissions are (put the gamemode name, e.g. acidisland at the front):

  GAMEMODE_NAME.limits.player.limits:
    description: Player can use limits command
    default: true
  GAMEMODE_NAME.limits.admin.limits:
    description: Player can use admin limits command
    default: op

Items that cannot be limited

Some items cannot be limited (right now). The reasons are usually because there are too many ways to remove the item without it being tracked. If you are a programmer and can work out how to fix these, then please submit a PR!

  • Primed TNT
  • Evoker Fangs
  • Llama Spit
  • Dragon Fireball
  • Area Effect Cloud
  • Ender signal
  • Small fireball
  • Fireball
  • Thrown Exp Bottle
  • Shulker Bullet
  • Wither Skull
  • Tridents
  • Arrows
  • Spectral Arrows
  • Snowballs
  • Eggs
  • Leashes
  • Ender crystals
  • Ender pearls
  • Ender dragon
  • Item frames
  • Paintings

limits's People

Contributors

andris155 avatar aurorasmiles avatar basonjar avatar baterka avatar bonne avatar ducksoft avatar emmanuelvlad avatar hailyadi avatar hsgamer avatar j4im3x0 avatar katorly avatar mt-gitlocalize avatar notfunnys avatar organizatsiya avatar patrykstepien avatar piotrskibapl avatar poslovitch avatar santyxs avatar sgdc3 avatar tastybento avatar weaondara avatar wiktorm12 avatar workonfire avatar yellowzaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

limits's Issues

Spawner break error with EpicSpawners

Hi!

This error appears, when using the plugin with "EpicSpanwers (songoda)".
I've tried several versions of bentobox and addons but don't work.
Addons: BSkyBlock, Challanges, Level, Limits, MagicCobbleStoneGenerator
Software: Spigot-1.14.4

The error appears when i break a spawner ingame.

[Server thread/ERROR]: Could not pass event SpawnerBreakEvent to BentoBox v1.7.0-SNAPSHOT-b1331 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at com.songoda.epicspawners.listeners.BlockListeners.onBlockBreak(BlockListeners.java:229) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:295) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:254) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:151) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1185) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.PacketPlayInBlockDig.a(SourceFile:40) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.PacketPlayInBlockDig.a(SourceFile:10) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:909) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:902) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:819) [spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.NoSuchMethodError: 'com.songoda.epicspawners.api.spawner.Spawner com.songoda.epicspawners.api.events.SpawnerBreakEvent.getSpawner()' at bentobox.addon.limits.listeners.EpicSpawnersListener.onBlockBreak(EpicSpawnersListener.java:29) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.14.4.jar:git-Spigot-798ea6a-368f4e9] ... 29 more

Could not pass event HangingPlaceEvent to BentoBox

Description

Describe the bug

[19:53:05 ERROR]: Could not pass event HangingPlaceEvent to BentoBox v1.6.0-SNAPSHOT-b1311
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:66) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:507) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:492) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.ItemHanging.a(ItemHanging.java:38) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.ItemStack.placeItem(ItemStack.java:163) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:511) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1222) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:9) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:896) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NullPointerException
        at world.bentobox.bentobox.managers.IslandWorldManager.getPermissionPrefix(IslandWorldManager.java:492) ~[?:?]
        at bentobox.addon.limits.listeners.EntityLimitListener.onBlock(EntityLimitListener.java:122) ~[?:?]
        at jdk.internal.reflect.GeneratedMethodAccessor980.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:312) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        ... 18 more
[19:53:07 ERROR]: Could not pass event HangingPlaceEvent to BentoBox v1.6.0-SNAPSHOT-b1311
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:66) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:507) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:492) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.ItemHanging.a(ItemHanging.java:38) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.ItemStack.placeItem(ItemStack.java:163) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:511) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1222) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:9) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:896) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729) [spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NullPointerException
        at world.bentobox.bentobox.managers.IslandWorldManager.getPermissionPrefix(IslandWorldManager.java:492) ~[?:?]
        at bentobox.addon.limits.listeners.EntityLimitListener.onBlock(EntityLimitListener.java:122) ~[?:?]
        at jdk.internal.reflect.GeneratedMethodAccessor980.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:312) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-84f3da3]
        ... 18 more

Not sure what the player is doing, they left when I got home, but the console was flooded with these after today's upgrade to the jenkin builds.

Steps to reproduce the behavior

no idea.

Screenshots and videos

Expected behavior

n/a

Environment

Server

  • OS: macOS Mojave
  • Java version: 11

Plugins

we/wg/cmi/mv-core/bentobox

BentoBox setup

BentoBox and Addons
>bentobox version
[20:16:06 INFO]: Running SPIGOT 1.13.2.
[20:16:06 INFO]: BentoBox version: 1.6.0-SNAPSHOT-b1311
[20:16:06 INFO]: Database: JSON
[20:16:06 INFO]: Loaded Game Worlds:
[20:16:06 INFO]: acid (acid): Overworld, Nether, End
[20:16:06 INFO]: cave (cave): Overworld, Nether, End
[20:16:06 INFO]: skyblock (skyblock): Overworld, Nether, End
[20:16:06 INFO]: skygrid (skygrid): Overworld, Nether, End
[20:16:06 INFO]: Loaded Addons:
[20:16:06 INFO]: AcidIsland 1.6.0-SNAPSHOT (ENABLED)
[20:16:06 INFO]: BSkyBlock 1.6.0-SNAPSHOT (ENABLED)
[20:16:06 INFO]: CaveBlock ${version}${build.number} (ENABLED)
[20:16:06 INFO]: Level 1.6.0-SNAPSHOT (ENABLED)
[20:16:06 INFO]: Limits 1.6.0-SNAPSHOT (ENABLED)
[20:16:06 INFO]: MagicCobblestoneGenerator 1.5.0.1 (ENABLED)
[20:16:06 INFO]: SkyGrid 1.6.0 (ENABLED)
[20:16:06 INFO]: WelcomeWarps 1.5.2-SNAPSHOT (ENABLED)
>
Configuration
  • Database: flatfile/json

Additional context

The only i can tell is that they were editing armor stands, they were in the non-bentobox world (world called general) and they were just playing as they would each day.

Raw instalation of addon-limits get error after...

Description
I didnt saw any problem with this error its just annoing :D
Error:
obrazok

Steps to reproduce the behavior:
1 Install bentobox
2 Install addons (bskyblock, limits, welcomewarps, level)
3. Do /is and 2x /is restart
4. Yey you got error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Server Information:

[Please complete the following information:]

  • Database being used YAML and MySQL
  • OS: Debian i think (linux)
  • Java Version: 8
  • BentoBox version: last one

Additional context
Add any other context about the problem here.

Locale file hit-limit messages

Description
A clear and concise description of what the bug is.
When the limit of blocks or entities are reached, an error appears that the locale entry is missing

block-limits.hit-limit
entity-limits.hit-limit

Steps to reproduce the behavior:

  1. Clean test server, with all latest plugins and add onss
  2. Make an island
  3. Place 11 hoppers
  4. Place 11 chickens

Expected behavior
A clear and concise description of what you expected to happen.
The locale file should be changed to:

block-limits:
  hit-limit: "&c[material] limited to [number]!"
entity-limits:
  hit-limit: "&c[entity] spawning limited to [number]!"
limits:
  panel-title: "Island limits"

or
The code should use the default limits.entity-hit-limit and limits.block-hit-limit

Screenshots
If applicable, add screenshots to help explain your problem.

Server Information:
Not important in this case, it's quite obvious

Counting Bamboo as whole plant

Is your feature request related to a problem? Please describe.
Unlike KELP, BAMBOO is counted per stem block.

Describe the solution you'd like
I want to limit Bamboo as a plant to maximize to e.g. 50 plants despite the height.
Limits-addon counts all stem blocks as 1, resulting in 10-16 times higher values if the plant has grown

Describe alternatives you've considered
BAMBOO_SAPLING doesn't satisfy
Counting saplings isn't a solution either since fully grown plants are no longer sapling, resulting in unlimited number of bamboo.

Additional context

Mob spawner limits won't decrease after breaking it while using EpicSpawners Plugin.

Description
Mob spawner limits won't decrease after breaking it while using EpicSpawners Plugin. Admins have to manually /bsb limits calc to fix this issue.

Steps to reproduce the behavior:

  1. Install EpicSpawners and BBox
  2. Place spawners then check /is limits
  3. Break it then check /is limits again
  4. It's not updating.

Expected behavior
Only mob spawners didn't updated, but other blocks did.

Screenshots
Coming soon: I'm on phone

Server Information:

  • Java 11
  • Running PAPER 1.13.2 - #626
  • BentoBox version: 1.4.0
  • Loaded Addons:
  • Biomes 0.4.5
  • BSkyBlock 1.4.2
  • Challenges 0.6.5-SNAPSHOT-#145
  • Greenhouses 0.0.2-SNAPSHOT
  • Level 1.4.0
  • Limits 0.2.0-SNAPSHOT
  • WelcomeWarps 1.4.0

The limit did not decrease when removing premission

Description
I remove myself a specificated permission and limit stay increased the same. I was try /bentobox reload, rejoin to the server, not helped. The default limit in the config of zombie is 30.

Steps to reproduce the behavior:

  1. add permission example bskyblock.island.limit.zombie.70
  2. rejoin and watch /is limit, you will see its zombie limit is 70
  3. Remov premission bskyblock.island.limit.zombie.70
  4. Rejoin and you will still see is zombie limit is 70

Expected behavior
When removing premission removes and limit.

Screenshots
If applicable, add screenshots to help explain your problem.

Server Information:

[11:57:16 INFO]: Running PAPER 1.15.1.
[11:57:16 INFO]: BentoBox version: 1.11.0-SNAPSHOT-b1564
[11:57:16 INFO]: Database: JSON
[11:57:16 INFO]: Loaded Game Worlds:
[11:57:16 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, End
[11:57:16 INFO]: Loaded Addons:
[11:57:16 INFO]: Biomes 1.6.0.1-SNAPSHOT-b149 (ENABLED)
[11:57:16 INFO]: Border 1.0.3 (ENABLED)
[11:57:16 INFO]: BSkyBlock 1.10.1-SNAPSHOT-b583 (ENABLED)
[11:57:16 INFO]: Challenges 0.9.0-SNAPSHOT-b396 (ENABLED)
[11:57:16 INFO]: DimensionalTrees 1.6.0-SNAPSHOT-b78 (ENABLED)
[11:57:16 INFO]: Greenhouses 1.0.0 (ENABLED)
[11:57:16 INFO]: Level 1.9.1-SNAPSHOT-b332 (ENABLED)
[11:57:16 INFO]: Likes 1.7.0-SNAPSHOT-#14 (ENABLED)
[11:57:16 INFO]: Limits 1.9.1-SNAPSHOT-b196 (ENABLED)
[11:57:16 INFO]: MagicCobblestoneGenerator 1.9.0-SNAPSHOT-b92 (ENABLED)
[11:57:16 INFO]: TwerkingForTrees 1.1.2 (ENABLED)
[11:57:16 INFO]: Warps 1.9.2-SNAPSHOT-b218 (ENABLED)

Unable to limit Item Frames, Paintings, and Armor Stands

Description
I can't seem to limit Item Frames, Paintings, and Armor Stands with the BentoBox Limits addon.

Steps to reproduce the behavior:

  1. Stop server
  2. Open your /plugins/BentoBox/addons/Limits/config.yml
  3. Add the following to config.yml under "blocklimits:"
  ITEM_FRAME: 100
  PAINTING: 100
  ARMOR_STAND: 100
  1. Start server and notice in console

[BentoBox] [Limits] Material ITEM_FRAME is not a valid block. Skipping...
[BentoBox] [Limits] Material PAINTING is not a valid block. Skipping...
[BentoBox] [Limits] Material ARMOR_STAND is not a valid block. Skipping...

Server Information:

[Please complete the following information:]

  • Database being used (YAML, JSON, MySQL, MongoDB): YAML
  • OS: [e.g. iOS]: Ubuntu 16.04
  • Java Version: [e.g. Java 8]: Java 8 (build 1.8.0_212)
  • BentoBox version: [e.g. 1.7.2.21]: 1.5.2
  • Addons installed? [Do '/bentobox version' and copy/paste from the console]

Running PAPER 1.13.2.

Loaded Addons:
Biomes 1.5.0.0 (ENABLED)
BSkyBlock 1.5.0 (ENABLED)
Challenges 0.7.5 (ENABLED)
Level 1.5.0 (ENABLED)
Limits 0.2.1-SNAPSHOT (ENABLED)
WelcomeWarps 1.5.0 (ENABLED)

Limit by entity/block group

Thinking about the incoming entity limits, we used to have animal limit on Askyblock but here we wouldn't.

So I've thought about limiting "groups"

groups:
   animals:
       - WOLF
       - COW
       - CHICKEN
       - VILLAGER
   hostile:
       - ZOMBIE
       - CREEPER
       - SPIDER

Then we could limit the group, instead of the entity itself. So a limit of 10 for animals, users could have (5 wolf and 5 cow) or (1 cow, 9 villagers), etc.

This could be expanded to block groups, not just entity. So we could create "redstone" group.

Could not pass event SpawnerBreakEvent to BentoBox v1.5.3

Description
I regret to inform that this issue looks to have returned that is related to #25

Error: https://pastebin.com/raw/RW5sjTKX

Steps to reproduce the behavior:

  1. Install BentoBox v1.5.3, Limits 0.2.3, and EpicSpawners v6.0.7
  2. Break a spawner
  3. See error in console

Server Information:

[Please complete the following information:]

  • Database being used (YAML, JSON, MySQL, MongoDB): [JSON]
  • OS: [Ubuntu 16.04]
  • Java Version: [Java 8 (build 1.8.0_212)]
  • BentoBox version: [1.5.3]
  • Addons installed?
    Running PAPER 1.13.2.
    [18:58:11 INFO]: BentoBox version: 1.5.3
    [18:58:11 INFO]: Loaded Game Worlds:
    [18:58:11 INFO]: skyworld (Skyworld): Overworld, Nether, End
    [18:58:11 INFO]: Loaded Addons:
    [18:58:11 INFO]: Biomes 1.5.0.0 (ENABLED)
    [18:58:11 INFO]: BSkyBlock 1.5.0 (ENABLED)
    [18:58:11 INFO]: Challenges 0.7.5 (ENABLED)
    [18:58:11 INFO]: Level 1.5.0 (ENABLED)
    [18:58:11 INFO]: Limits 0.2.3-SNAPSHOT (ENABLED)
    [18:58:11 INFO]: WelcomeWarps 1.5.0 (ENABLED)
  • Other plugins? [Plugins (5): BentoBox, Essentials, EpicSpawners, PermissionsEx*, Vault*]

Placed blocks deleted on server restart

Description
When restarting the server, the blocks placed are reset (File inside )

Steps to reproduce the behavior:

  1. Reach to a limit of a block
  2. Restart the server
  3. You can still place that block until reaching the limit again (at this time, the island file inside IslandBlockCount is reseted.)

Using Level 0.0.2

Limits don't show count in nether island or end island

Description
When I place a mob like a chicken in the overworld island it counts it (ex: 1/100) but in the nether and end it always shows "0/100" chickens even if there are chickens.

Steps to reproduce the behavior:

  1. Install latest limits addon (Limits-1.6.1-SNAPSHOT-b164.jar)
  2. Start server to load folder and configure limits in config.yml.
  3. Start server and place an entity in nether or end.
  4. Do /is limits and look at count.

Expected behavior
Showing exact number of specific entities on island.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Server Information:

[Please complete the following information:]

  • Database being used (YAML, JSON, MySQL, MongoDB): [] JSON

  • OS: [e.g. iOS] Don't know

  • Java Version: [e.g. Java 8] Don't know

  • BentoBox version: [e.g. 1.7.2.21] 1.6.0

  • Addons installed? [Do '/bentobox version' and copy/paste from the console] (doesn't show stuff in console and too lazy to type up so I just screenshotted)
    image

  • Other plugins? [Do '/plugins' and copy/paste from the console]
    image

Additional context
It still limits spawning correctly.
image

Placeholder: %[gamemode]_limits_#MATERIAL#_count/max%

Hello, I think a new feature in the Limits addon would be very useful to improve the bentobox plugin, it's the addition of placeholder of the /is limits.

Ex:
%bskyblock_limits_hopper% = displays the X/MAX hoppers of the island
%bskyblock_limits_hopper_#OWNER% = displays the X/MAX hoppers of the island to another player

it will allow you to see who has what on your island etc. via a custom DM menu.

thank you

Implement Entitylimit

Just a reminder (suggested in Discord) about implementing entitylimit as it is said in the addon's notes. Is a very important feature that allow us a better server's perfomance and moderated game expierience mainly with chicken, endermans and pigman limits. Really waiting for it!

if not described mob in entitylimits - he can't spawn

Description
Mob can't spawn in island if unspecified in config. It writes example: Iron Golem spawning limited to null!

Steps to reproduce the behavior:

  1. To make sure it (<MOB_NAME>) is not described in config
  2. Go to island
  3. Write /summon <MOB_NAME>
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
if limit not specificated it can spawn unlimited.

Screenshots
If applicable, add screenshots to help explain your problem.

Server Information:

[Please complete the following information:]
[11:57:16 INFO]: Running PAPER 1.15.1.
[11:57:16 INFO]: BentoBox version: 1.11.0-SNAPSHOT-b1564
[11:57:16 INFO]: Database: JSON
[11:57:16 INFO]: Loaded Game Worlds:
[11:57:16 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, End
[11:57:16 INFO]: Loaded Addons:
[11:57:16 INFO]: Biomes 1.6.0.1-SNAPSHOT-b149 (ENABLED)
[11:57:16 INFO]: Border 1.0.3 (ENABLED)
[11:57:16 INFO]: BSkyBlock 1.10.1-SNAPSHOT-b583 (ENABLED)
[11:57:16 INFO]: Challenges 0.9.0-SNAPSHOT-b396 (ENABLED)
[11:57:16 INFO]: DimensionalTrees 1.6.0-SNAPSHOT-b78 (ENABLED)
[11:57:16 INFO]: Greenhouses 1.0.0 (ENABLED)
[11:57:16 INFO]: Level 1.9.1-SNAPSHOT-b332 (ENABLED)
[11:57:16 INFO]: Likes 1.7.0-SNAPSHOT-#14 (ENABLED)
[11:57:16 INFO]: Limits 1.9.1-SNAPSHOT-b196 (ENABLED)
[11:57:16 INFO]: MagicCobblestoneGenerator 1.9.0-SNAPSHOT-b92 (ENABLED)
[11:57:16 INFO]: TwerkingForTrees 1.1.2 (ENABLED)
[11:57:16 INFO]: Warps 1.9.2-SNAPSHOT-b218 (ENABLED)

Limits recalculate doesn't seem to work

Description
When i attempt to execute the command "/bsbadmin limits calc OGreenC" in the chat, absolutely nothing happens.

Server Information:
[Please complete the following information:]

  • Database being used (YAML, JSON, MySQL, MongoDB):
    MySQL

  • OS: [e.g. iOS]
    Linux Centos

  • Java Version: [e.g. Java 8]
    Java 8

  • BentoBox version: [e.g. 1.7.2.21]
    Bentobox 1.4.0

  • Addons installed? [Do '/bentobox version' and copy/paste from the console]
    Biomes 0.4.5
    BSkyblock 1.4.2
    Level 1.4.0
    Limits 0.2.1-SNAPSHOT
    WelcomeWarps 1.4.0

Additional context

I can see, that this feature was introduced here #10

The following error appears in the console, shortly after the command is executed:

25.05 01:24:49 [Server] WARN [BentoBox] Task #60624 for BentoBox v1.4.0 generated an exception
25.05 01:24:49 [Server] INFO java.lang.NullPointerException: null
25.05 01:24:49 [Server] INFO at bentobox.addon.limits.commands.LimitsCalc.tidyUp(LimitsCalc.java:138) ~[?:?]
25.05 01:24:49 [Server] INFO at bentobox.addon.limits.commands.LimitsCalc.lambda$new$0(LimitsCalc.java:56) ~[?:?]
25.05 01:24:49 [Server] INFO at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.13.2.jar:git-Paper-625]
25.05 01:24:49 [Server] INFO at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:449) ~[patched_1.13.2.jar:git-Paper-625]
25.05 01:24:49 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1010) ~[patched_1.13.2.jar:git-Paper-625]
25.05 01:24:49 [Server] INFO at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-625]
25.05 01:24:49 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:940) ~[patched_1.13.2.jar:git-Paper-625]
25.05 01:24:49 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:837) ~[patched_1.13.2.jar:git-Paper-625]
25.05 01:24:49 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77]```

EpicSpawners error - Could not pass event SpawnerBreakEvent to BentoBox v1.5.2

Description

Describe the bug

I noticed this in the console when using BentoBox v1.5.2, Limits 0.2.1, and EpicSpawners v6-Pre-release-10.
https://pastebin.com/raw/criSW5iH

Steps to reproduce the behavior

It seems to happen while breaking spawners and using the epic spawners plugin combined with the BentoBox Limits addon.

I think there is also an issue related to the epic spawners feature where you can shift break a stacked spawner and receive the item with the appropriate stacked amount. The limits addon sometimes won't count this correctly and gets out of sync.

Screenshots and videos

Expected behavior

Environment

Server

  • OS: Ubuntu 16.04
  • Java version: Java 8 (build 1.8.0_212)

Plugins

Plugins (5): BentoBox, CMI, EpicSpawners, PermissionsEx*, Vault*

BentoBox setup

BentoBox and Addons
[Server thread/INFO]: Running PAPER 1.13.2.
[Server thread/INFO]: BentoBox version: 1.5.2
[Server thread/INFO]: Loaded Game Worlds:
[Server thread/INFO]: skyworld (Skyworld): Overworld, Nether, End
[Server thread/INFO]: Loaded Addons:
[Server thread/INFO]: Biomes 1.5.0.0 (ENABLED)
[Server thread/INFO]: BSkyBlock 1.5.0 (ENABLED)
[Server thread/INFO]: Challenges 0.7.5 (ENABLED)
[Server thread/INFO]: Level 1.5.0 (ENABLED)
[Server thread/INFO]: Limits 0.2.1-SNAPSHOT (ENABLED)
[Server thread/INFO]: WelcomeWarps 1.5.0 (ENABLED)
Configuration
  • Database: YAML

Additional context

Limits addon

Hello, i suggest to merge dragon_head and dragon_wall_head in the same limit because I don't think anyone would want to limit them separately, furthermore, dragon_wall_head doesn't appear in the gui when you set a limit, the limit work but the item show up in the gui as an air block.
Actually I can't use dragon_head to give is level and limit it to 1 per island as I can't limit dragon_head and dragon_wall_head in the same option.
And limiting a dragon_head and a dragon_wall_head separatly seems odd for players,
regards.

edit: I also suggest to merge all mobs heads in the same option as they have their own id since 1.13, putting them one by one in the gui isn't really nice.

Is Limits Recount <playername>

Is your feature request related to a problem? Please describe.
Block count files sometimes do not represent the reality on islands. I suspect several scenarios under which this could happen. My suspicion so far:

  • island deletion/purging
  • altering limits/existing islands not recalculated

Describe the solution you'd like
Command to recalculate a particular island by an admin. Something like /bsbadmin limits recount <playername> or is limits recount <playername>

Describe alternatives you've considered
The existing command is limits recount can only be executed by the player itself.
Since we can't force a player to execute this, we need to do it for them.
I tried adding the command to bskyblock's island.commands.on-join but this does not work.
The command really needs to be executed "as player".
Editing database files manually is not an option either

Additional context

Is Limits GUI - multi page support

Is your feature request related to a problem? Please describe.
If you have more than 54 tiles/entities to be limited, then the is limits GUI is not able to show all.

Describe the solution you'd like
A multiple GUI window where you can click to show page 2 with buttons like previous page / next page

Describe alternatives you've considered
Changing the sorting to show the most important. However, this is impossible because the sorting of items is incomprehensible.
Limiting less entities. However this is not undesirable or beneficial for game play.

Additional context
Screenshot_20191222_171404

Minecart limits not working correctly

Description
I am able to limit minecarts but I can not limit hopper_minecart, chest_minecart, furnace_minecart and tnt_minecart

Steps to reproduce the behavior:
Use this config and you will see you are only limited on 16 normal minecarts:
entitylimits:
MINECART: 16
HOPPER_MINECART: 16
CHEST_MINECART: 16
TNT_MINECART: 8
FURNACE_MINECART: 8

Expected behavior
The other minecart types should be limited

Screenshots
https://puu.sh/EkR86/0e03df303c.png

Server Information:
Version: 1.14.4

items prevented from being placed

image

Using the latest version of limits
animals cant be leashed getting the following message
image

also item frames cant be placed
image

the only thing in config is for hopper limit

SPAWNER material limit not working.

Description
Im currently trying to setup 'General Block Limiting' in the config.yml for Limits addons. I have hoppers working fine with a limit of 5 set default and the msg displays when I hit the limit but when im attempting to add 'SPAWNER' as a material it doesnt limit it at all ingame.
My config currently looks like this;

blocklimits:
  HOPPER: 5
  SPAWNER: 3

Steps to reproduce the behavior:

  1. Attempt to limit 'SPAWNER' placement on BSkyblock Islands.

Expected behavior
As the config reads above I expected the Limits plugin to limit to a max of 3 spawners and then display a msg (Just as it does with HOPPERS.)

Screenshots
image

Server Information:

[Please complete the following information:]

  • Database being used YAML
  • OS: Debian 7 Wheezy
  • Java Version: Java 1.8.0_131
  • BentoBox version: 1.6.0 (Same version for Limits)
  • Addons installed?
    [11:25:49] [Server thread/INFO]: Running SPIGOT 1.14.4.
    [11:25:49] [Server thread/INFO]: BentoBox version: 1.6.0
    [11:25:49] [Server thread/INFO]: Database: JSON
    [11:25:49] [Server thread/INFO]: Loaded Game Worlds:
    [11:25:49] [Server thread/INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, End
    [11:25:49] [Server thread/INFO]: Loaded Addons:
    [11:25:49] [Server thread/INFO]: BSkyBlock 1.6.0 (ENABLED)
    [11:25:49] [Server thread/INFO]: Challenges 0.8.0-SNAPSHOT-#324 (ENABLED)
    [11:25:49] [Server thread/INFO]: Level 1.6.0 (ENABLED)
    [11:25:49] [Server thread/INFO]: Limits 1.6.0 (ENABLED)
    [11:25:49] [Server thread/INFO]: MagicCobblestoneGenerator 1.5.0.1 (ENABLED)
    [11:25:49] [Server thread/INFO]: WelcomeWarps 1.6.0 (ENABLED)

[11:29:37] [Server thread/INFO]: Plugins (67): CleanroomGenerator, IronicChest, PlaceholderAPI, MobEggSpawnerBlocker, PlugMan, ChatReaction, OldCombatMechanics, DeluxeTags, MoneyFormatter, ViaVersion, ViaBackwards, WorldEdit, OpenInv, CommandBlocker, ClearLag, MessageAnnouncer, Votifier, ProtocolLib, DeathMessagesPrime, VotingPlugin, MVdWPlaceholderAPI, SketchMapUpdated, DeluxeMenus, PermissionsEx, FeatherBoard, Vault, HolographicDisplays, WorldGuard, Spleef, LockettePro, ChestCommands, ShopGUIPlus, Essentials, BeastWithDraw, BountyHunters, SC-Essentials, BuycraftX, SafeTrade, Citizens, BentoBox, CrazyAuctions, EssentialsChat, ChestShop, NoFlyZone, Quests, EssentialsProtect, Confiscate, EssentialsGeoIP, IslandBorder, ServerSigns, CommandNPC, CombatLogX, EssentialsSpawn, PlayerHeads, TitleManager, Multiverse-Core, Shopkeepers, HungerGames, MineResetLite, BlockParticles, MobArena, KillerMoney, AreaShop, HyperDrive, MineResetLitePlus, ChatControl

entitylimits expand with permissions

Is your feature request related to a problem? Please describe.
Dont work entitylimits permissions. Example i give VIP a permission bskyblock.island.limit.hopper.222 and everything is ok, but bskyblock.island.limit.cow.222 dont work.

Describe the solution you'd like
Make entitylimits permissions work.

Additional context
Using Limits-1.7.0-SNAPSHOT-b167

Per World limiting

Description
Limiting blocks (blocklimits) per world counts as if all worlds count.
Example:

blocklimits:
  HOPPER: 500
worlds:
  bskyblock_world_nether:
    HOPPER: 50

If the overworld has >50 hoppers, no hopper is allowed to be placed in the nether.
My own logic would count as follows:
450 hoppers in the overworld and 50 in the nether.
or 500 hoppers in the overworld of course.

Steps to reproduce the behavior:

  1. Set limits as above
  2. Place 45 hoppers in the overworld
  3. Go to the nether and place as many as you can
  4. See that only 5 hoppers are possible, despite the limit of 50.

Expected behavior
Limiting things per world would imho not include numbers in the global limit if per world is more strict than global

Screenshots

Server Information:

[Please complete the following information:]

  • Database being used (YAML, JSON, MySQL, MongoDB): [JSON]
  • OS: [Linux]
  • Java Version: [OpenJDK 1.8.0]
  • BentoBox version: [1.9.0 b1493]
  • Addons installed?
Running PAPER 1.14.4.
BentoBox version: 1.9.0-SNAPSHOT-b1493
Database: JSON
Loaded Game Worlds:
bskyblock_world (BSkyBlock): Overworld, Nether, End
Loaded Addons:
Biomes 1.6.0.1-SNAPSHOT-b149 (ENABLED)
BSkyBlock 1.9.0-SNAPSHOT-b525 (ENABLED)
Challenges 0.9.0-SNAPSHOT-#393 (ENABLED)
Level 1.9.0-SNAPSHOT-b309 (ENABLED)
Limits 1.9.0-SNAPSHOT-b179 (ENABLED)
MagicCobblestoneGenerator 1.7.0.2 (ENABLED)
Warps 1.8.2-SNAPSHOT-b201 (ENABLED)
  • Other plugins? [BentoBox, ChestShop, dynmap*, LuckPerms, mcMMO, PlaceholderAPI*, PlugMan, Vault, WorldBorder, WorldEdit, WorldGuard]

Additional context

bug with permission based limit

Description
It seems like limits merge at some point, meaning some limits inherits limits from other items.
It's hard to explain, and I'm not sure just why and when this happens, but I'm able reproduce the bug, on a test server, with the following setup:

Steps to reproduce the behavior:

  1. Give the player the following permissions (I'm using luckperms):
    bskyblock.island.limit.hopper.100
    bskyblock.island.limit.piston.101
    bskyblock.island.limit.beacon.102
    bskyblock.island.limit.spawner.103
  2. Relog
  3. Open island limits w. /island limits, and see that multiple items have the limit "103" - thats at least what happens for me.

Expected behavior
I would expect the hopper limit to be 100, piston 101 and so on.

Screenshots
If applicable, add screenshots to help explain your problem.
Here's a picture of my permissions:
https://gyazo.com/3ce3e44869563405068b982906f578d8

Here's a picture of my /island limits menu (after I've relogged, ofc)
The limit for pistons should idealy be 101. (according to the perm)
https://gyazo.com/ad28ebd86e0320d76bd7f65e9950e65c

Server Information:
As before mentioned, I'm currently running BentoBox on a test server, thus it is a localhost server.

  • Database: YAML

  • OS: Windows 10

  • Java version: 1.8.0_151

  • BentoBox version: 1.4.0

  • Addons installed?
    BSkyblock 1.4.2
    Limits 0.2.1-SNAPSHOT

  • Other plugins? [Do '/plugins' and copy/paste from the console]
    Bentobox, Essentials, LuckPerms, Multiverse-Core*, Vault*

ignoreCancelled = false on BlockPlace and BlockBreak events

BlockPlace and BlockBreak events have ignoreCancelled = false

@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = false)

I don't know if it is on purpose, that's why I haven't push a PR.

If player tries to break a block, and the event is cancelled, the block is counted towards the limit (for example if players try to place blocks on another player's island).

An error occurred

This error occurs when I open the server and restart the bentobox plugin.

[09:35:40 ERROR]: [BentoBox] Please report this stack trace to the addon's author(s): tastybento
java.lang.NoSuchFieldError: TIPPED_ARROW
at bentobox.addon.limits.commands.LimitPanel.(LimitPanel.java:64) ~[?:?]
at bentobox.addon.limits.Settings.(Settings.java:28) ~[?:?]
at bentobox.addon.limits.Limits.onEnable(Limits.java:40) ~[?:?]
at world.bentobox.bentobox.managers.AddonsManager.enableAddon(AddonsManager.java:168) ~[?:?]
at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_211]
at world.bentobox.bentobox.managers.AddonsManager.enableAddons(AddonsManager.java:147) ~[?:?]
at world.bentobox.bentobox.managers.AddonsManager.reloadAddons(AddonsManager.java:225) ~[?:?]
at world.bentobox.bentobox.commands.BentoBoxReloadCommand.lambda$execute$0(BentoBoxReloadCommand.java:47) ~[?:?]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.14.2.jar:git-Paper-105]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.14.2.jar:git-Paper-105]
at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1129) ~[patched_1.14.2.jar:git-Paper-105]
at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:418) ~[patched_1.14.2.jar:git-Paper-105]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1061) ~[patched_1.14.2.jar:git-Paper-105]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:905) ~[patched_1.14.2.jar:git-Paper-105]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]

Below is my plugin version

[09:37:47 INFO]: Running PAPER 1.14.2.
[09:37:47 INFO]: Bentobox 版本:1.6.0-SNAPSHOT-b1194
[09:37:47 INFO]: 已加载游戏世界:
[09:37:47 INFO]: commands.bentobox.version.game-world
[09:37:47 INFO]: 已加载组件
[09:37:47 INFO]: Biomes 1.5.2.1-SNAPSHOT-b119
[09:37:47 INFO]: BSkyBlock 1.5.3-SNAPSHOT
[09:37:47 INFO]: Challenges 0.8.0-SNAPSHOT-#275
[09:37:47 INFO]: Level 1.5.1-SNAPSHOT
[09:37:47 INFO]: Limits 0.2.0-SNAPSHOT
[09:37:47 INFO]: WelcomeWarps 1.5.0

Material cannot be null with latest snapshot

Description
This error popped up when issuing /bsb limits [player] with latest snapshot of limits:
https://pastebin.com/DUVaFJeX
This is our configuration:
https://pastebin.com/p2dSdX9u

Steps to reproduce the behavior:

  • Have configuration same as us
  • Try opening a panel for a user

Expected behavior

  • Open up a panel, and not say that an error occurred.

Server Information:

  • Database being used: mySQL
  • OS: Linux/ Debian GNU 9
  • Java Version: Java 10
  • BentoBox version:
[01:27:14] [main/INFO]: [CHAT] Running PAPER 1.13.2.
[01:27:14] [main/INFO]: [CHAT] BentoBox version: 1.6.0-SNAPSHOT-b1239
[01:27:14] [main/INFO]: [CHAT] Loaded Game Worlds:
[01:27:14] [main/INFO]: [CHAT] acidisland (acidisland): Overworld, Nether, End
[01:27:14] [main/INFO]: [CHAT] skyblock (skyblock): Overworld, Nether, End
[01:27:14] [main/INFO]: [CHAT] Loaded Addons:
[01:27:14] [main/INFO]: [CHAT] AcidIsland 1.5.0 (ENABLED)
[01:27:14] [main/INFO]: [CHAT] BentoBox-InvSwitcher 0.0.3-SNAPSHOT (ENABLED)
[01:27:14] [main/INFO]: [CHAT] Biomes 1.5.0.0 (ENABLED)
[01:27:14] [main/INFO]: [CHAT] BSkyBlock 1.5.0 (ENABLED)
[01:27:14] [main/INFO]: [CHAT] Challenges 0.7.5 (ENABLED)
[01:27:14] [main/INFO]: [CHAT] DimensionalTrees 1.1 - SerbCraft (ENABLED)
[01:27:14] [main/INFO]: [CHAT] Level 1.5.0 (ENABLED)
[01:27:14] [main/INFO]: [CHAT] Limits 0.2.3-SNAPSHOT (ENABLED)
[01:27:14] [main/INFO]: [CHAT] SerbCraftAddon 2.3 (ENABLED)
[01:27:14] [main/INFO]: [CHAT] WelcomeWarps 1.5.0 (ENABLED)
  • Other plugins: Non relevant, but can be found in many other of my issues.

Additional context

  • Specified player was offline (?)
  • Maybe it's the mushroom cow case from my previous issue, it was very confusing

/bsadmin limits recalculate

Is your feature request related to a problem? Please describe.
I've just discovered my IslandBlockCount folder is empty (it used to have files) and anybody has limits, so I would like to recalculate all limits again.

Describe the solution you'd like
It would recalculate the limits of all islands for admins who install this addon after they already have islands.

Incorrect limitations when using permissions to expand them

Description
A picture of our blocklimits config: https://i.imgur.com/qgSv4rW.png
A picture of our permissions for SkyCrafter rank: https://i.imgur.com/SvWlBvb.png
A picture of our /is limits display and a rank in the corner to prove incorrect settings:
http://prntscr.com/o6mwj5

Steps to reproduce the behavior:

  • Have same configurations as above in order to reproduce

Expected behavior
Display and only allow the limit given via permission and not more than it

Server Information:

  • Database being used: mySQL
  • OS: Debian/ Linux
  • Java Version: Java 10
  • BBox version output:
[23:08:13] [main/INFO]: [CHAT] Running PAPER 1.13.2.
[23:08:13] [main/INFO]: [CHAT] BentoBox version: 1.5.2
[23:08:13] [main/INFO]: [CHAT] Loaded Game Worlds:
[23:08:13] [main/INFO]: [CHAT] acidisland (acidisland): Overworld, Nether, End
[23:08:13] [main/INFO]: [CHAT] skyblock (skyblock): Overworld, Nether, End
[23:08:13] [main/INFO]: [CHAT] Loaded Addons:
[23:08:13] [main/INFO]: [CHAT] AcidIsland 1.5.0 (ENABLED)
[23:08:13] [main/INFO]: [CHAT] BentoBox-InvSwitcher 0.0.3-SNAPSHOT (ENABLED)
[23:08:13] [main/INFO]: [CHAT] Biomes 1.5.0.0 (ENABLED)
[23:08:13] [main/INFO]: [CHAT] BSkyBlock 1.5.0 (ENABLED)
[23:08:13] [main/INFO]: [CHAT] Challenges 0.7.5 (ENABLED)
[23:08:13] [main/INFO]: [CHAT] DimensionalTrees 1.1 - SerbCraft (ENABLED)
[23:08:13] [main/INFO]: [CHAT] Level 1.5.0 (ENABLED)
[23:08:13] [main/INFO]: [CHAT] Limits 0.2.0-SNAPSHOT (ENABLED)
[23:08:13] [main/INFO]: [CHAT] SerbCraftAddon 2.3 (ENABLED)
[23:08:13] [main/INFO]: [CHAT] WelcomeWarps 1.5.0 (ENABLED)

Additional context

    • Some seem to be fine, but beacon does not.

Critical - Not block detect

Description
The limit addon sometimes does not detect that the blocks are broken.

Screenshots
image
image
image
image

[Please complete the following information:]

  • Database being used (YAML, JSON, MySQL, MongoDB): [JSON]
  • OS: Windows
  • Java Version: Java 8
  • BentoBox version:
    image

bees and beehive bug limit

Description
If you set a bee limit it can be a bug with a beehive. When bee goes to beehive limits are removing bee from limiting. And more very strange counting bees adding to limits but you cant actually see bees in island. I had 25 bee limit and bee limit managed be 37/25.

Steps to reproduce the behavior:
build a room with potato farm and flowers build beehives setup bee limit and spawn bees and watch /is limits.

Expected behavior
Somehow correct count bees in island.

Server Information:

[23:17:55 INFO]: Running PAPER 1.15.1.
[23:17:55 INFO]: BentoBox version: 1.11.0-SNAPSHOT-b1564
[23:17:55 INFO]: Database: JSON
[23:17:55 INFO]: Loaded Game Worlds:
[23:17:55 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, End
[23:17:55 INFO]: Loaded Addons:
[23:17:55 INFO]: Biomes 1.6.0.1-SNAPSHOT-b149 (ENABLED)
[23:17:55 INFO]: Border 1.0.3 (ENABLED)
[23:17:55 INFO]: BSkyBlock 1.10.1-SNAPSHOT-b583 (ENABLED)
[23:17:55 INFO]: Challenges 0.9.0-SNAPSHOT-b396 (ENABLED)
[23:17:55 INFO]: DimensionalTrees 1.6.0-SNAPSHOT-b78 (ENABLED)
[23:17:55 INFO]: Greenhouses 1.0.0 (ENABLED)
[23:17:55 INFO]: Level 1.9.1-SNAPSHOT-b332 (ENABLED)
[23:17:55 INFO]: Likes 1.7.0-SNAPSHOT-#14 (ENABLED)
[23:17:55 INFO]: Limits 1.9.1-SNAPSHOT-b193 (ENABLED)
[23:17:55 INFO]: MagicCobblestoneGenerator 1.9.0-SNAPSHOT-b92 (ENABLED)
[23:17:55 INFO]: TwerkingForTrees 1.1.2 (ENABLED)
[23:17:55 INFO]: Warps 1.9.2-SNAPSHOT-b218 (ENABLED)

Permission for limits

It would be nice if we could give permissions to players to increase the limit of a specific entity, like how you can give permissions to increase island protection radius.

For example; the permission for hopper could be bskyblock.island.limit.HOPPER.<number/limit>

Add Support For StackMob

Is your feature request related to a problem? Please describe.
As is known, 1.14 sucks, but a stuck mob plugin will help server better. But mobs will spawn continously.
Describe the solution you'd like
Detect the correct number and sum it into the limit number.

[Critical] farm block bug , need hot fix , please

if set
WHEAT: 10 , the can't limits 10 When you plant x10 and then dismantle it, he will think you have 10
Then you never fram again

Please add limits on crops fram
only happen the all about fram block

WHEAT
SUGAR_CANE
BAMBOO
CARROT
POTATO
SWEET_BERRIES
NETHER_WART
ALL

Feature Request: /is limits

From @Poslovitch on March 29, 2017 18:45

From @ghost on May 13, 2016 20:16

This command could show how many island limits a player already has reached (hopper, animals, monsters, tileentities). Would be useful for all players and for admins there could be also the command /asadmin limits to check the limit of a specific player.

Copied from original issue: tastybento/askyblock#226

DISPLAY AS GUI

Copied from original issue: tastybento/ASkyBlock-Bugs-N-Features#64

Use limits to provide island level

Is your feature request related to a problem? Please describe.
It should be possible to use the block counting from limits as a way to provide the island level.

It could provide an always-updated level count (or estimate?) even if the player doesn't run the level command. It might also be able to give hints, like "you're almost at your next level" or something.

Describe the solution you'd like
Enable limits to provide island level as well.

Describe alternatives you've considered
The Level addon will be more accurate because it performs a full scan of the island every time. However, that is a processor intensive activity. With Limits, it's an on-going count so the level should be simple to calculate.

The risk is that the block count could get out of sync with what the island blocks really are. Players may find an exploit to add blocks and remove them without the addon counting correctly.

Additional context

Limit sheeps per color

Is your feature request related to a problem? Please describe.

  • Not really

Describe the solution you'd like

  • Our players are in need of colored wools to be farmed from sheeps. Our limit is 5 sheeps per island, but what we would like more and what would please our players is limiting 2 sheeps per each color.

Describe alternatives you've considered

  • None for now

Unable to open a /bsbadmin limit GUI

Description
I am not unable to open /bsbadmin limits GUI (nor /island limits) with new Limits snapshot.
Note: Entity limit works perfect. See an example below.

Steps to reproduce the behavior:

  1. Have entity limits in configuration like me:
  CHICKEN: 10
  PIG: 10
  COW: 10
  DONKEY: 10
  HORSE: 10
  LLAMA: 10
  MULE: 10
  MUSHROOM_COW: 10
  ITEM_FRAME: 100
  REDSTONE_COMPARATOR: 100
  TURTLE: 30
  ZOMBIE: 40
  SKELETON: 40
  CREEPER: 40
  BAT: 5
  BEACON: 30
  1. Try to spawn more than 10 Pigs (Entity limit works perfect) (Yellow arrows on screenshot)
  2. Type /bsbadmin limits or /island limits (Blue arrow on screenshot)
  3. See: https://prntscr.com/nk9k7o (No limits set in this world)

Expected behavior
Open a nice looking GUI that I've seen earlier on my localhost test server.

Server Information:

  • Database being used: mySQL
  • OS: Debian GNU/Linux 9
  • Java Version:
    Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
    Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
  • BentoBox output:
[12:47:55] [main/INFO]: [CHAT] Running PAPER 1.13.2.
[12:47:55] [main/INFO]: [CHAT] BentoBox version: 1.5.0-SNAPSHOT
[12:47:55] [main/INFO]: [CHAT] Loaded Game Worlds:
[12:47:55] [main/INFO]: [CHAT] skyblock (skyblock)
[12:47:55] [main/INFO]: [CHAT] Loaded Add-Ons
[12:47:55] [main/INFO]: [CHAT] Biomes 0.4.5-SNAPSHOT-#28
[12:47:55] [main/INFO]: [CHAT] BSkyBlock 1.4.2
[12:47:55] [main/INFO]: [CHAT] Challenges 0.7.0-SNAPSHOT-#163
[12:47:55] [main/INFO]: [CHAT] Level 1.4.0
[12:47:55] [main/INFO]: [CHAT] Limits 0.2.0-SNAPSHOT
[12:47:55] [main/INFO]: [CHAT] SerbCraftAddon 2.2
[12:47:55] [main/INFO]: [CHAT] WelcomeWarps 1.4.0
  • Other plugins?
    [06:32:17 INFO]: Plugins (50): AnimatedNames*, AreaShop, ArmorStandTools, BentoBox, BungeeTabListPlus*, ChatControl, ChestCommands, ChestShop*, ClearLag*, CrateReloaded, EditableSign, Essentials, EssentialsChat*, EssentialsSpawn*, ExecuteEverywhere*, FastAsyncWorldEdit*, FeatherBoard*, HeadDatabase*, HolographicDisplays, HungerKeeperPlus*, IPWhitelist*, IslandBorder, LeaderHeads*, LibsDisguises, LuckPerms, MobManager*, Multiverse-Core*, MVdWPlaceholderAPI*, NickRemover*, NoSleepCMDs*, OpenInv*, PlayerHeads, PlayerPoints*, ProtocolLib*, PvPManager*, PvPManagerBossBar*, RedstoneClockDetector*, RPGHealthIndicator*, SilkSpawners, SkinsRestorer, Spartan, TradeMe, TrophyHeads*, UnbreakingAnvils*, Vault*, VoidGenerator, WorldEdit, WorldGuard, WorldGuardPistonFix*, Yamler*

Additional context
Please note that I have successfully opened it on a fresh server (It was build #108), but not on our live one too. I don't know what can be the problem, our config seems to be alright too.

Per World Entity Limiting

**Is your feature request related to a problem?
Nether/End dimension is the vanilla version so there isn't a per island area there

Describe the solution you'd like
Either per world entity limiting or a method of creating a island considered region using for example worldguard

Describe alternatives you've considered
Using a chunk limiting method for the other worlds atm but would be more efficient with a per world limiter

Additional context
Other feature request is related to #12 so will not create a duplicate

1.14 support

The addon't doesn't work on 1.14:
[BentoBox] Skipping Limits as it is incompatible with the current version of BentoBox or of server software...

On 1.13 it worked fine with 0.2.1 and BentoBox 1.5.1

Mooshroom displays barrier inside a panel

Description
Put Mushroom_cow in entity limits list. It will display barrier block in /is limits panel, but still count them like it's the correct name. This is very confusing because what I see is that even the ID for this mob is MOOSHROOM, and not MUSHROOM_COW.

I have seen the code and saw that it extends "_SPAWN_EGG" string on the mob type, but who's mistaken here? Limits or minecraft? Is it mushroom_cow or mooshroom?

Screenshots
http://prntscr.com/o5wiuo

Server Information:

[Please complete the following information:]

  • Database being used: mySQL
  • OS: Debian/ Linux
  • Java Version: Java 10
  • BentoBox version: 1.5.3
  • Addons installed:
[11:55:39] [main/INFO]: [CHAT] Running PAPER 1.13.2.
[11:55:39] [main/INFO]: [CHAT] BentoBox version: 1.5.2
[11:55:39] [main/INFO]: [CHAT] Loaded Game Worlds:
[11:55:39] [main/INFO]: [CHAT] acidisland (acidisland): Overworld, Nether, End
[11:55:39] [main/INFO]: [CHAT] skyblock (skyblock): Overworld, Nether, End
[11:55:39] [main/INFO]: [CHAT] Loaded Addons:
[11:55:39] [main/INFO]: [CHAT] AcidIsland 1.5.0 (ENABLED)
[11:55:39] [main/INFO]: [CHAT] BentoBox-InvSwitcher 0.0.3-SNAPSHOT (ENABLED)
[11:55:39] [main/INFO]: [CHAT] Biomes 1.5.0.0 (ENABLED)
[11:55:39] [main/INFO]: [CHAT] BSkyBlock 1.5.0 (ENABLED)
[11:55:39] [main/INFO]: [CHAT] Challenges 0.7.5 (ENABLED)
[11:55:39] [main/INFO]: [CHAT] Level 1.5.0 (ENABLED)
[11:55:39] [main/INFO]: [CHAT] Limits 0.2.0-SNAPSHOT (ENABLED)
[11:55:39] [main/INFO]: [CHAT] SerbCraftAddon 2.3 (ENABLED)
[11:55:39] [main/INFO]: [CHAT] WelcomeWarps 1.5.0 (ENABLED)

Additional context:

Addon not working anymore

Description
Before opening the server to the public the addon was working fine just for me but today I've realised IslandBlockCount folder is empty and it is not counting anything.
Any error on console, the only message at startup:

[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Loading default limits
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit HOPPER to 250
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit PISTON to 400
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit STICKY_PISTON to 400
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit OBSERVER to 800
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit REDSTONE_TORCH to 400
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit REDSTONE_WIRE to 3500
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit REPEATER to 350
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit DROPPER to 50
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit DISPENSER to 50
[10:13:49] [Server thread/INFO]: [BentoBox] [Limits] Limit SPAWNER to 4
[10:13:49] [Server thread/INFO]: [BentoBox] Enabling Limits...

Server Information:

[Please complete the following information:]

  • Database: yml
  • Limits: 0.1.0

Build #174 problem

Description
Only when update limits addon 174 or above give this error .

Screenshots
image

Could not pass event IslandDeletedEvent on island reset

Description

08.02 08:36:52 [Server] ERROR Could not pass event IslandDeletedEvent to BentoBox v1.2.1
08.02 08:36:52 [Server] INFO org.bukkit.event.EventException: null
08.02 08:36:52 [Server] INFO at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:72) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at world.bentobox.bentobox.api.events.island.IslandEvent$IslandEventBuilder.build(IslandEvent.java:362) ~[?:?]
08.02 08:36:52 [Server] INFO at world.bentobox.bentobox.util.DeleteIslandChunks.lambda$new$0(DeleteIslandChunks.java:51) ~[?:?]
08.02 08:36:52 [Server] INFO at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:82) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:449) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1003) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:938) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:836) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
08.02 08:36:52 [Server] INFO Caused by: java.lang.NullPointerException
08.02 08:36:52 [Server] INFO at bentobox.addon.limits.listeners.BlockLimitsListener.onIslandDelete(BlockLimitsListener.java:278) ~[?:?]
08.02 08:36:52 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor391.execute(Unknown Source) ~[?:?]
08.02 08:36:52 [Server] INFO at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70) ~[patched_1.13.2.jar:git-Paper-513]
08.02 08:36:52 [Server] INFO ... 12 more

Steps to reproduce the behavior:

  1. Reset an island

Server Information:

  • Database: yml
  • Limits 0.0.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.