mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 15:46:54 +02:00
CME
This commit is contained in:
@@ -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()))
|
||||||
|
Reference in New Issue
Block a user