mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Added permissions support for SpoutPlayer
This commit is contained in:
parent
e1428602af
commit
750e525806
@ -24,8 +24,7 @@ public class SpoutCommandSender extends LocalPlayer {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
//return sender.getName();
|
||||
return "Console";
|
||||
return sender.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -51,14 +50,12 @@ public class SpoutCommandSender extends LocalPlayer {
|
||||
|
||||
@Override
|
||||
public String[] getGroups() {
|
||||
return new String[0];
|
||||
return sender.getGroups();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(String perm) {
|
||||
// TODO: Implement permissions
|
||||
// return sender.isOp():
|
||||
return true;
|
||||
return sender.hasPermission(perm);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -116,7 +116,7 @@ public class SpoutPlayer extends LocalPlayer {
|
||||
|
||||
@Override
|
||||
public String[] getGroups() {
|
||||
return new String[0];
|
||||
return player.getGroups();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -126,7 +126,7 @@ public class SpoutPlayer extends LocalPlayer {
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(String perm) {
|
||||
return true; // TODO: Implement permissions
|
||||
return player.hasPermission(perm);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user