mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-27 12:38:21 +01:00
Fix crash reported in #24.
GUI will be opened only if caller is player.
This commit is contained in:
parent
76a65c392f
commit
c40c9c4044
@ -17,7 +17,9 @@ public class IslandTop extends CompositeCommand {
|
||||
|
||||
@Override
|
||||
public boolean execute(User user, String label, List<String> list) {
|
||||
plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
|
||||
if (user.isPlayer()) {
|
||||
this.plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user