mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
CME
This commit is contained in:
parent
6a9027da6d
commit
a75eefcdd4
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.earth2me.essentials;
|
package com.earth2me.essentials;
|
||||||
|
|
||||||
import static com.earth2me.essentials.I18n._;
|
import static com.earth2me.essentials.I18n._;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -73,7 +74,7 @@ public enum Mob
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Set<String> getMobList() {
|
public static Set<String> getMobList() {
|
||||||
return hashMap.keySet();
|
return Collections.unmodifiableSet(hashMap.keySet());
|
||||||
}
|
}
|
||||||
|
|
||||||
public LivingEntity spawn(final Player player, final Server server, final Location loc) throws MobException
|
public LivingEntity spawn(final Player player, final Server server, final Location loc) throws MobException
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class Commandspawnmob extends EssentialsCommand
|
||||||
{
|
{
|
||||||
if (args.length < 1)
|
if (args.length < 1)
|
||||||
{
|
{
|
||||||
Set<String> availableList = Mob.getMobList();
|
final Set<String> availableList = Mob.getMobList();
|
||||||
for (String mob : availableList)
|
for (String mob : availableList)
|
||||||
{
|
{
|
||||||
if (!user.isAuthorized("essentials.spawnmob." + mob.toLowerCase()))
|
if (!user.isAuthorized("essentials.spawnmob." + mob.toLowerCase()))
|
||||||
|
|
Loading…
Reference in a new issue