Skip to content

[Bug] Standing on a pressure plate can lag you with the number of "Cannot interact with blocks" messages #1957

@ninjakitty844

Description

@ninjakitty844

Description

For every tick (1/20th of a second) you stand on a pressure plate that you cannot interact with (claimed by another faction that doesn't give you permission), you receive a message telling you that you cannot interact with it.

If I stand on TWO pressure plates at once, my computer can barely handle the number of messages it receives.

Steps to Reproduce

  1. Go into someone else's claims where you do not have permission to interact with blocks
  2. Step on pressure plates

The bug is not critical, but my players tend to use pressure plates on top of fence posts to represent tables, and unfortunately my players drop frames any time they sit at a table like that.

Expected Behavior

Maybe there should be a cooldown on "cannot interact" messages per-player?
Or maybe these messages just shouldn't show up for pressure plates?

On my server personally, I would prefer that pressure plates do not send a "cannot interact" message at all, since most of the time my players are not trying to interact with them even when stepping through them, and most players will understand that they cannot activate pressure plates in claims that they don't have permission to interact in.

Actual Behavior

Image It's hard to explain how much lag this causes, but for reference I get 120+ FPS when not standing on these pressure plates here. I have a chat mod that compresses these messages so I don't see all 100+ of them at once, the yellow number is how many times the same message has been repeated. I didn't stand on the pressure plates for long.

Environment Details

Java Version:

  • Java 8
  • Java 11
  • Java 16
  • Java 17
  • Java 23

Plugin Version:

  • v5.3.0
  • v5.4.0
  • v5.5.0
  • v5.7.2

Server Software & Version:

  • Spigot
  • Paper

Version: 1.19.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions