Skip to content

Commit

Permalink
Don't send offline players into gp tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 26, 2016
1 parent d581ce9 commit 60166c5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -174,7 +174,7 @@ else if (attribute.startsWith("chunks")) {
// -->
else if (attribute.startsWith("can_siege") && attribute.hasContext(1)) {
dPlayer defender = dPlayer.valueOf(attribute.getContext(1));
if (defender == null) {
if (defender == null || defender.getPlayerEntity() == null) {
return null;
}
return new Element(claim.canSiege(defender.getPlayerEntity())).getAttribute(attribute.fulfill(1));
Expand Down

0 comments on commit 60166c5

Please sign in to comment.