/pl and /? Blocker

Discussion in 'Plugin Requests' started by andrewginn, Dec 7, 2014.

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

    andrewginn

    Hello I know all of you server owners get one player who asks what plugin's you have.
    But some are clever enough to know that you can do /pl or /? to find out some of them.

    What this plugin will do is block /pl and /? unless you are op. There is no permissions. Only being op gives you these commands.
    Im hoping this isnt very hard to do so can someone take the request?
    Thanks!
     
  2. timtower likes this.
  3. Invisible

    RW_Craft

  4. Offline

    mrCookieSlime

    RW_Craft
    Well, in fact there are about a trillion plugins which can do this.

    http://dev.bukkit.org/bukkit-plugins/no-plugin-list/
    http://dev.bukkit.org/bukkit-plugins/noplugins/
    http://dev.bukkit.org/bukkit-plugins/nopl/
    http://dev.bukkit.org/bukkit-plugins/aps/
    http://dev.bukkit.org/bukkit-plugins/plugincontrol/
    http://dev.bukkit.org/bukkit-plugins/antiplugin/
    http://dev.bukkit.org/bukkit-plugins/nospymyplugins/
    http://dev.bukkit.org/bukkit-plugins/custompluginlist/
    http://dev.bukkit.org/bukkit-plugins/pluginshider/
    http://dev.bukkit.org/bukkit-plugins/pluginfake/
    http://dev.bukkit.org/bukkit-plugins/nopl-plfake/
    http://dev.bukkit.org/bukkit-plugins/nopluginview/
    http://dev.bukkit.org/bukkit-plugins/no-plugin/
    http://dev.bukkit.org/bukkit-plugins/antiseeplugins/
    http://dev.bukkit.org/bukkit-plugins/antispyplugins/
    http://dev.bukkit.org/bukkit-plugins/nopluginplus/
    http://dev.bukkit.org/bukkit-plugins/pluginhiderplusultra/
    http://dev.bukkit.org/bukkit-plugins/invisibleplugins/
    http://dev.bukkit.org/bukkit-plugins/nopluginstealers/
    http://dev.bukkit.org/bukkit-plugins/pluginsblocker/
    http://dev.bukkit.org/bukkit-plugins/pluginspyblock/
    http://dev.bukkit.org/bukkit-plugins/custompl/
    http://dev.bukkit.org/bukkit-plugins/globalblockplugins/
    http://dev.bukkit.org/bukkit-plugins/pluginhider/
    http://dev.bukkit.org/bukkit-plugins/pluginlist/
    http://dev.bukkit.org/bukkit-plugins/plmsg/
    http://dev.bukkit.org/bukkit-plugins/gcpluginhider/
    http://dev.bukkit.org/bukkit-plugins/pluginthief/

    (Those are not even all of them)
    But I think there are more than enough Plugins like that already available.
     
    teej107, AdamQpzm and Assist like this.
  5. Offline

    InkzzzMC

  6. Aww, there's me thinking my list habit was catching on and then you go and do that - you knowingly give up before you have them all :( I am disappointed! :p

    RW_Craft Few problems I noticed with your plugin:

    1. For some reason I can't do /players anymore. This was a very key command to my plugin and now it doesn't work at all :( Any ideas why that might be? ;)
    2. I do /bukkit: plugins (without the space - added to prevent ":p" appearing) and I can see the plugins, why is this? ( InkzzzMC this applies to your plugin too)
    And last but certainly not least: 3. Plugin does not function at all. AsyncPlayerChatEvent doesn't fire for commands.

    I seriously cannot stress enough the folly of these such plugins. They seem easy to make, and jealously guarding what plugins a server has is an extremely common habit for server owners for some reason, so these types of plugins are everywhere. If you dispute that, just see the list above my post. It's ridiculous not just how many of these we have, but how many of them don't work fully as intended. Some do not even function at all.

    I really hope that this will be the last time I ever say this, but I know that it won't be unless I choose to stop giving such advice: To block the /plugins command (or any command made by a competent developer), negate the correct permission node.
     
  7. mrCookieSlime 1) True 2) How long did that take? :D 3) Mine is there :)
     
  8. bwfcwalshy You should probably look more into that - I got an NPE from your plugin (by the looks of it from an attempt to block problem 2 I mentioned)

    CC: JordyPwner
     
  9. AdamQpzm JordyPwner took over, I don't put the downloads up anymore.
     
  10. Offline

    JordyPwner

    what did i took over?
     
  11. Offline

    JordyPwner

  12. JordyPwner Don't :( Just tell people about the permission node.
     
  13. Invisible

    RW_Craft

    @AdamQpzm
    1. Because I blocked commands starting with /pl, so people cant do /pl <Text> and still see the plugins, because you can do that.
    2. Forgot to block /bukkit: plugins
    3. It works for me
     
  14. Offline

    mrCookieSlime

    @RW_Craft
    No need to check if it starts with /pl
    Simply check whether its equal to /pl
    or check if it contains a space ans then split the string using the regex " ".
    The first element in the array is your command then.
     
  15. Are you sure? I remember testing it, and it didn't.

    No need for the contains check - splitting by space when it doesn't contain one will result in the whole String as the first and only index in the return array anyway, which is all one cares about in this case :)
     
    mrCookieSlime likes this.
  16. Invisible

    RW_Craft

  17. Offline

    mrCookieSlime

    @RW_Craft
    ... You can have multiple if statements in your Code. Just split the String and check whether its first element equals /pl or /plugins or /bukkit: plugins etc...
     
Thread Status:
Not open for further replies.

Share This Page