Added permissions support for SpoutPlayer

This commit is contained in:
zml2008 2012-01-07 22:14:36 -08:00
parent e1428602af
commit 750e525806
2 changed files with 5 additions and 8 deletions

View File

@ -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

View File

@ -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