Пример #1
0
 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);
   }
 }
Пример #2
0
 public static void sendMessage(SignActionEvent info, MinecartMember member) {
   if (!member.hasPlayerPassenger()) return;
   Player player = (Player) member.getPassenger();
   sendMessage(getMessage(info), player);
 }