1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Ban ui

Discussion in 'Requests' started by Arthax, Nov 13, 2017.

Thread Status:
Not open for further replies.
  1. Arthax

    Arthax Spider

    Messages:
    10
    Anyone have a plugin ban ui?
     
  2. Arthax

    Arthax Spider

    Messages:
    10
    Encode XD
     
  3. Arthax

    Arthax Spider

    Messages:
    10
    I want to see the code in it
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    ok, hold on tight, ill deobfuscate that code and see what's so bad that needs hiding
     
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    lol, i am not helping them, i am just making it clear how stupid obfuscating your code is,
    it just doesent work
    look, you either share your plugin and get ppl stealing it; or dont share it and no one steals it
    you just need to get over and accept the fact that it will happen
    also you can do it yourself https://github.com/Antelox/FOPO-PHP-Deobfuscator
    and show off to your friends how good of a hacker you are that you just removed someone's "encryption"
    https://ghostbin.com/paste/jkvmw
    PHP:
    <?php
    /*
    * Pwned[aka un-obfuscated] By @Thunder33345
    * Disclaimer: I do not own or write or am responsible for the damages caused by said code
    * Suspected Original author: "KittyDev/FreakingDev"
    * comment: Why do people still log stupid messages on console? pmmp already did it for you anyways
    */
    namespace BanUI;

    use 
    pocketmine\Server;
    use 
    pocketmine\plugin\PluginBase;
    use 
    pocketmine\event\Listener;
    use 
    pocketmine\utils\TextFormat;
    use 
    pocketmine\Player;
    use 
    pocketmine\command\Command;
    use 
    pocketmine\command\CommandSender;
    use 
    pocketmine\command\CommandExecutor;
    use 
    pocketmine\command\ConsoleCommandSender;
    use 
    jojoe77777\FormAPI;

    class 
    Main extends PluginBase implements Listener
    {
      public function 
    onEnable()
      {
        
    $this->getServer()->getPluginManager()->registerEvents($this$this);
        
    //$this->getLogger()->info(TextFormat::GREEN."BanUI by FreakingDev activated."); - unnecessary code -thunder33345
      
    }

      
    //public function onDisable(){ $this->getLogger()->info(TextFormat::RED."BanUI by FreakingDev deactivated."); } - unnecessary code -thunder33345

      
    public function onCommand(CommandSender $senderCommand $cmdstring $label, array $args):bool
      
    {
        switch(
    $cmd->getName()){
          case 
    "banui":
            if(
    $sender instanceof Player){
              if(
    $sender->hasPermission("ban.ui")){
                
    $api $this->getServer()->getPluginManager()->getPlugin("FormAPI");
                if(
    $api === null || $api->isDisabled()){
                }
                
    $form $api->createCustomForm(function(Player $sender, array $data){
                  
    $result $data[0];
                  if(
    $result != null){
                    
    $command "ban ".$result." ".$data[1];
                    
    $this->getServer()->getCommandMap()->dispatch($sender->getPlayer(), $command);
                  }
                });
                
    $form->setTitle(TextFormat::BOLD."BAN PLAYER");
                
    $form->addInput("Player Name");
                
    $form->addInput("Reason");
                
    $form->sendToPlayer($sender);
              }
            }else{
              
    $sender->sendMessage(TextFormat::RED."Use this Command in-game.");
              return 
    true;
            }
            break;
        }
        return 
    true;
      }
    }
     
    Derpific, SOFe and HimbeersaftLP like this.
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    honestly, who cares for the name of the developer?
    not even users, they just want something that works
    other leechers/devs think that people care, that they will be "famous" for plastering their names like that annoying ad
     
    jasonwynn10, SOFe and HimbeersaftLP like this.
  7. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    ok and??
    you see, you dont just make a claim like "You don't have a heart of a programmer" without something a statement to back it
    you should say "You don't have a heart of a programmer because of/anything to continue this sentence [insert your reason here]"
    or else it would look more like a last ditch effort to insult someone when you have run out of things to tho
    so do i, when i deobfuscate code, i dont just remove names, if i did some modifications
    you can tell with my added comments to the original author
    because if a dev add a task that announces the server uses their plugin and go check him out on youtube and sent it every 5 min with no way to disable, i aint gonna let that be there, credit due where it's due, but definitely not shoveling it down other's faces
     
  8. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    @KittyDev Why’re you trying to hide your code?
     
    Levi likes this.
  9. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    To proof my replies are not just to defame someone who did nothing wrong
    here's an web archive of this page https://archive.is/isa1W#55%
    i like to say it's because people cant get used to the thought of plugins/codes getting stolen
    like that thing was theirs and only theirs to use
    tho some people did it for malicious reasons, like say hiding a backdoor that OP them when they join the server
     
  10. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    @KittyDev Then why show your plugin if you don’t want the person to use it?
     
    SOFe likes this.
  11. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Kyd and jasonwynn10 like this.
  12. Arthax

    Arthax Spider

    Messages:
    10
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.