Custom Kicking

Discussion in 'Archived: Plugin Requests' started by iiCyprezz, Aug 22, 2012.

  1. Offline

    iiCyprezz

    I Would like to know if someone can make me a plugin where instead of typing /kick name you do
    For Example

    /caps name
    /adv name [advertising]
    /Lang name [Language]
    /spam name
    /kick name

    Thank's Alot.

    Rosen
     
  2. Offline

    np98765

    ... Not really sure what you're asking for here, but I'm going to recommend CommandHelper.
     
  3. Offline

    LexLaiden

    You gotta give more detail as to what you want.
     
  4. So basically you want predefined kick messages? Sounds cool, might add it to CommandsEX' banning/kicking
     
  5. Offline

    jacklin213

  6. Offline

    PogoStick29

    How about this:
    /msgkick [caps, adv, lang, spam, default] [player]
    You can define the messages in a config file.
     
  7. Offline

    iiCyprezz

    Not Msg Kick. As i have Requested please.
     
  8. Offline

    Woobie

    I can take this, unless its too much work:)
     
  9. Offline

    PogoStick29

    No problem, i'll start now. Is what i said ok?
     
    Woobie likes this.
  10. Offline

    Woobie

    More than ok. Good luck!
     
  11. Offline

    JjPwN1

    [quote uid=90712353 name="iiCyprezz" post=1297573]I Would like to know if someone can make me a plugin where instead of typing /kick name you do
    For Example

    /caps name
    /adv name [advertising]
    /Lang name [Language]
    /spam name
    /kick name

    Thank's Alot.

    Rosen[/quote]

    I have made your plugin for you. Source Code. <Edit by Moderator: Redacted mediafire url>

    Permissions:
    * bbykicks.caps
    * bbykicks.adv
    * bbykicks.lang
    * bbykicks.spam
    * bbykicks.kick
    * bbykicks.*

    Obviously, OPs get all the permissions. Also, all the commands you wished for are included.
     
    Last edited by a moderator: Mar 9, 2017
    Woobie likes this.
  12. Offline

    Woobie

    [quote uid=94887 name="JjPwN1" post=1300537]I have made your plugin for you. Source Code. <Edit by Moderator: Redacted mediafire url>
    Teach me o_o
     
    Last edited by a moderator: Mar 9, 2017
  13. Offline

    JjPwN1

  14. Offline

    Woobie

    Everything about coding,you silly:D
     
  15. Offline

    JjPwN1

    Woobie
    Well this plugin was extremely easy. All you had to do was create the "targetPlayer" from the 1st argument

    Code:
            Player targetPlayer = player.getServer().getPlayer(args [0]);
    And then go from there

    Code:
            if(cmd.getName().equalsIgnoreCase("caps")){
                if(player.hasPermission("bbykicks.caps") || player.hasPermission("bbykicks.*") || player.isOp()){
                targetPlayer.kickPlayer("You have been kicked for CAPS-lock by " + player.getName());
                player.sendMessage(ChatColor.GOLD + "[BbyKicks] " + ChatColor.DARK_RED + "You have kicked " + targetPlayer.getName());
                return true;
     
  16. Offline

    Woobie

    mhm.. good thing i understood everything
     
  17. Offline

    iiCyprezz

  18. Offline

    PogoStick29

    [quote uid=94887 name="JjPwN1" post=1300537]I have made your plugin for you. Source Code. <Edit by Moderator: Redacted mediafire url>

    Permissions:
    * bbykicks.caps
    * bbykicks.adv
    * bbykicks.lang
    * bbykicks.spam
    * bbykicks.kick
    * bbykicks.*

    Obviously, OPs get all the permissions. Also, all the commands you wished for are included.[/quote]

    The only thing about that plugin is that there's no configuration to control messages. I started working on one last night that has a configuration. I'd hate for the code to go to waste :/

    Here's my plugin called MessageKick

    <Edit by Moderator: Redacted mediafire url>

    Commands:
    /msgkick [caps | advertising | language | spam] [player]

    Permissions:

    msgkick.*
    msgkick.caps
    msgkick.advertising
    msgkick.language
    msgkick.spam

    The configuration is self explanatory, just type whatever message you want to appear per kick reason.

    I can add /msgban that uses the same idea, but with a ban instead of a kick. I can also provide source code to anyone interested.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Mar 9, 2017
  19. Offline

    Woobie

    [quote uid=90694345 name="PogoStick29" post=1301577]Here's my plugin called MessageKick

    <Edit by Moderator: Redacted mediafire url>

    Commands:
    /msgkick [caps | advertising | language | spam] [player]

    Permissions:

    msgkick.*
    msgkick.caps
    msgkick.advertising
    msgkick.language
    msgkick.spam

    The configuration is self explanatory, just type whatever message you want to appear per kick reason.

    I can add /msgban that uses the same idea, but with a ban instead of a kick. I can also provide source code to anyone interested.[/quote]
    Works perfectly, thanks!
     
    Last edited by a moderator: Nov 9, 2016
  20. Offline

    PogoStick29

    No problem!
     
  21. Offline

    JjPwN1

    PogoStick29
    I could of easily made a configuration, but the OP didn't ask for one, and I didn't really think about adding one.
     
  22. Offline

    PogoStick29

    Ok. Looking back on what I said, I think I might have been a bit rude. Our plugins are both almost the same, and both get the job done :)
     

Share This Page