Examples of ResidenceCommandEvent


Examples of com.bekvon.bukkit.residence.event.ResidenceCommandEvent

import java.util.List;

public class ResidenceCommandListener extends Residence {

    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        ResidenceCommandEvent cevent = new ResidenceCommandEvent(command.getName(), args, sender);
        server.getPluginManager().callEvent(cevent);
        if (cevent.isCancelled()) {
            return true;
        }
        if (command.getName().equals("resreload") && args.length == 0) {
            if (sender instanceof Player) {
                Player player = (Player) sender;
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.