Towny Classic

Towny Classic

3.2k Downloads

PlotPreClaimEvent success message isn't cancelled by event.setCancelled(true)

Closed this issue ยท 0 comments

commented

What steps will reproduce the problem?

@EventHandler
public void prePlotClaim(PlotPreClaimEvent event) {
    event.setCancelled(true);
}

While the plot claiming is cancelled, the success message after it is still sent
"Successfully claimed {block world coords}"

What is the expected output?

The message should be cancelled as well

Towny version

0.101.1.0

Server version

This server is running Paper version 1.21.4-187-main@1d5e5a5 (2025-02-28T19:53:30Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)

Please use Pastebin.com to link the following files

  1. Your full server startup from the logs\latest.log:
    https://pastebin.com/JiaM1Lrg
  2. Your Towny config.yml:
    https://pastebin.com/tRyWvj19
  3. Your townyperms.yml:
    https://pastebin.com/ApXkFuyR
  4. Your log's error:
    No error in console

(optional) If this is to do with permissions,
5. Your permissions file:

(optional) If this is to do with chat,
6. Your chatconfig.yml:
7. Your channels.yml: