public static void sendMessage(SignActionEvent info, MinecartGroup group) { String msg = getMessage(info); for (MinecartMember member : group) { if (!member.hasPlayerPassenger()) return; Player player = (Player) member.getPassenger(); sendMessage(msg, player); } }
public static void sendMessage(SignActionEvent info, MinecartMember member) { if (!member.hasPlayerPassenger()) return; Player player = (Player) member.getPassenger(); sendMessage(getMessage(info), player); }