Package com.github.zathrus_writer.commandsex.helpers

Examples of com.github.zathrus_writer.commandsex.helpers.TpRequestCanceller


        if (CommandsEX.loadedClasses.contains("Command_cex_inv") && !Common.invisiblePlayers.contains(to.getName())){
          sent++;
        } else {
          sent++;
        }
        CommandsEX.plugin.getServer().getScheduler().scheduleSyncDelayedTask(CommandsEX.plugin, new TpRequestCanceller("tpaall", id), (20 * tTimeout));
      }
    }

    LogHelper.showInfo("[" + sent + " #####tpaAllRequestsSent", sender, ChatColor.AQUA);

View Full Code Here


            tpaPlayer.sendMessage(ChatColor.GREEN + Nicknames.getNick(player.getName()) + " " + _("tpRequest1a", sender.getName()));
            tpaPlayer.sendMessage(ChatColor.GREEN + _("tpRequest2", sender.getName()));
            tpaPlayer.sendMessage(ChatColor.GREEN + _("tpRequest3", sender.getName()));
           
            // set timeout function that will cancel TPAHERE request if timeout is reached
            CommandsEX.plugin.getServer().getScheduler().scheduleSyncDelayedTask(CommandsEX.plugin, new TpRequestCanceller("tpahere", id), (20 * tTimeout));
           
            // send confimation message to the original player
            player.sendMessage(ChatColor.GREEN + _("tpRequestSent", sender.getName()));
          }
        } else {
View Full Code Here

            tpaPlayer.sendMessage(ChatColor.GREEN + Nicknames.getNick(player.getName()) + " " + _("tpRequest1", sender.getName()));
            tpaPlayer.sendMessage(ChatColor.GREEN + _("tpRequest2", sender.getName()));
            tpaPlayer.sendMessage(ChatColor.GREEN + _("tpRequest3", sender.getName()));
           
            // set timeout function that will cancel TPA request if timeout is reached
            CommandsEX.plugin.getServer().getScheduler().scheduleSyncDelayedTask(CommandsEX.plugin, new TpRequestCanceller("tpa", id), (20 * tTimeout));
           
            // send confimation message to the original player
            player.sendMessage(ChatColor.GREEN + _("tpRequestSent", sender.getName()));
          }
        } else {
View Full Code Here

TOP

Related Classes of com.github.zathrus_writer.commandsex.helpers.TpRequestCanceller

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.