MythicMobs Api Mobspawn api null error

I am coding a simple huntnight plugin. I am using MythicMobs mob spawn api. When i use version 4.10.1, console spamming "Unable to create attribute: null" error. But older versions -like 4.9.0- there is no problem.

My Code

`

                            double randDouble = Math.random();
                            double chance = plugin.getConfig().getDouble("spawn-chance");

                                if (randDouble <= chance) {

                                    List<String> mobs = (List<String>) plugin.getConfig().getList("mobs");
                                    Random rand = new Random();
                                    String rmobs = mobs.get(rand.nextInt(mobs.size()));


                                    if (!rmobs.isEmpty() && rmobs.length() > 0 && rmobs != null && rmobs != "" && rmobs != "null") { // Null check, but it does not have any effect.
                                        try {
                                            try {
                                                MythicMobs.inst().getAPIHelper().spawnMythicMob(rmobs, e.getLocation());
                                            } catch (NullPointerException ex) {
                                                return;
                                            }
                                        } catch (InvalidMobTypeException e1) {
                                            return;
                                        }
                                    }

                        }`
Edited Sep 30, 2020 by EternalHittMan
Assignee Loading
Time tracking Loading