mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
comments update.
This commit is contained in:
parent
1a2a5d3d05
commit
e388e4d306
@ -16,7 +16,7 @@ public class BedLeave extends Check {
|
|||||||
*
|
*
|
||||||
* @param player
|
* @param player
|
||||||
* the player
|
* the player
|
||||||
* @return Location to teleport to if it is a violation.
|
* @return If to prevent action (would be set back location of survivalfly).
|
||||||
*/
|
*/
|
||||||
public boolean checkBed(final Player player) {
|
public boolean checkBed(final Player player) {
|
||||||
final CombinedData data = CombinedData.getData(player);
|
final CombinedData data = CombinedData.getData(player);
|
||||||
@ -34,8 +34,9 @@ public class BedLeave extends Check {
|
|||||||
cancel = true;
|
cancel = true;
|
||||||
}
|
}
|
||||||
} else{
|
} else{
|
||||||
// He has, everything is alright.
|
// He has, everything is allright.
|
||||||
data.wasInBed = false;
|
data.wasInBed = false;
|
||||||
|
// TODO: think about decreasing the vl ?
|
||||||
}
|
}
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user