Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Added permissions support for SpoutPlayer
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren