playernotifier: drop paper api that doesnt exist in 1.17
This commit is contained in:
parent
817b6c823a
commit
b1350ab36b
@ -96,8 +96,7 @@ public class PlayerNotifier implements Listener {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Title title = new Title.Builder().title(event.newRegion.name()).subtitle("Population: "+pop+" Altitude: " + altitude).build();
|
event.player.sendTitle(event.newRegion.coloredName(), "Population: " + pop + " Altitude: " + altitude);
|
||||||
event.player.sendTitle(title);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user