mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed 2 warnings.
This commit is contained in:
parent
379189f224
commit
30515a65f5
@ -76,6 +76,7 @@ public class DynamicPluginCommand extends org.bukkit.command.Command implements
|
|||||||
return owningPlugin;
|
return owningPlugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public boolean testPermissionSilent(CommandSender sender) {
|
public boolean testPermissionSilent(CommandSender sender) {
|
||||||
if (permissions == null || permissions.length == 0) {
|
if (permissions == null || permissions.length == 0) {
|
||||||
@ -85,7 +86,7 @@ public class DynamicPluginCommand extends org.bukkit.command.Command implements
|
|||||||
if (registeredWith instanceof CommandsManager<?>) {
|
if (registeredWith instanceof CommandsManager<?>) {
|
||||||
try {
|
try {
|
||||||
for (String permission : permissions) {
|
for (String permission : permissions) {
|
||||||
if (((CommandsManager) registeredWith).hasPermission(sender, permission)) {
|
if (((CommandsManager<CommandSender>) registeredWith).hasPermission(sender, permission)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -212,8 +212,8 @@ public class SpoutWorld extends LocalWorld {
|
|||||||
public void setBiome(Vector2D pt, BiomeType biome) {
|
public void setBiome(Vector2D pt, BiomeType biome) {
|
||||||
if (biome instanceof SpoutBiomeType &&
|
if (biome instanceof SpoutBiomeType &&
|
||||||
world.getGenerator() instanceof BiomeGenerator) {
|
world.getGenerator() instanceof BiomeGenerator) {
|
||||||
BiomeGenerator gen = (BiomeGenerator) world.getGenerator();
|
|
||||||
throw new UnsupportedOperationException("Biome changing is not yet supported in Spout");
|
throw new UnsupportedOperationException("Biome changing is not yet supported in Spout");
|
||||||
|
//BiomeGenerator gen = (BiomeGenerator) world.getGenerator();
|
||||||
//gen.setBiome(new Vector3(pt.getBlockX(), 0, pt.getBlockZ()), ((SpoutBiomeType) biome).getSpoutBiome());
|
//gen.setBiome(new Vector3(pt.getBlockX(), 0, pt.getBlockZ()), ((SpoutBiomeType) biome).getSpoutBiome());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user