Very Much confused

Discussion in 'Plugin Development' started by JavaSource, May 31, 2014.

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

    JavaSource

    Ok let me first start off by saying I started coding 4 days ago and I get some parts and others not so much, Im trying to recreate some fps games (first person shooters) in minecraft with custom gamemodes (minigames) so I had problems with my code so I thought id come to the helping bukkit comunity to help me with this
    Main : http://pastebin.com/FP8MfyBk
    GunListener : http://pastebin.com/BpumPte3
    Plugin.yml :http://pastebin.com/rvpwzXsQ

    What I want this to do..
    I want to be able to shoot guns.
    deal different types of damage per gun.
    have sounds played (resource pack) to make them shots.
    be able to left click to zoom in and left click again to zoom out.
     
  2. Offline

    Onlineids

    You don't even tell us what the problem is......
     
    xTrollxDudex likes this.
  3. Offline

    CoderMusgrove

    JavaSource when you stated, that you started coding 4 days ago, if you mean that literally just started learning, you might want to learn more basics first, as understanding every part of code is essential. If you didn't mean it that way, well, either way we still need to know what the problem is. :p
     
    xTrollxDudex likes this.
  4. Offline

    JavaSource

    I started coding 4 days ago this is my first plugin
    and args isnt working

    the prob is args is got error lines under it... besides from that no erros

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 1, 2016
  5. Offline

    Kobting

    JavaSource
    The way you made a Listener class means that your main class doesn't need to implement listener and where you register your Listener make it an instance of your listener class not of the main class.
    *You should learn more java before trying to code plugins though
     
  6. Offline

    CoderMusgrove

    JavaSource I don't mean to be rude, but you may be way over your head as this is your first plugin (I know I was). If you don't really understand many things right now, go ahead and look over youtube for some tutorials. Here are a few playlists (and I hope to make my own soon ;))
    Tutorial Playlists (open)


    If you're really up to the challenge of finishing this plugin, then here we go..
    You said there's an error line under "args", would this be in your GunListener in your onPlayerInteract5 method? If so, that's because you never declared or retrieved an array called "args."
     
  7. Offline

    JavaSource

    Ok thanks the advice.

    Guys ive done damage sound and commands all working
    question tho
    how does ammo work
    any advice for that
    I have no idea how to even start ammo

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 1, 2016
Thread Status:
Not open for further replies.

Share This Page