コード例 #1
0
ファイル: VgTrade.java プロジェクト: Muson/vgTrade
 /**
  * Attempts to begin a trade for the two given players
  *
  * @param initiator The player who initiated the trade
  * @param target The target of the initiator
  */
 public void requestTrade(Player initiator, Player target) {
   if (playersIgnoring.contains(target.getName())) {
     initiator.sendMessage(
         ChatColor.RED
             + target.getName()
             + " "
             + LanguageManager.getString(LanguageManager.Strings.PLAYERIGNORING));
   } else if (config.canTrade(initiator, target)) {
     manager.begin(new TradePlayer(initiator), new TradePlayer(target));
   }
 }