Online player check for duels.
Contributed by xionati.
This commit is contained in:
parent
f5fdfc93c5
commit
9b24b0ec01
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -871,7 +871,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -848,7 +848,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -848,7 +848,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -865,7 +865,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -867,7 +867,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -871,7 +871,7 @@ public class Duel
|
|||||||
public DuelResult checkEndDuelCondition()
|
public DuelResult checkEndDuelCondition()
|
||||||
{
|
{
|
||||||
// one of the players might leave during duel
|
// one of the players might leave during duel
|
||||||
if ((_playerA == null) || (_playerB == null))
|
if ((_playerA == null) || (_playerB == null) || !_playerA.isOnline() || !_playerB.isOnline())
|
||||||
{
|
{
|
||||||
return DuelResult.CANCELED;
|
return DuelResult.CANCELED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user