Need help with arguments/plugin

Discussion in 'Plugin Development' started by JakeDGator, Aug 10, 2014.

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

    JakeDGator

    Hey Bukkit. So I recently (yesterday) started going full throttle in at least putting my toe into developing plugins. Now I am having a bit of an issue that I cannot find a solution anywhere else that I can fully understand at my current knowledge. Now I believe it is called an argument that I am in need of for this plugin to be working. I am creating a slapping plugin (do not ask why, my player-base requested it ;p they are a "friendly" and "special" bunch) which on an issue of the command /slap <playername> it should message the player who was slapped something like "You were slapped by <name> and you enjoyed it! >;D" as well as send the person who slapped that person the message "You slapped <name> and they enjoyed it ohhhhhh!" As you can see, a very strange plugin. I have linked a copy of my source code. I am aware that there are bits that I messed up, thats because I was testing different functions such as getDisplayName and such rather then getName.
    http://pastebin.com/QBu4jusu
    Any help is greatly appreciated, thanks.
    !~Jake~!
     
  2. Offline

    Gater12

  3. Offline

    JakeDGator

  4. Offline

    Gater12

    JakeDGator
    Refer to the last example in the post. It is essentially what you need, just does a different function.
     
Thread Status:
Not open for further replies.

Share This Page