generated from tilera/1710mod
19 lines
500 B
Java
19 lines
500 B
Java
|
package electricexpansion.common.helpers;
|
||
|
|
||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||
|
|
||
|
public class PlayerHelper {
|
||
|
public static boolean isPlayerOp(String playerName) {
|
||
|
String[] ops = FMLCommonHandler.instance()
|
||
|
.getMinecraftServerInstance()
|
||
|
.getConfigurationManager()
|
||
|
.func_152606_n();
|
||
|
|
||
|
for (String op : ops) {
|
||
|
if (playerName.equalsIgnoreCase(op))
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
}
|