Skip to content

Limits spams console when setting login limits from permissions #277

Description

@Incluuu

Expected behavior

Limits should not spam the console when applying permission-based limits.
These messages should be logged only once per player login or moved to debug mode.

Observed/Actual behavior

When a player has permission-based limits, the same messages are repeated many times in the console:

[09:37:44 INFO]: [BentoBox] [Limits] Setting login limit via perm for test_account...
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NORMAL to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NETHER to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in THE_END to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting login limit via perm for test_account...
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NORMAL to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NETHER to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in THE_END to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting login limit via perm for test_account...
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NORMAL to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NETHER to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in THE_END to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting login limit via perm for test_account...
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NORMAL to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NETHER to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in THE_END to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting login limit via perm for test_account...
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NORMAL to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NETHER to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in THE_END to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting login limit via perm for test_account...
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NORMAL to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NETHER to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in THE_END to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting login limit via perm for test_account...
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NORMAL to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in NETHER to 30
[09:37:44 INFO]: [BentoBox] [Limits] Setting entity limit VILLAGER in THE_END to 30

This happens repeatedly within the same second and creates unnecessary console spam.

Steps/models to reproduce

Give a player a permission-based Limits permission, for example a VILLAGER entity limit.
Join the server with that player.
Check the console.
The same limit-setting messages are printed multiple times.

BentoBox version

BentoBox v3.19.0

Plugin list

No response

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions