mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-30 14:03:21 +01:00
Ignore cancelled sign change events
This commit is contained in:
parent
b853afbd52
commit
bc14736a37
@ -18,7 +18,7 @@ import org.bukkit.event.block.SignChangeEvent;
|
|||||||
*/
|
*/
|
||||||
public class SignCreate implements Listener {
|
public class SignCreate implements Listener {
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler(ignoreCancelled = true)
|
||||||
public static void onSignChange(SignChangeEvent event) {
|
public static void onSignChange(SignChangeEvent event) {
|
||||||
Block signBlock = event.getBlock();
|
Block signBlock = event.getBlock();
|
||||||
String[] line = StringUtil.stripColourCodes(event.getLines());
|
String[] line = StringUtil.stripColourCodes(event.getLines());
|
||||||
|
Loading…
Reference in New Issue
Block a user