Skip to content

Commit

Permalink
fixed EtienneDx#22, smaller default page size
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneDx committed May 15, 2020
1 parent bb92624 commit 1e3f8f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/me/EtienneDx/RealEstate/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class Config extends AnnotationConfig
public int cfgLeasePayments = 5;

@ConfigField(name="RealEstate.Settings.PageSize", comment = "How many Real Estate offer should be shown by page using the '/re list' command")
public int cfgPageSize = 20;
public int cfgPageSize = 8;

public Config()
{
Expand Down
3 changes: 2 additions & 1 deletion src/me/EtienneDx/RealEstate/RealEstate.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ else if(tr instanceof BoughtTransaction && ((BoughtTransaction)tr).getBuyer() !=
throw new ConditionFailedException("This command only applies to rented claims!");
}
if((((ClaimRent)tr).buyer != null && ((ClaimRent)tr).buyer.equals(context.getIssuer().getPlayer().getUniqueId())) ||
tr.getOwner().equals(context.getIssuer().getPlayer().getUniqueId()))
(tr.getOwner() != null && (tr.getOwner().equals(context.getIssuer().getPlayer().getUniqueId()))) ||
(c.isAdminClaim() && RealEstate.perms.has(context.getIssuer().getPlayer(), "realestate.admin")))
{
return;
}
Expand Down

0 comments on commit 1e3f8f7

Please sign in to comment.