[Info Message] Planning

Discussion in 'WIP and Development Status' started by auto30, Jun 26, 2012.

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

    auto30

    Hello,
    I am planning a info message plugin where if a user doesn't have permissions to do a certain command such as /sethome, the plugin will send a message to the player saying "You can't do /sethome for you haven't donated!"
    Hopefully the responses to commands will be configurable in a config file.
    If anyone is willing to help OR knows if this has been done before please respond.
    The part I'm stuck on is getting the plugin to recognize what the command is and know that when a command is typed it should ALWAYS see if the person who typed it has permissions so on.

    Please respond if you have any tips or suggestions or even are willing to help! :)
    Thanks!
    -auto30

    Let me know ASAP. It is supposed to be finished by friday and I need some helpers!

    Bump. Thanks to anyone that read it!

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

    Omnitv

    Please do not bump so often. :3
     
  3. Offline

    auto30

    I need to keep it at the top so people will read and hopefully help. ;)
     
  4. Offline

    Omnitv

    That is totally pointless. Also if you are requesting a plugin to be made i suggest moving this thread to 'Plugin Requests'* you have more of a chance of getting it developed.

    *DO-NOT create a new thread just tag one of the Bukkit staff to move it there.
     
  5. Offline

    lemon42

    I'm pretty sure I've seen a similar plugin somewhere, but I don't remember where.
     
  6. Offline

    auto30

    Could someone please tell me why this doesn't work...
    Code:
    @EventHandler
            public void onCommand(PlayerCommandPreprocessEvent event, CommandSender sender){
                Player p = (Player) sender;
                  p.sendMessage(ChatColor.RED + "You did a command");
       
                 
            }
    It doesn't send the player a message.. anyone??
     
  7. Offline

    Codex Arcanum

    1. The OP belongs in the plugin request forums.
    2. The above post belongs in the plugin development forums and should contain *all* of the source code for your plugin, not just a snippet.
     
  8. Offline

    Dreeass

    This board is for submissions, not for questions.
     
  9. Offline

    rominos2

    TnT
    I'm requesting teleportation to another subForum
     
  10. Offline

    ChrizC

    Moved to WIP and Development Status - please pay attention to where you're posting.

    EDIT: Also, on topic, onCommand isn't an Event, so won't use EventHandler. It uses CommandExecutor and you need to either use it in your main class or attach it to a Command.

    EDIT2: Sorry, noticed you're trying to use PlayerCommandPreprocessEvent - have you registered this event with the Plugin Manager? Also, the Event should be the only variable in the function constructor.
     
Thread Status:
Not open for further replies.

Share This Page