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

Staff Commands

Discussion in 'Plugin Help' started by AlexSima, Jul 4, 2020.

  1. AlexSima

    AlexSima Spider Jockey

    Messages:
    38
    GitHub:
    AlexSima003
    Hey, does anyone know a plugin that include commands for staff like /mute /ban /banip /kick /warn and that include custom messages too when someone gets kicked/banned/warned etc?
     
  2. Slayer1K

    Slayer1K Spider

    Messages:
    11
    GitHub:
    slayer1k
    I don't know any plugin like that, but for mute u can add a command which when player gets muted you add the player in an array and register a delayed task that when time is up you unset the array where player is in, and cancel the task for him.

    For custom ban, and kick you could review this link. It shows how to override a command.

    https://forums.pmmp.io/threads/overriding-kick.3417/

    Example (kick):
    Kick command file:
    PHP:
    execute(CommandSender $sender$label, array $args) {
      [...]
       if(
    $player) {
          
    $player->close("","custom message");

          
    // If you want to send a message for the whole server
          
    Server::getInstance()->broadcastMessage("Custom message"); // I think is it
       
    }
    }
    Correct me if I'm wrong.

    If you just don't know how to make a plugin I think I can make one for you.
     
  3. AlexSima

    AlexSima Spider Jockey

    Messages:
    38
    GitHub:
    AlexSima003
    Thank you for your reply
    So the thing is i know how to make a plugin but im not too good at it, i just learned a week ago and until now i tried to add what i want for my server in my plugin but im really tired of doing that..i was wondering if there s a plugin that does what i asked in this thread
     
  4. Slayer1K

    Slayer1K Spider

    Messages:
    11
    GitHub:
    slayer1k
    I don't know if there's a plugin that do that but I think I can do it for you but only tomorrow.
     
  5. AlexSima

    AlexSima Spider Jockey

    Messages:
    38
    GitHub:
    AlexSima003
    Sure, you can give me your Discord so we can talk there, its okay tomorrow cause i still have to do other stuff to the server
     
  6. Slayer1K

    Slayer1K Spider

    Messages:
    11
    GitHub:
    slayer1k
    NotSlayer_#6590
     
  7. JviguyGamesYT

    JviguyGamesYT Baby Zombie

    Messages:
    113
    GitHub:
    jviguy
    hey i just got done coding this can u test it its got permissions attached list is here
    ban.command,unban.command,mute.command,unmute.command,kick.command
    heres the git hub link: https://github.com/Jviguy/StaffToolsPlusPlus
     
    AlexSima likes this.
  8. UnEnanoMas

    UnEnanoMas Spider Jockey

    Messages:
    36
    GitHub:
    UnEnanoMas
    Search youtube for the plugin called StaffMode (It includes objects similar to a core, that with each one you can do a different thing, like tp another player, give ban, freeze and make yourself invisible) there is also the /mute
     
  9. AlexSima

    AlexSima Spider Jockey

    Messages:
    38
    GitHub:
    AlexSima003
    Im trying to create something similar to java, plugins that include items do execute staff commands sucks.
     
  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.