player.sendMessage(ChatColor.GREEN+"Successfully converted the hopper to a "+ChatColor.YELLOW+ChatColor.stripColor(HLRmain.CHname)+ChatColor.GREEN+"!");
if(configHandler.cooldown){
if(configHandler.usePerms){
if(!player.hasPermission("HLR.nocooldown")){
//player.sendMessage("Start-nperms"); //debug
start=true;
Timertimer=newTimer();
timer.main(args);
}
}elseif(!player.isOp()){
//player.sendMessage("Start-nop"); //debug
start=true;
Timertimer=newTimer();
timer.main(args);
}
}
if(paying){
HLRmain.econ.withdrawPlayer(player,fee);
paying=false;
player.sendMessage(ChatColor.BLUE+"This transaction cost you "+ChatColor.GOLD+"$"+ChatColor.GREEN+fee+ChatColor.BLUE+".");
}
}else{
player.sendMessage(ChatColor.RED+"You have already converted the hopper.");
}
}else{
player.sendMessage(ChatColor.RED+"You cannot convert more than "+ChatColor.YELLOW+configHandler.maxamount+ChatColor.RED+" hoppers at once.");
}
}else{
player.sendMessage(ChatColor.RED+"You are not holding a hopper right now.");
}
}else{
player.sendMessage(ChatColor.RED+"This command is still cooling down.");
}
}
}else{
sender.sendMessage(ChatColor.RED+"This is a player only command.");