Changes priority to Monitor, and skips checking for matches if the player is exempt from payment

This commit is contained in:
Kristian Knarvik 2022-02-18 00:56:55 +01:00
parent ed5690d197
commit d331612d51

View File

@ -17,9 +17,9 @@ import java.util.List;
*/
public class SignListener implements Listener {
@EventHandler(priority = EventPriority.LOW)
@EventHandler(priority = EventPriority.MONITOR)
public void onSignChange(SignChangeEvent event) {
if (event.isCancelled()) {
if (event.isCancelled() || event.getPlayer().hasPermission("paidsigns.paymentexempt")) {
return;
}