Minor Performance Opt
This commit is contained in:
parent
337031fc11
commit
7f1df290c8
@ -66,10 +66,14 @@ public abstract class SenderEntity<E extends SenderEntity<E>> extends Entity<E>
|
|||||||
|
|
||||||
public boolean convertGet(Boolean wrapper, String permission)
|
public boolean convertGet(Boolean wrapper, String permission)
|
||||||
{
|
{
|
||||||
// Permission requirement
|
// Create
|
||||||
if ( ! PermUtil.has(this.getSender(), permission)) return false;
|
boolean ret = super.convertGet(wrapper);
|
||||||
|
|
||||||
return super.convertGet(wrapper);
|
// Permission Requirement
|
||||||
|
if (ret && ! PermUtil.has(this.getSender(), permission)) return false;
|
||||||
|
|
||||||
|
// Return
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
Loading…
Reference in New Issue
Block a user