mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-24 11:37:06 +01:00
parent
c504909668
commit
9a64ae58c7
@ -577,12 +577,15 @@ public class Portal {
|
|||||||
} else if (command.startsWith("!") && plugin.getSettings().enabledCommandLevel("o")) {
|
} else if (command.startsWith("!") && plugin.getSettings().enabledCommandLevel("o")) {
|
||||||
command = command.substring(1);
|
command = command.substring(1);
|
||||||
boolean wasOp = player.isOp();
|
boolean wasOp = player.isOp();
|
||||||
try {
|
if(!wasOp) {
|
||||||
player.setOp(true);
|
try {
|
||||||
|
player.setOp(true);
|
||||||
|
player.chat("/" + command);
|
||||||
|
} finally {
|
||||||
|
player.setOp(false);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
player.chat("/" + command);
|
player.chat("/" + command);
|
||||||
// player.performCommand(command);
|
|
||||||
} finally {
|
|
||||||
player.setOp(wasOp);
|
|
||||||
}
|
}
|
||||||
} else if (command.startsWith("^") && plugin.getSettings().enabledCommandLevel("p")) {
|
} else if (command.startsWith("^") && plugin.getSettings().enabledCommandLevel("p")) {
|
||||||
command = command.substring(1);
|
command = command.substring(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user