Filled Server Ip blocker

Discussion in 'Plugin Requests' started by Albert_Bowden, Sep 30, 2016.

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

    Albert_Bowden

    Plugin category: Word blocker.

    Minecraft version: 1.10.2 +

    Suggested name: Server Ip blocker

    What I want: A plugin that blocks server ips that are entered into the chat. Even though chat control does this, it is not enough. People can still bypass and do stuff for example:
    Exampleserver.myserver.gs can be turned into the following:
    Exampleserver<>myserver<>gs
    Exampleserver,myserver,gs
    Exampleserver myserver gs
    Exampleserver( )myserver( )gs
    And it goes on and on....


    Ideas for commands: I would really like to add the servers into the config file so it blocks it in the chat, but i guess if this would work then i would like it to have
    /serverip block (server ip name)
    Or something similar to that ^

    Ideas for permissions: Serveripblocker.*, Serveripblocker.blockserveripname, etc.

    When I'd like it by: ASAP
     
  2. if you send send me a list of all ways of formatting it you can possibly think of, i can get it done in max an hour or so

    EDIT: doesnt matter, ill add a config section to add them as people think of them
     
    Albert_Bowden likes this.
  3. Offline

    Albert_Bowden

    What do you mean by that

    EDIT: Nvm
     
    Last edited: Sep 30, 2016
  4. Online

    timtower Administrator Administrator Moderator

    @axiusdevelopment Why not split the input on the dot and use regex to find all the parts?
     
    JanTuck likes this.
  5. Offline

    Albert_Bowden

  6. Offline

    JanTuck

    Great idea. But what if there were no dots.

    Sent from Tapatalk
     
  7. Online

    timtower Administrator Administrator Moderator

    Ever seen a website or ip without dots in it? bukkit.org, google.com, play.somerandomserver.otg
     
  8. Offline

    JanTuck

    Ohh i thought you meant in the chat not config BEST IDEA ever.

    Sent from Tapatalk
     
    timtower likes this.
  9. Online

    timtower Administrator Administrator Moderator

    @Albert_Bowden Got bored, decided to make this.
    AdBlackListLikeMe, link is in my signature.
    Will block everything in the config, even when there are regular words in between!
    Also works with single words ( blacklisted my own name, should somebody do on a server, no more pings :D )
    No commands, no permissions.

    @axiusdevelopment Sorry for taking this, but it took to long for me (and wanted to mess with regex again)
     
  10. Offline

    JanTuck

    Bukk-it'or-g

    Sent from Tapatalk
     
  11. Online

    timtower Administrator Administrator Moderator

    @JanTuck I didn't make a regex that splits the letters as well. Just the entire word.
    And try the Tahg User button
     
  12. Offline

    JanTuck

    Im on tapatalk... ;)

    Sent from Tapatalk
     
  13. Offline

    Albert_Bowden

    What a cool idea @timtower. Sadly, your signature is not there for me, nor your plugin is on the site. I hope that someone decides to make the plugin because i really need it...

    I found it but it was a struggle to find.,.. Now lets hope this actually works.
     
  14. Online

    timtower Administrator Administrator Moderator

  15. Offline

    Albert_Bowden

    So in the config it says:
    Blacklisted: []
    YouCantSendThat: '&cYou are not allowed to send that'

    How can i put the words? Do i put them like this?:

    Blacklisted: potato killmeplz []
    YouCantSendThat: '&cYou are not allowed to send that'

    or like this

    Blacklisted:
    - Potato
    - killmeplz []
    YouCantSendThat: '&cYou are not allowed to send that'
     
  16. Online

    timtower Administrator Administrator Moderator

    @Albert_Bowden Second one, without the []
    And please use the tahg user button.
     
  17. Offline

    I Al Istannen

    @timtower
    Might want to fill out the Usage Information? I just follow what it said there :p

    And didn't know we were so close ;) Your language sounds extremly funny though, I must admit :D
     
    timtower likes this.
  18. Offline

    Albert_Bowden

    @timtower so i do this?

    [Potato,fatpeople]

    or
    [Potato, fatpeople]

    or

    [Potato fatpeople]
     
  19. Online

    timtower Administrator Administrator Moderator

    @Albert_Bowden
    Code:
    Blacklisted:
    - Potato
    - killmeplz
    
    I said without, not with.

    @I Al Istannen Now try saying "I love you" in your language.....
    And fixed the usage by the time you see this.
     
    I Al Istannen and Albert_Bowden like this.
  20. Offline

    I Al Istannen

    @timtower
    Sounds nice :p "SCHMETTERLING" is way cooler though (butterfly in english)
    Haven't seen much of your country sadly :/ Though I thought you wanted to keep it for you where you live (apart from on the waves :p)?

    The config system seems interesting! A bit like the one @Rayzr522 made, but it certainly saves a lot of time :p


    To get this on-topic:

    Is this intended? Seems like it could really spam the log (in the onEnable).
    Code:
    System.out.println(patternString);
     
  21. Online

    timtower Administrator Administrator Moderator

    @I Al Istannen Config is this way because I am lazy by default :p
    And not intended, will remove it later, only shows at startup though so not that big of a deal.

    EDIT: It has been removed.
     
    Last edited: Oct 1, 2016
    I Al Istannen likes this.
  22. Offline

    Albert_Bowden

    btw the plugin works :D thank you
     
    timtower likes this.
  23. Offline

    Rayzr522

    I was going to be offended, but then I got distracted by the internet.
     
    I Al Istannen and timtower like this.
Thread Status:
Not open for further replies.

Share This Page