Minor Comment Tweaks
This commit is contained in:
parent
a063bab045
commit
121dc67365
@ -14,12 +14,17 @@ public abstract class WorldMixinAbstract implements WorldMixin
|
|||||||
@Override
|
@Override
|
||||||
public List<String> getVisibleWorldIds(Permissible permissible)
|
public List<String> getVisibleWorldIds(Permissible permissible)
|
||||||
{
|
{
|
||||||
|
// Create
|
||||||
List<String> ret = new ArrayList<String>();
|
List<String> ret = new ArrayList<String>();
|
||||||
|
|
||||||
|
// Fill
|
||||||
for (String worldId : this.getWorldIds())
|
for (String worldId : this.getWorldIds())
|
||||||
{
|
{
|
||||||
if (!this.canSeeWorld(permissible, worldId)) continue;
|
if ( ! this.canSeeWorld(permissible, worldId)) continue;
|
||||||
ret.add(worldId);
|
ret.add(worldId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,7 +39,7 @@ public abstract class WorldMixinAbstract implements WorldMixin
|
|||||||
@Override
|
@Override
|
||||||
public String getWorldDisplayName(String worldId)
|
public String getWorldDisplayName(String worldId)
|
||||||
{
|
{
|
||||||
return this.getWorldColor(worldId).toString()+this.getWorldAliasOrId(worldId);
|
return this.getWorldColor(worldId).toString() + this.getWorldAliasOrId(worldId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -36,11 +36,16 @@ public class WorldMixinDefault extends WorldMixinAbstract
|
|||||||
@Override
|
@Override
|
||||||
public List<String> getWorldIds()
|
public List<String> getWorldIds()
|
||||||
{
|
{
|
||||||
|
// Create
|
||||||
List<String> ret = new ArrayList<String>();
|
List<String> ret = new ArrayList<String>();
|
||||||
|
|
||||||
|
// Fill
|
||||||
for (World world : Bukkit.getWorlds())
|
for (World world : Bukkit.getWorlds())
|
||||||
{
|
{
|
||||||
ret.add(world.getName());
|
ret.add(world.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user