Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Added 'xp' as a parameter of the /remove command to remove experience orbs.
Dieser Commit ist enthalten in:
Ursprung
d6ed17dd9d
Commit
b10498b9c7
@ -10,4 +10,5 @@ public enum EntityType {
|
||||
BOATS,
|
||||
MINECARTS,
|
||||
TNT,
|
||||
XP_ORBS
|
||||
}
|
@ -28,6 +28,7 @@ import org.bukkit.entity.Arrow;
|
||||
import org.bukkit.entity.Boat;
|
||||
import org.bukkit.entity.Creature;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.ExperienceOrb;
|
||||
import org.bukkit.entity.Ghast;
|
||||
import org.bukkit.entity.Item;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
@ -535,6 +536,11 @@ public class BukkitWorld extends LocalWorld {
|
||||
ent.remove();
|
||||
++num;
|
||||
}
|
||||
} else if (type == EntityType.XP_ORBS) {
|
||||
if (ent instanceof ExperienceOrb) {
|
||||
ent.remove();
|
||||
++num;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -404,8 +404,10 @@ public class UtilityCommands {
|
||||
type = EntityType.MINECARTS;
|
||||
} else if (typeStr.matches("tnt")) {
|
||||
type = EntityType.TNT;
|
||||
} else if (typeStr.matches("xp")) {
|
||||
type = EntityType.XP_ORBS;
|
||||
} else {
|
||||
player.printError("Acceptable types: arrows, items, paintings, boats, minecarts, tnt");
|
||||
player.printError("Acceptable types: arrows, items, paintings, boats, minecarts, tnt, xp");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren