MobArena plugin for Minecraft
Go to file
Andreas Troelsen af513b03b0 Prevent unauthorized sign edits.
Since Minecraft 1.20, players can edit signs by right-clicking on them,
and that poses a problem for the sign-centric portions of the plugin,
such as class selection signs and the various types of arena signs.

This commit refactors the PlayerInteractEvent handler in ArenaListener
in order to break open the possibility of handling non-lobby players as
well. We're a little more strict with lobby players, and we still want
to handle class sign clicks and iron block clicks here. For players who
aren't in the lobby, we're really just blocking the event according to
the regular protection rules (block is inside region, protect is on, and
arena is not in edit mode).

It also blanket cancels events in the HandlesSignClicks event handler,
because there is no meaningful way to edit an arena sign, since their
contents come from the template file and not from what is written on
them by the sign renderer.

Ideally, we'd refactor some of this event handler logic, because it's a
lot easier to take care of the individual responsibilities in separate
event handlers.

Fixes #765
2023-11-04 00:20:39 +01:00
.github Upgrade versions in GitHub Actions 2023-10-22 01:27:53 +02:00
.mvn/wrapper Add Maven Wrapper. 2020-11-04 01:21:50 +01:00
src Prevent unauthorized sign edits. 2023-11-04 00:20:39 +01:00
.gitignore Clean up .gitignore. 2020-11-08 19:27:22 +01:00
changelog.md Prevent unauthorized sign edits. 2023-11-04 00:20:39 +01:00
LICENSE Add LICENSE 2018-04-27 16:32:02 +02:00
mvnw Add Maven Wrapper. 2020-11-04 01:21:50 +01:00
mvnw.cmd Add Maven Wrapper. 2020-11-04 01:21:50 +01:00
pom.xml Add -Xlint:all to compiler args. 2023-10-23 18:35:54 +02:00
README.md Replace Travis CI with Github Actions. 2021-04-15 17:24:56 +02:00

MobArena Build Status

MobArena is an arena-style minigame for Spigot-based Minecraft servers

Getting Started

If you don't want to compile the plugin yourself, grab a release artifact from one of these two sites:

The wiki here on Github should have all the information you need to get started using the plugin.

Getting Help

If you run into problems or need help with something, feel free to hop on the MobArena Discord server to have a chat: Instant Invite

Remember, though, that this communication channel is idle chat, which means you likely won't get a response immediately. It could take anything from a couple of seconds to a day, but your message will be seen.

Contributing

Found a bug, got a suggestion, or want to dig into the code base? There are many ways to contribute to the project!

Get started here: Contributing