Solved How do i add permission?

Discussion in 'Plugin Development' started by Ragnarok_, Oct 24, 2016.

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

    Ragnarok_

    I tried everything, I looked up so many videos and tutorials its not even funny. Please, I need some help. I got the plugin.yml all covered, its just when I do the command in game, I can still do it... So i added the permission, according to the video(s), export it, and when i got on minecraft(i'm not oped) i could still do the command. I know this a really retarded topic/question, but i swear to god, i tried everything i could. This really pisses me off because I gone so far without turning to this forum for help. Ill provide you with the resources I have. Thanks so much, regards!

    Code: http://pastebin.com/zCRrwLGd

    Plugin.yml: http://pastebin.com/BUgMbRrH

    Console: https://gyazo.com/b160736b635a5a858681348f19980084
     
  2. Offline

    timtower Moderator Moderator

    @Ragnarok_ Replace the semicolon with a block like it should be.
     
  3. Offline

    danichef

    @Ragnarok_
    The plugin.yml should be like this:
    1. name: GivePlayerHeads
    2. main: me.bukkit.Ragnarok.GivePlayerHeads
    3. version: 1.0
    4. commands:
    5. phgive:
    6. description: Gives the player a selected player head.
    7. usage: /<command>
    8. permission: phgive.allow
     
  4. Offline

    PhantomUnicorns

    @danichef That is not correct, there is a permissions node and that is not his problem. You don't even have to register it so it can't be. His problem is is he has a semicolon ending an if statement, and he needs an @Override annotation on the onCommand function
     
  5. Offline

    danichef

    Oh yeah know i understand yeah youre right
     
  6. Offline

    I Al Istannen

    @PhantomUnicorns
    @Override is optional too. It is just for you.
    If you have it and mess up the name, the compiler will warn you and save you the headache of finding out you had a lowercase "o".

    @Ragnarok_
    See here or here for a more detailed answer.
     
  7. Offline

    sgavster

    Another thing I'd suggest is learning Java..

    Bukkit Plugins isn't its own coding platform.. It all runs on Java.
     
  8. Offline

    Ragnarok_

    Alright thanks everyone who replied to this thread and helped me, sorry for the late reply. Thanks guys
     
  9. Offline

    Zombie_Striker

    @Ragnarok_
    If your problem has been solved (or if it will be solved) mark this thread as solved.
     
Thread Status:
Not open for further replies.

Share This Page