[SPIGOT-1655] setCancelled() in ServerCommandEvent does not seem to work Created: 02/Mar/16  Updated: 02/Mar/16  Resolved: 02/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Martin Ambrus Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.9, spigot
Environment:

Win 10, Java 8


Plugin: a custom-coded plug-in

 Description   

I've been just trying to cancel event in the ServerCommandEvent but e.setCancelled(), while it did not bring up any error or exception, seem to have been simply ignored. As a result, the console command went through. PlayerCommandPreprocessEvent works fine though.



 Comments   
Comment by Martin Ambrus [ 02/Mar/16 ]

You are correct. I've not seen that one while searching. Any easy way to close this?

Comment by Black Hole [ 02/Mar/16 ]

Duplicate of SPIGOT-1634

Generated at Tue Apr 15 11:10:32 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.