How do u spawn mobs on specified target? such as /pig Notch would spawn a pig on notch also, how do u add banning, i have this and it doesnt ban the player target.setFireTicks(100);
Something like this.. Code: if(cmd.getName().equalsIgnoreCase("pig") && args.length == 1) { Player selPlr = Bukkit.getServer().getPlayer(args[0]); if(selPlr!=null) { Location plrLocation = selPlr.getLocation(); World plrWorld = selPlr.getWorld(); plrWorld.spawnCreature(plrLocation, EntityType.PIG); } if(selPlr==null) { //tell sender that player specified does not exist or is not online. } } Also a ban command is already implemented in bukkit, target.SetFireTickets(1000); just sets the player on fire for 1000 ticks. I'm not exactly sure what you were asking there.
You might want to offset the entities spawn location from your players a bit? Or you will make a cross animal centipede.