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


    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!



  2. Offline

    timtower Moderator Moderator

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


    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


    @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


    Oh yeah know i understand yeah youre right
  6. Offline

    I Al Istannen

    @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".

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


    Another thing I'd suggest is learning Java..

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


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


    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