Towny Classic

Towny Classic

3.2k Downloads

Nation deletion message is broadcast after cancelling PreDeleteNationEvent

galacticwarrior9 opened this issue ยท 0 comments

commented

What steps will reproduce the problem?

  1. Cancel PreDeleteNationEvent
    @EventHandler
    public void onPreNationDelete(PreDeleteNationEvent event) {
            event.setCancelled(true);
    }
  1. Observe how the nation deletion message is broadcast in chat despite the nation not being deleted.

What is the expected output?

No deletion message is broadcast.

Towny version

0.100.2.4 and 0.100.2.5

Server version

git-Purpur-2169 (MC: 1.20.4)

Please use Pastebin.com to link the following files

  1. Your full server startup from the logs\latest.log: See Line 950 onwards.
  2. Your Towny config.yml: Same as previously
  3. Your log's error: No error.