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. I don't know if the client support it.

    I will look into it.

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

    meee

  4. Offline

    Dr Danco

    well oddly enough that problem only occured the first time, seems to be working fine now :)
     
  5. it because i did "USERNAME\n" instead of "\nUSERNAME"

    I don't like bumps but.
    Bump.

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

    Nelo

    A very good plugin ;)

    Video Prekick (video in french) :
     
  7. Offline

    zackington

    I am pleased to report a bug.

    when i added this plugin it screws my server up when i want to ban someone it bans them but the just join again and they can play???!!...so i removed the plugin and now they are banned so could you please look into this.

    zackington


    My server is 'Zackington's Server : 121.210.154.93
     
  8. Was the Prekick on and whitelist on?
    How did you ban them? Was it a different plugin?
     
  9. Offline

    frizbee

    my server is offline but it still kicks the person and it shows the message i set BUT, i get this in my consol/logs EVERY time it keeps a non whitelisted person from joining.
    Code:
    [PreKick] frizbee2 From IP NULL Was Kicked
    2011-06-27 13:54:50 [INFO] Parser Error when reading the "prekick.txt"
    2011-06-27 13:54:50 [SEVERE] java.io.IOException: Read error
    2011-06-27 13:54:50 [SEVERE] 	at java.io.FileInputStream.readBytes(Native Method)
    2011-06-27 13:54:50 [SEVERE] 	at java.io.FileInputStream.read(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at java.io.DataInputStream.read(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at sun.nio.cs.StreamDecoder.read(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at java.io.InputStreamReader.read(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at java.io.BufferedReader.fill(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at java.io.BufferedReader.readLine(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at java.io.BufferedReader.readLine(Unknown Source)
    2011-06-27 13:54:50 [SEVERE] 	at com.SoftWepz.WildN00b.PreKick.Message.GetMsg(Message.java:55)
    2011-06-27 13:54:50 [SEVERE] 	at com.SoftWepz.WildN00b.PreKick.Message.GetMsg(Message.java:16)
    2011-06-27 13:54:50 [SEVERE] 	at com.SoftWepz.WildN00b.PreKick.PreKickPlayerListener.onPlayerLogin(PreKickPlayerListener.java:103)
    2011-06-27 13:54:50 [SEVERE] 	at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:313)
    2011-06-27 13:54:50 [SEVERE] 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-06-27 13:54:50 [SEVERE] 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:183)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:82)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.Packet1Login.a(SourceFile:43)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    2011-06-27 13:54:50 [SEVERE] 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-27 13:54:50 [INFO] Disconnecting frizbee2 [myiphere took it out]: You are not white listed :( Plz go to www.frizbeesmcserver.webs.com to get white listed :)
     
  10. I'm not dead. a new update will come when i can fix a bug
     
  11. Offline

    robnar

    935 is for minecraft v1.6.6. 653 is 1.7. Thanks for the update! :)
     
  12. No 935 is 1.7.2. If you look at the bukkit home page you will see.
     
  13. Offline

    robnar

    Sorry I meant 953 not 653. :) It's moot now anyway since we're about to get a new build.
     
  14. Offline

    footwo

    On my server it seems to read from whitelist.txt but write to white-list.txt. Any ideas?

    On CB987
     
  15. What command are you using to add people?
     
  16. Offline

    footwo

    /prekick add
     
  17. strange it works for me.
     
  18. Offline

    footwo

    I'm going to test it again later. Just to confirm, prekick is supposed to read and write from/to whitelist.txt, not white-list.txt?
     
  19. that's correct
     
  20. Offline

    chillerstate

    I get this when someone joins HELP!! now people are greifing!
    Code:
    12:46:22 [SEVERE] Could not pass event PLAYER_LOGIN to PreKick
    java.lang.NullPointerException
            at org.bukkit.craftbukkit.entity.CraftPlayer.getAddress(CraftPlayer.java
    :53)
            at com.SoftWepz.WildN00b.PreKick.PreKickPlayerListener.onPlayerLogin(Pre
    KickPlayerListener.java:36)
            at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.j
    ava:321)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:321)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:184)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:82)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
            at net.minecraft.server.Packet1Login.a(SourceFile:43)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    12:46:22 [INFO] Disconnecting Hossel [/84.85.44.184:50654]: You are not whitelisted!
     
  21. Fixing it now
    done in 1-10 min

    @chillerstate DONE :D

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

    chillerstate

    Thank you SOOOOOOO much! I had massive amounts of people joining and i was like how are they joing? I dont remember whitelisting allll these people! And btw i LOVE your plugin!!!!
     
  23. :D thank :D one little question what kind of server do you run?
     
  24. Offline

    chillerstate

    Ok so i intended for it to start off as survival... But i thought naaaa... So i basically changed it to free build! Well i did have worldguard so no major buildings were greifed... But there was lava and water alllll over the place.... I do have a site for my server ChillerCraft.net It is gradually growing but is mainly used for people to signup and put their ign so i can whitelist them...
     
  25. Offline

    Erco21

    Does prekick kick the user if he tries to log in from the same IP as someone who's already on the server?
    I have 2 players who play from the same IP, and if prekick is on, the one who tries to join second, ges kicked, and if i do /prekick off they can both join
     
  26. No, it doesn't.
    Are both whitelisted?
     
  27. Offline

    Erco21

    Yes, both are whitelisted. When i turn prekick off, whitelist doesn't work either, but they can both join at the same time
     
  28. Is the server full when the second trys to join? What message does the second get when he fails to join? when the second trys to join in what state is prekick, is whitelist on or off?
     
  29. Offline

    Erco21

    no, server is not full, when the second one tries to join, it says that he is not whitelisted (the message i specified in prekick.txt), if i do /prekick off, they both can join, but the whitelist is not working then, even tho i did /prekick whitelist on, it's not working, and anyone can join (regardless if they are on the whitelist or not)
     

Share This Page