Inactive [ADMIN] PreKick v2.2.1 - Now on Bukkit dev [1.3.1-R2.0]

Discussion in 'Inactive/Unsupported Plugins' started by WildN00b, May 1, 2011.

  1. == PreKick V2.2.1 ==
    === Important news ===
    In PreKick V2.2.0:
    * Added translating ability.
    * Added to the config and the player check isn't case sensitive.
    * Added Blacklist.Player for custom kick messages for individual players.
    * Added /whitelist (for short /wh) and /blacklist (for short /bl)

    In PreKick V2.2.1:
    * Fixed some strings that were wrong.
    === Download ===
    Go to my bukkit dev page: here
    === Description ===
    This is a whitelist plugin with custom kick messages, so instead of it saying "Your not on the whitelist" it can say "Please Register at randomserver.com".

    Features:
    * Whitelist, Blacklist and a IP whitelist.
    * Custom kick messages for the whitelist, the blacklist groups and the IP whitelist.
    * You can have different messages for the blacklist groups.
    * You can enable IP checking for some player.
    * You can edit the config without reloading the server.
    * The whitelist, blacklist and the IP whitelist work independent, so you can just have for example the IP whitelist or the blacklist just enabled.
    === How to install ===
    Place PreKick.jar inside the plugins folder and start or reload the server and configure.
    === How to configure ===
    **PreKick uses Vault, if it can find it else it will SuperPerms for permissions.**
    Once the server server has loaded PreKick, PreKick will create a config file named config.yml inside the PreKick folder inside the plugins folder.
    There you can change all the PreKicks settings.
    Here I will explain all the settings.

    Code:
    PreKick:
      Enabled: true #If PreKick will be enabled
      Easter-egg: true #Broadcast a message when I (WildN00b) connects to the server
      ReloadWhenRead: false #Always reloads the config when it's going to read
      Language: en-US #Which language file to use
    Whitelist:
      Enabled: true #If the whitelist will be enabled
      KickMessage: 'Connection refuse: connect' #The kickmessage, if you're not on the whitelist
      Players: #The players that are on the whitelist
      - WildN00b #Me :)
      - ThePf #The developer of Duties and my friend
    IP:
      Enabled: false #If the IP whitelist will be enabled
      KickMessage: '&eIP doesn''t match' #The Kickmessage, if you're not on the IP whitelist
      Players: #The players on the IP whitelist
        WildN00b: #Me again
        - 127.0.0.1 #My IP:s that I connect to my server from
        - 10.10.10.10 #Second IP, can be multiple.
        ThePf:
        - 1.1.1.1 #ThePf:s IP
    Blacklist:
      Enabled: true #If the Blacklist will be enabled
      Players: #For individual players
        Cheater1: '&a&lYou''re not allowed on this server!' #First player
        Cheater2: '&a&nSorry, but you''re not allowed to play on this server!' #Second player
      Groups: #The groups
        group1: #The group 'group1'
          KickMessage: '&2&lYou are banned for being in the group!' #The Kickmessage for being in the group 'group1'
          Players: #The players in the group 'group1'
          - ImAGroup
        Hax: #The group 'Hax'. you can add your own groups
          KickMessage: '&c&nYou are banned for hacking!' #The Kickmessage for being in the group 'Hax'
          Players: #The players in the group 'Hax'
          - Hacker1337
          - Hax
    
    To add a color or a style type the '&' character and then the color code or the style code and your text like this
    Code:
    &aText
    &lThis is a bold text
    &c&IThis is a red bold text
    &c&lRed Bold text. &rStandard white text. &2&l&nGreen Underlined text.
    
    Always write the color code before the style code if you want to change the color.
    Here is a link to a site where you can find all the color and style codes.
    http://wiki.vg/Chat#Colors
    === Permissions ===
    Code:
    prekick.show: Allows to show the menu
    prekick.status: Allows to show the status page
    prekick.seekick: Allows to see when someone was kicked
    prekick.switch: Allows you to turn on and off prekick
    prekick.whitelist.switch: Allows you to turn on and off the whitelist
    prekick.ip.switch: Allows you to turn on and off the ip whitelist
    prekick.blacklist.switch: Allows you to turn on and off the blacklist
    prekick.whitelist.add: Allows you to add users to the whitelist
    prekick.whitelist.remove: Allows you to remove users from the whitelist
    prekick.ip.add: Allows you to add users to the IP whitelist
    prekick.ip.remove: Allows you to remove users from the IP whitelist
    prekick.blacklist.add: Allows you to add users to the blacklist
    prekick.blacklist.remove: Allows you to remove users from the blacklist
    
    === Commands ===
    You can type /prekick or /pk, I will use /pk in this example.
    Code:
    /pk help <Number> - Shows <Number> page of help.
    /pk status - Show some status about PreKick.
     
    /pk on - Turns PreKick on.
    /pk off - Turns PreKick off.
     
    /pk whitelist on - Turns whitelist on.
    /pk whitelist off - Turns whitelist off.
    /pk whitelist add <Player> - Adds player to the whitelist.
    /pk whitelist remove <Player> - Removes player from the whitelist.
     
    /pk ip on - Turns IP whitelist on.
    /pk ip off - Turns IP whitelist off.
    /pk ip add <Player> <IP> - Adds player to the ip whitelist with the ip or adds ip the player.
    /pk ip remove <Player> - Removes player from the ip whitelist.
    /pk ip remove <Player> <IP> - Removes IP from the player from the ip whitelist.
     
    /pk blacklist on - Turns blacklist on.
    /pk blacklist off - Turns blacklist off.
    /pk blacklist add <Group> <Player> - Adds player to the group in the blacklist.
    /pk blacklist remove <Group> <Player> - Removes player from the group in the blacklist.
    
    You can type /whitelist or /wl for the whitelist command.
    Code:
    /wl help <Number> - Shows <Number> page of help.
     
    /wl on - Turns whitelist on.
    /wl off - Turns whitelist off.
     
    /wl add <Player> - Adds player to the whitelist.
    /wl remove <Player> - Removes player from the whitelist.
     
    /wl ip on - Turns IP whitelist on.
    /wl ip off - Turns IP whitelist on.
    /wl ip add <Player> <IP> - Adds player to the ip whitelist with the ip or adds ip the player.
    /wl ip remove <Player> - Removes player from the ip whitelist.
    /wl ip remove <Player> <IP> - Removes IP from the player from the ip whitelist.
    
    You can type /blacklist or /bl for the blacklist command.
    Code:
    /bl help <Number> - Shows <Number> page of help.
     
    /bl on - Turns blacklist on.
    /bl off - Turns blacklist on.
    /bl add <Group> <Player> - Adds player to the group in the blacklist.
    /bl remove <Group> <Player> - Removes player from the group in the blacklist.
    
    === Changelog and Github ===
    The changelog is the github commit historic for now.
    https://github.com/WildN00b/PreKick
    === Bugs ===
    * None
     
    Noppoly likes this.
  2. Are there any console error? prekick whitelist only work when prekick is on.
     
  3. Offline

    Erco21

    there is no console errors, just message that the second one got kicked as he was not on the prekick whitelist (but he was) only thing i assume is that prekick either doesn't allow two players from same ip to play at the same time, or is malfunctioning
     
  4. Offline

    PPowerHouseK

    This pluigin works great. Lately it seems to turn prekick and whitelisting off when the server restarts for some reason. Is it supposed to do this?
     
  5. i don't know what the problem is because it works for me when two from the same ip connect. It can be something with the persons IPS.

    Update the prekick.txt to the newes version.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  6. Offline

    Lildirt

    Well. I would use this plugin, but McMyAdmin comes with this, although with a strict 32 character limit.
    I *might* use this, but I can't say I would need it.
    I do like the fact that you can toggle it though, I don't think I've seen a whitelist you can toggle by a command.
    Nice work. :)


    EDIT: Ah, thinking about it, I might use this plugin, since McMyAdmin blocks ALL users from connecting, including myself with the * permission and OP. So, hmm.. :D

    Er, I seem to have a problem.
    I modified my PreKick.txt and whitelist.txt, but the PreKick.txt doesnt seem to *change*.
    The plugin works perfectly, even the whitelist, but for some reason the message is still the default Connection Refused: connect.

    I did put it in the same directory as the whitelist.txt (with the server.properties)


    EDIT: After trying it, the whitelist.txt doesnt work either.
    The plugin only works with the default messages and users. :(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  7. :D

    hmm, are there any prekick.txt and whitelist.txt in any other directory?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  8. Offline

    Lildirt

    I don't see any, I looked in the plugins folder, nothing. I looked for a folder named 'PreKick' or 'PreKicker' or anything of that sort in the Plugins directory. Nothing. :s


    EDIT: For whatever reason it seems my whitelist.txt reset itself.. but the PreKick.txt is fine and to my settings.
     
  9. maybe mcmyadmin uses the whitelist.txt file
     
  10. Offline

    Lildirt

    No, it does not.
    I'm quite sure of this because before I did do a whitelisting process, and it didn't use it.
     
  11. does whitelist.txt reset it self then you add someone in game or when you start the server?
     
  12. Offline

    Lildirt

    I do it manually, and it has not reset again.
     
  13. Offline

    AsoKingdom

    Hey,

    I am getting the exact same problem as lildirt. No matter what I change the message to it still comes up with connection refused. I have tried this on a test server with no plugins and this error still occurs. Try the address mc.asokingdom.com. The message is meant to say Go to asokingdom.com to get whitelisted. Also can you update for the latest RB. Also are you ever going to consider adding a MySQL Database feature to this? Thanks, that is all.

    Kind Regards,
    Darayus Nanavate
    Aso Kingdoms
     
  14. hmm i will take a look at the code when i have time
     
  15. Offline

    Adv

    Wanted to post and let you know this plugin is conflicting with MCBans' ban system. Anyone using MCBans and this, their banned players will still be able to join. After back and forth tickets with MCBans I decided to start disabling plugins one by one, and ironically this was the first one I disabled and it fixed the issue.
     
  16. Offline

    sharkale

    the problem in your code is that you allow the access.

    Code:
    public void onPlayerPreLogin(PlayerPreLoginEvent event) {
            String msg = GetKick(event.getName(), (event.getAddress().toString().split(":")[0]).replaceFirst("/",""));
            if (msg != null)
                event.disallow(PlayerPreLoginEvent.Result.KICK_WHITELIST, msg);
            else
                event.allow();
        }
    should be
    Code:
    public void onPlayerPreLogin(PlayerPreLoginEvent event) {
            String msg = GetKick(event.getName(), (event.getAddress().toString().split(":")[0]).replaceFirst("/",""));
            if (msg != null)
                event.disallow(PlayerPreLoginEvent.Result.KICK_WHITELIST, msg);
        }
    the same for onPlayerLogin
    you dont need to allow the users. is allow by default if you dont disallow. but if you allow the player any other plugin cant disallow the access. ;)
     
    Adv likes this.
  17. thanks :D, you didn't see the "error" that @Lildirt and @AsoKingdom had?
     
  18. Offline

    AsoKingdom

    Has this been fixed yet? :) I have removed the plugin from the time being as everyone not on the whitelist thought the server was down and left:'(. Anyway, thanks for looking onto it!
     
  19. No, I can't find the error in the code :mad:
     
  20. Offline

    zzcranjo

    Please get the plugin to block no name players. Like this one.
    08:15:20 [INFO] [xAuth] Player '' has registered
     
  21. xAuth isn't my plugin.
     
  22. Offline

    sheape

    It works in build 1060 :)
     
  23. :D
     
  24. Offline

    Stefenatefun

    I have used this plugin for the longest time, and I must say, this works flawlessly! I have never had a problem with this plugin at all. To me, this plugin doesn't need any extra features, as it has everything it should have.

    And yes, this plugin works in build 1060. :)
     
    WildN00b likes this.
  25. Tnx :D:D but I will add new features in 2.0 so it will be much better on offline server, and fix all bugs and i will rewrite it from scratch.
     
  26. Offline

    Stefenatefun

    Maybe IP whitelisting for offline servers, as non-premium users will have the username of "Player".
     
  27. I already planned that :D
     
    Stefenatefun likes this.
  28. Offline

    Stefenatefun

    I actually do have a suggestion, though. The ability to change the display message ingame for non-whitelisted people, instead of having to do it through .txt files and reloading. What are your thoughts on this?
     
  29. Great idea I will add it. :D but in the current version of PreKick you dont need to reload the server after changing in any file.
     
  30. Offline

    Stefenatefun

    Oh, I didn't know that. I'm used to reloading after every little change with every plugin.
     

Share This Page