mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 08:39:05 +00:00
@@ -511,7 +511,7 @@ public abstract class Player {
|
||||
PestControl.leaveWaitingBoat(this);
|
||||
getPlayerAssistant().movePlayer(2657, 2639, 0);
|
||||
}
|
||||
if (hasNpc) {
|
||||
if (hasNpc == true) {
|
||||
getSummon().pickUpClean(this, summonId);
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ public abstract class Player {
|
||||
lastY = absY;
|
||||
lastH = heightLevel;
|
||||
CycleEventHandler.getSingleton().stopEvents(this);
|
||||
if (hasNpc) {
|
||||
if (hasNpc == true) {
|
||||
getSummon().pickUpClean(this, summonId);
|
||||
}
|
||||
if (forceLogout || System.currentTimeMillis() - logoutDelay > 2500) {
|
||||
@@ -725,6 +725,10 @@ public abstract class Player {
|
||||
return validClient(getClient(id));
|
||||
}
|
||||
|
||||
public boolean validClient(String name) {
|
||||
return validClient(getClient(name));
|
||||
}
|
||||
|
||||
public boolean validClient(Client client) {
|
||||
return client != null && !client.disconnected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user