Examples of MIBook


Examples of uk.co.tggl.pluckerpluck.multiinv.books.MIBook

                String title = rs.getString("book_title");
                if(title != null && title.equals("")) {
                    title = null;
                }
                String hashcode = rs.getString("book_hash").substring(5);
                MIBook book = new MIBook(hashcode, author, title, pages);
                return book;
            }
        } catch(SQLException e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of uk.co.tggl.pluckerpluck.multiinv.books.MIBook

            enchantments = itemStack.getEnchantments();
            if(itemStack.getItemMeta() instanceof BookMeta) {
                BookMeta meta = (BookMeta) itemStack.getItemMeta();
                // Make sure we don't use this on an empty book!
                if(meta.getPages() != null) {
                    book = new MIBook(meta.getAuthor(), meta.getTitle(), meta.getPages());
                }
            } else if(itemStack.hasItemMeta()) {
                nbttags = getItemMetaSerialized(itemStack.getItemMeta());
            }
            is = itemStack.clone();
View Full Code Here

Examples of uk.co.tggl.pluckerpluck.multiinv.books.MIBook

        // Hijack this function to import book data...
        if(enchantmentString.startsWith("book_")) {
            if(MIYamlFiles.usesql) {
                book = MIYamlFiles.con.getBook(enchantmentString, true);
            } else {
                book = new MIBook(new File(Bukkit.getServer().getPluginManager().getPlugin("MultiInv").getDataFolder() + File.separator +
                        "books" + File.separator + enchantmentString + ".yml"));
            }
        } else if(!"0".equals(enchantmentString)) {
            String[] enchantments = enchantmentString.split("#");
            for(String enchantment : enchantments) {
View Full Code Here

Examples of uk.co.tggl.pluckerpluck.multiinv.books.MIBook

                System.out.println("books directory found, importing books.");
                File[] thebooks = fbooksdir.listFiles();
                for(File fdir : thebooks) {
                    if(fdir.isFile() && fdir.getName().endsWith(".yml")) {
                        System.out.println("Importing book " + fdir.getName());
                        MIBook thebook = new MIBook(fdir);
                        MIYamlFiles.con.saveBook(thebook, true);
                    }
                }
            }
            return true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.