SHARE
TWEET

Untitled

a guest Oct 10th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.lvckygaming.info.commands;
  2.  
  3. import net.lvckygaming.info.main.Main;
  4. import org.bukkit.command.Command;
  5. import org.bukkit.command.CommandExecutor;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.configuration.file.FileConfiguration;
  8. import org.bukkit.entity.Player;
  9.  
  10. /*****************************************************
  11.  *                                                   *
  12.  * Coded by StossenSrc at the LvckyGamingGmbH        *
  13.  * ©2016 - 2019 LvckyGaming GmbH all rights reserved *
  14.  * Cooperation with Lukas ILoveKOHL                  *
  15.  * 13:59 <TIME                                       *
  16.  * 02.10.2019 <DATE                                  *
  17.  * netlvckygsminginfo <PROJECT_NAME                           *
  18.  *                                                   *
  19.  ******************************************************/
  20. public class DevCommand implements CommandExecutor {
  21.     public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  22.         Player p = (Player)sender;
  23.  
  24.         FileConfiguration config = Main.getPlugin().getConfig();
  25.         String HelpMSG = config.getString("Config.HelpMSG");
  26.         HelpMSG = HelpMSG.replace("%player%", p.getDisplayName());
  27.         HelpMSG = HelpMSG.replace("&", "§");
  28.  
  29.  
  30.  
  31.         if (args.length == 0){
  32.             p.sendMessage(HelpMSG);
  33.         }else if(args.length == 1){
  34.             if(args[0].equalsIgnoreCase("Lobby")){
  35.                 p.sendMessage("§eLobby Plugin by §4§lILoveKOHL");
  36.             } else if(args[0].equalsIgnoreCase("Info")){
  37.                 p.sendMessage("§eLobby Info by §4§lStossenHDYT");
  38.             }else {
  39.                 p.sendMessage("§8-----------------------------------------");
  40.                 p.sendMessage("");
  41.                 p.sendMessage("");
  42.                 p.sendMessage("§a/dev {Plugin}");
  43.                 p.sendMessage("");
  44.                 p.sendMessage("");
  45.                 p.sendMessage("§bPlugins:");
  46.                 p.sendMessage("");
  47.                 p.sendMessage("");
  48.                 p.sendMessage("§cLobby");
  49.                 p.sendMessage("§cInfo");
  50.                 p.sendMessage("");
  51.                 p.sendMessage("");
  52.                 p.sendMessage("§8-----------------------------------------");
  53.  
  54.             }
  55.  
  56.         }else{
  57.             p.sendMessage(HelpMSG);
  58.         }
  59.  
  60.  
  61.  
  62.  
  63.         return false;
  64.     }
  65. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top