Ignore cancelled sign change events

This commit is contained in:
Phoenix616 2018-11-21 00:45:39 +01:00
parent b853afbd52
commit bc14736a37

View File

@ -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());