Prevent snowball throw if player hasn't selected a class
Added
This commit is contained in:
parent
137e5a5125
commit
05a63b9a52
|
|
@ -89,6 +89,7 @@ public class SnowballEvent implements Listener {
|
|||
handleSnowballThrown(event, (shooter, shooterTeamPlayer, snowball) -> {
|
||||
GameClass shooterClass = shooterTeamPlayer.getGameClass();
|
||||
if (shooterClass == null) {
|
||||
shooter.sendRichMessage("<red>You appear to not have selected a class, please do so by going to spawn and using /ctf selectclass</red>");
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user