Skip to content

Limit on number of tiles #217

@Wild1145

Description

@Wild1145

What steps will reproduce the problem?

We've identified bugs where if you try to set the tiles to be the world borders, it uses any memory the server has left. To make sure this doesn't happen and to make sure that we don't end up in a state where things are generally un-stable, we want to have a configurable limit.

What were you expecting to happen? What happened instead?

It to error out gracefully not take up all server memory and totally crash the server

What version of the plugin are you using? Type /version <Plugin Name>

4.13.0-SNAPSHOT (According to the spigot download anyway)

What Spigot version are you using? Type /version

Tested on multiple 1.16.5 Builds

What plugins are you using? Type /plugins

Various, but that's un-related to this bug...

Do you have an error log? Use pastebin.com. If you're not sure, upload your whole server log

Not to hand, easy enough to just re-produce...

Did your client crash? Upload errors in .minecraft/logs/latest.log as well

No

Additional information? (Are you using Bungeecord? Did it work in previous versions? etc.)

As you have to select the bottom left and top right tiles, We suggest a calculation to happen and work out the maximum number of tiles that might be affected and if that goes above the pre-configured number, fail fast and reject the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions