Fixed log errors when accrued per hour = 0.
This commit is contained in:
parent
a45858c7de
commit
b1b8d537c3
|
|
@ -38,8 +38,10 @@ class DeliverClaimBlocksTask implements Runnable
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
//if no player specified, this task will create a player-specific task for each online player, scheduled one tick apart
|
if(GriefPrevention.instance.config_claims_blocksAccruedPerHour <= 0) return;
|
||||||
if(this.player == null && GriefPrevention.instance.config_claims_blocksAccruedPerHour > 0)
|
|
||||||
|
//if no player specified, this task will create a player-specific task for each online player, scheduled one tick apart
|
||||||
|
if(this.player == null)
|
||||||
{
|
{
|
||||||
Collection<Player> players = (Collection<Player>)GriefPrevention.instance.getServer().getOnlinePlayers();
|
Collection<Player> players = (Collection<Player>)GriefPrevention.instance.getServer().getOnlinePlayers();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user