Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
poma123 committed Nov 27, 2018
1 parent 5bd53ba commit f909985
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
26 changes: 23 additions & 3 deletions src/me/poma123/spawners/PickupSpawners.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.bukkit.plugin.java.JavaPlugin;

import me.poma123.spawners.language.Language;
import net.md_5.bungee.api.ChatColor;

public class PickupSpawners extends JavaPlugin implements org.bukkit.event.Listener {

Expand Down Expand Up @@ -106,17 +107,36 @@ public void onEnable() {
for (EntityType entity : EntityType.values()) {

if (getVersion().contains("1_13_R")) {
if (Material.getMaterial(entity.toString().toUpperCase() + "_SPAWN_EGG") != null) {
if (entity.toString().toLowerCase().equals("pig_zombie")) {
if (debug) {
getLogger().info("[Debug] " + ChatColor.GREEN + entity.toString() + " added to the entities list.");
}
entities.add(entity.toString().toLowerCase());

} else if (Material.getMaterial(entity.toString().toUpperCase() + "_SPAWN_EGG") != null) {
if (debug) {
getLogger().info("[Debug] " + ChatColor.GREEN + entity.toString() + " added to the entities list.");
}
entities.add(entity.toString().toLowerCase());
} else {
if (debug) {
getLogger().info("[Debug] " + ChatColor.RED + entity.toString() + " NOT added to the entities list.");
}
}

} else {
String list = "ELDER_GUARDIAN,WITHER_SKELETON,STRAY,HUSK,ZOMBIE_VILLAGER,SKELETON_HORSE,ZOMBIE_HORSE,DONKEY,MULE,EVOKER,VEX,VINDICATOR,CREEPER,SKELETON,SPIDER,"
+ "ZOMBIE,SLIME,GHAST,ZOMBIE_PIGMAN,ENDERMAN,CAVE_SPIDER,SILVERFISH,BLAZE,MAGMA_CUBE,BAT,WITCH,ENDERMITE,GUARDIAN,SHULKER,PIG,SHEEP,COW,CHICKEN,SQUID,"
+ "ZOMBIE,SLIME,GHAST,ZOMBIE_PIGMAN,PIG_ZOMBIE,ENDERMAN,CAVE_SPIDER,SILVERFISH,BLAZE,MAGMA_CUBE,BAT,WITCH,ENDERMITE,GUARDIAN,SHULKER,PIG,SHEEP,COW,CHICKEN,SQUID,"
+ "WOLF,MOOSHROOM,OCELOT,HORSE,RABBIT,POLAR_BEAR,LLAMA,PARROT,VILLAGER,TURTLE,PHANTOM,COD,SALMON,PUFFERFISH,TROPICAL_FISH,DROWNED,DOLPHIN";
if (list.contains(entity.toString().toUpperCase())) {

if (debug) {
getLogger().info("[Debug] " + ChatColor.GREEN + entity.toString() + " added to the entities list.");
}
entities.add(entity.toString().toLowerCase());
} else {
if (debug) {
getLogger().info("[Debug] " + ChatColor.RED + entity.toString() + " NOT added to the entities list.");
}
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ author: poma123
main: me.poma123.spawners.PickupSpawners
name: PickupSpawners
api-version: 1.13
version: 2.8.1
version: 2.8.2
softdepend: [Vault]

permissions:
Expand Down

0 comments on commit f909985

Please sign in to comment.