Package de.bananaco.permissions

Examples of de.bananaco.permissions.PackageLoadEvent


                public void run() {
                    try {
                        final List<PPackage> packages = database.getPackages(player.getName());
                        Bukkit.getScheduler().runTask(Packages.instance, new Runnable() {
                            public void run() {
                                Bukkit.getPluginManager().callEvent(new PackageLoadEvent(player, packages));
                            }
                        });
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
            });
        } else {
            try {
                Bukkit.getPluginManager().callEvent(new PackageLoadEvent(player, database.getPackages(player.getName())));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
View Full Code Here

TOP

Related Classes of de.bananaco.permissions.PackageLoadEvent

Copyright © 2018 www.massapicom. 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.