Skip to content
Browse files
Cancelling ChangeSignEvent as well (#1204)
This should prevent text from appearing on the sign at all. This will resolve problems that could potentially arise as a result of the event not being cancelled.
  • Loading branch information
44trent3 committed May 27, 2020
1 parent 126fa6c commit 26fff84cf7bc0deca03b946d4e1409d70804b81e
Showing 1 changed file with 1 addition and 0 deletions.
@@ -165,6 +165,7 @@ public void onChangeSign(ChangeSignEvent event, @First Player player) {

if (!icType.getPermissionNode().hasPermission(player)) {
player.sendMessage(Text.of(TextColors.RED, "You don't have permission to create this IC!"));
} else {
List<Text> lines = event.getText().lines().get();
lines.set(0, Text.of(icType.getShorthand().toUpperCase()));

0 comments on commit 26fff84

Please sign in to comment.