Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved How to get accepted

Comments in 'Plugin Development' started by FlamingGenius, Oct 1, 2015.

  1. FlamingGenius
    Offline

    FlamingGenius Active Member

    Joined:
    Sep 23, 2015
    Posts:
    173
    Minecraft User:
    FlamingGenius
    So im wondering what ive done wrong i swear i followed submission rules to the tee.

    What am i doing wrong and what do i need to change?

    PHP:
    Config.yml

    ---
    broadcast-tag"[BROADCAST]"
    broadcast-color"§l§n§f"
    brm-color" "

    bgod-tag"[GOD]"
    bgod-color"§l§6"
    bgm-color" "


    bhero-tag"[HEROBRINE]"
    bhero-color"§l§c"
    bhm-color" "

    announce-tag"[ANNOUNCE]"
    announce-color"§l§b"
    anm-color" "

    server-tag"[SERVER]"
    server-color"§l§d"
    sem-color" "

    console-tag"[CONSOLE]"
    console-color"§l§7"
    com-color" "

    bcia-tag"[CIA]"
    bcia-color"§l§a"
    bcm-color" "

    #Color Codes
    ##Taken from pocketmine\utils\TextFormat;


    #BLACK = "§0"
    #DARK_BLUE = "§1"
    #DARK_GREEN = "§2"
    #DARK_AQUA = "§3"
    #DARK_RED = "§4"
    #DARK_PURPLE = "§5"
    #GOLD = "§6"
    #GRAY = "§7"
    #DARK_GRAY = "§8"
    #BLUE = "§9"
    #GREEN = "§a"
    #AQUA = "§b"
    #RED = "§c"
    #LIGHT_PURPLE = "§d"
    #YELLOW = "§e"
    #WHITE = "§f"
    #OBFUSCATED = "§k"
    #BOLD = "§l"
    #STRIKETHROUGH = "§m"
    #UNDERLINE = "§n"
    #ITALIC = "§o"
    ...
    PHP:
    MessageSystem.php

    <?php

    namespace FlamingGenius\MessageSystem;

    use 
    pocketmine\command\Command;
    use 
    pocketmine\command\CommandSender;
    use 
    pocketmine\utils\Config;
    use 
    pocketmine\plugin\PluginBase;
    use 
    pocketmine\Server;
    use 
    pocketmine\utils\TextFormat;


    class 
    main extends PluginBase{

    public function 
    onEnable(){
      
    $this->saveDefaultConfig();

    }

    public function 
    onCommand(CommandSender $senderCommand $command$label, array $args){
      
    $cmd $command->getName();
      
    $msg implode(" " $args);
      
    $player $this->getServer()->getPlayer()->getName();
      if(
    $player->hasPermission("ms.command"){
       if(
    strtolower($cmd) == "broadcast"){
        
    $tag $this->getConfig()->get("broadcast-tag");
        
    $color $this->getConfig()->get("broadcast-color");
        
    $mcolor $this->getConfig()->get("brm-color");
        
    $this->getServer()->broadcastMessage($color $tag $mcolor " " $msg);
       }

       elseif(
    strtolower($cmd) == "bgod"){
        
    $tag $this->getConfig()->get("bgod-tag");
        
    $color $this->getConfig()->get("bgod-color");
        
    $mcolor$this->getConfig()->get("bgm-color");
        
    $this->getServer()->broadcastMessage($color $tag $mcolor " " $msg);
       }

       elseif(
    strtolower($cmd) == "bhero"){
        
    $tag $this->getConfig()->get("bhero-tag");
        
    $color $this->getConfig()->get("bhero-color");
        
    $mcolor$this->getConfig()->get("bhm-color");
        
    $this->getServer()->broadcastMessage($color $tag $mcolor " " $msg);
       }

       elseif(
    strtolower($cmd) == "announce"){
        
    $tag $this->getConfig()->get("announce-tag");
        
    $color $this->getConfig()->get("announce-color");
        
    $mcolor$this->getConfig()->get("anm-color");
        
    $this->getServer()->broadcastMessage($color $tag $mcolor " " $msg);
       }

       elseif(
    strtolower($cmd) == "server"){
        
    $tag $this->getConfig()->get("server-tag");
        
    $color $this->getConfig()->get("server-color");
        
    $mcolor$this->getConfig()->get("sem-color");
        
    $this->getServer()->broadcastMessage($color $tag $mcolor " " $msg);
       }

       elseif(
    strtolower($cmd) == "console"){
        
    $tag $this->getConfig()->get("console-tag");
        
    $color $this->getConfig()->get("console-color");
        
    $mcolor$this->getConfig()->get("com-color");
        
    $this->getServer()->broadcastMessage($color $tag $mcolor ." " $msg);
       }
       elseif(
    strtolower($cmd) == "bcia"){
        
    $tag $this->getConfig()->get("bcia-tag");
        
    $color $this->getConfig()->get("bcia-color");
        
    $mcolor$this->getConfig()->get("bcm-color");
        
    $this->getServer()->broadcastMessage($color $tag $mcolor " " $msg);
       }


    }
      else{
       
    $this->getServer()->broadcastMessage("§4You do not have permission");
      }
    }



    }

    ?>
    PHP:
    plugin.yml

    name
    MessageSystem
    author
    FlamingGenius
    description
    all messaging options in one plugin
    main
    FlamingGenius\MessageSystem\main
    api
    1.12.0
    version
    1.0.0
    commands
    :
     
    broadcast:
      
    descriptionBroadcast a msg
      
    default: op
      usage
    "/broadcast <msg>"
      
    aliases: [br]
      
    permissionms.command
     bgod
    :
      
    descriptionBroadcast msg as God
      
    default: op
      usage
    "/bgod <msg>"
      
    aliases: [bg]
      
    permissionms.command
     bhero
    :
      
    descriptionBroadcast msg as herobrine
      
    default: op
      usage
    "/bhero <msg>"
      
    aliases: [bh]
      
    permissionms.command
     announce
    :
      
    descriptionBroadcast announce msg
      
    default: op
      usage
    "/announce <msg>"
      
    aliases: [an]
      
    permissionms.command
     server

      
    descriptionBroadcast msg as server
      
    default: op
      usage
    "/server <msg>"
      
    aliases: [se]
      
    permissionms.command
     console
    :
      
    descriptionBroadcast msg as console
      
    default: op
      usage
    "/console <msg>"
      
    aliases: [con]
      
    permissionms.command
     bcia
    :
      
    descriptionBroadcast message as CIA
      
    default: op
      usage
    "/bcia <msg>"
      
    aliases: [bc]
      
    permissionms.command

  2. basprohop
    Offline

    basprohop Active Member Plugin Developer

    Joined:
    Aug 8, 2015
    Posts:
    128
    Plugins:
    3
    Minecraft User:
    basprohop
    It may have gotten rejected for being too simple?
    Andrey Nazarchuk likes this.
  3. FlamingGenius
    Offline

    FlamingGenius Active Member

    Joined:
    Sep 23, 2015
    Posts:
    173
    Minecraft User:
    FlamingGenius
    Ive revised and added a lot it used to be just commands i doubt this will be accepted though
  4. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    I believe it's been rejected for being too simple, and the idea isn't original enough. My BlockFreezer plugin is simpler than this, but @Humerus accepted it because there was no other plugin at the time that did what it did.

Share This Page

Advertisement