" You don't have permission to do that"

Discussion in 'Bukkit Help' started by NBAPwns13, Jun 21, 2011.

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

    NBAPwns13

    How come it says " You don't have permission to do that" when im trying to put a command?
    The command i was using was for SpawnControl plugin.

    1. Spawn Control installed and also Permissions

    and then i type /spawn etc.. it says you don't have permission to do that.

    Can anyone help me? this just happen now
     
  2. Offline

    vigge42

    go to your server folder (where you have all the files)
    then add your name to the OP text file.

    ( im a noob, so dont expect it to actually work :p )
     
  3. Offline

    NBAPwns13

    Doesn't Work :( i;ve already done that
     
  4. Offline

    vigge42

    hmm.. then i think its a deeper error.. like in a file on the plugin.. i hope someone more experienced then me (i nearly dont have any) will reply to this thread..
     
  5. Offline

    jtlcr777

    Post your permissions setup.
     
  6. Offline

    NBAPwns13

    You mean the XML Files? theres nothing in them except these small sentence's i dunno what to do then they say edit the Entries or something , i dunno where to find the text to get in order to run the world with the plugin
     
  7. Offline

    jtlcr777

    No I mean the YAML files, you are using permissions right? It should look like this (groups.yml):
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'essentials.motd'
                - 'essentials.rules'
        Player:
            default: false
            info:
                prefix: '&4'
                suffix: '&4'
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.me'
                - 'essentials.list'
                - 'essentials.getpos'
                - 'essentials.afk'
                - 'zombieattack.user.*'
                - 'IOBookcase.canread'
                - 'IOBookcase.canwrite'
                - 'chaircraft.sit'
                - 'DropPlugin.drop.*'
                - 'gastronomic.player.*'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.signs.use.*'
                - 'essentials.signs.create.mail'
                - 'essentials.nick'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - '-gastronomic.disablehunger'
    
     
  8. Offline

    NBAPwns13

    Yes i have those files, when i open it but what do i do now to make my Plugins work with the permission plugin?
     
  9. Offline

    jtlcr777

    You add the plugin nodes to the any group that you want to be able to use. For example if I want the "Member" group to be able to use the BlackJack plugin, then I would look at the plugin post to find its permissions node. Then I would add it to the "Member" group like so:

    Code:
    groups:
        Member:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'BlackJack.use'
     
  10. Offline

    NBAPwns13

    Where do i get the permission node in order to put it in my GlobalGroups YML file?
     
  11. Offline

    jtlcr777

    The permission nodes should be found the the topic of that plugin, as long as the plugin supports permissions.

    Also you don't have to use the GlobalGroups thing, you can just create a folder called [{WORLD NAME HERE}] and create a groups.yml and users.yml.
     
  12. Offline

    NBAPwns13

    ui
    Im trying to find the node for this one

    http://forums.bukkit.org/threads/ge...per-player-group-spawns-multi-world-860.1462/

    can you help me locate where the node is? because idk where its at :S
     
  13. Offline

    jtlcr777

    Lol all nodes look something like: PluginName.CommandName (usually)

    Here are the nodes for SpawnControl (they were under "Details")
    Code:
    The following permissions are available:
    
        SpawnControl.sethome.basic
        SpawnControl.sethome.proxy
        SpawnControl.home.basic
        SpawnControl.spawn.use
        SpawnControl.spawn.set
        SpawnControl.groupspawn.use
        SpawnControl.groupspawn.set
        SpawnControl.CooldownExempt.* (Sub-nodes: *, home, sethome, groupspawn, spawn)
        SpawnControl.config (for /sc_config [setting] [value])
        SpawnControl.import (for /scimportconfig and /scimportgroupconfig)
    
     
  14. Offline

    NBAPwns13

    do i have to copy the dashes? ( example )

    also do have to put this exactly the same in my groups yml? ( ' ) <<
     
  15. Offline

    jtlcr777

    I'm not sure what you mean, but it should look like this:
    Code:
    groups:
        Member:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'SpawnControl.sethome.basic'
    The Member group can use the basice /sethome command.

    Code:
    groups:
        Mod:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'SpawnControl.*'
    The Mod group can use all SpawnControl commands, as shown by that '*' symbol in the node.
     
  16. Offline

    NBAPwns13

    there was an error when i went on http://yaml-online-parser.appspot.com/ to see if the node work.

    it says

    ERROR:

    while scanning for the next token
    found character '\t' that cannot start any token
    in "<unicode string>", line 10, column 1:
    - 'SpawnControl.*'
    ^
     
  17. Offline

    jtlcr777

    Really? I just put it in and I get this:
    Code:
    {
      "groups": {
        "Mod": {
          "default": false,
          "info": {
            "prefix": "",
            "suffix": "",
            "build": true
          },
          "inheritance": null,
          "permissions": [
            "SpawnControl.*"
          ]
        }
      }
    }
    Which means its fine...did you make sure that you copied it correctly?

    I think you copied it wrong because it says "column 1" but 'SpawnControl.*' is not on column 1.
     
  18. Offline

    NBAPwns13


    Okay its works but i dunno how you got those random key types. This is what i put in
    How did you get those random type codes anyway

    andalso when i ran my .bat server it showed like all these information about how its found and being disabled etc..
    but it works but idk this happend :S i wish you could teach me more but i just don't wanna annoy you

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&2'
                suffix: '&f'
                build: false
            permissions:
                - 'foo.bar'
                -"SpawnControl.*"
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
                - Default
            permissions:
                - 'foo.*'
                - '-foo.test'
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix: '&f'
                build: true
            permissions:
    
     
  19. Offline

    jtlcr777

    Its fine, I was like this when I used permisisons.

    Remove the ", use single quotes instead -----> '. and make sure there is a space between the - and '.

    Code:
    permissions:
        - 'SpawnControl.*'
     
  20. Offline

    NBAPwns13


    :S well ok, thank you <33 i hope i get more replys from you in the future when i need help !
     
  21. Offline

    jtlcr777

    Sure thing, though I'm not that special, plenty of others can help you too. :D
     
  22. Offline

    NBAPwns13

    Ahaa! okiedokie!

    Yo dude it works but when my friend trys to connect he always get's kicked? and my Server program thingy the .bat it says some .java think [ Severe] this never happend to me, its it just my connnection

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

    jtlcr777

    When your friend gets kicked, what message is given to him?
     
  24. Offline

    NBAPwns13

    i dunno what it says i can't get it back , when my friend comes on in a few hours and this happens il tell you the error. Does my permission work? it works but why does it say this???? ":S

    Also how come when i start up my .bat server thing it says :


    148 recipes
    16 achievements
    12:29:14 [INFO] Starting minecraft server version Beta 1.6.6
    12:29:14 [INFO] Loading properties
    12:29:15 [INFO] Starting Minecraft server on 5.189.27.24:25565
    12:29:17 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    12:29:17 [WARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    12:29:17 [WARNING] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    12:29:17 [WARNING] To change this, set "online-mode" to "true" in the server.set
    tings file.
    12:29:18 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-864-
    gd7bc844-b898jnks (MC: 1.6.6)
    12:29:25 [INFO] Preparing level "Super Hostile - The Endless Deep"
    12:29:27 [INFO] Preparing start region for level 0 (Seed: -1944491816)
    12:29:28 [INFO] Preparing spawn area: 0%
    12:29:44 [INFO] Preparing spawn area: 4%
    12:29:45 [INFO] Preparing spawn area: 16%
    12:29:46 [INFO] Preparing spawn area: 24%
    12:29:47 [INFO] Preparing spawn area: 44%
    12:29:48 [INFO] Preparing spawn area: 89%
    12:29:49 [INFO] Preparing start region for level 1 (Seed: 2269969829937939822)
    12:29:49 [INFO] Preparing spawn area: 0%
    12:29:50 [INFO] Preparing spawn area: 77%
    12:29:53 [SEVERE] expected '<document start>', but found BlockMappingStart
    in "<reader>", line 18, column 5:
    Moderator:
    ^

    12:29:53 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentSta
    rt.produce(ParserImpl.java:233)
    12:29:53 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Parser
    Impl.java:163)
    12:29:53 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(Parse
    rImpl.java:148)
    12:29:53 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Co
    mposer.java:108)
    12:29:53 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSin
    gleData(BaseConstructor.java:124)
    12:29:53 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    12:29:53 [SEVERE] at com.nijiko.configuration.NotNullConfiguration.load(No
    tNullConfiguration.java:54)
    12:29:53 [SEVERE] at com.nijiko.data.YamlGroupStorage.reload(YamlGroupStor
    age.java:178)
    12:29:53 [SEVERE] at com.nijiko.data.YamlGroupStorage.<init>(YamlGroupStor
    age.java:29)
    12:29:53 [SEVERE] at com.nijiko.data.YamlCreator.getGroupStorage(YamlCreat
    or.java:58)
    12:29:53 [SEVERE] at com.nijiko.data.StorageFactory.getGroupStorage(Storag
    eFactory.java:129)
    12:29:53 [SEVERE] at com.nijiko.permissions.ModularControl.forceLoadWorld(
    ModularControl.java:93)
    12:29:53 [SEVERE] at com.nijiko.permissions.ModularControl.loadWorld(Modul
    arControl.java:84)
    12:29:53 [SEVERE] at com.nijiko.permissions.ModularControl.load(ModularCon
    trol.java:105)
    12:29:53 [SEVERE] at com.nijikokun.bukkit.Permissions.Permissions.setupPer
    missions(Permissions.java:186)
    12:29:53 [SEVERE] at com.nijikokun.bukkit.Permissions.Permissions.onLoad(P
    ermissions.java:139)
    12:29:53 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:117)
    12:29:53 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:266)
    12:29:53 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:253)
    12:29:53 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:144)
    12:29:53 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:317)
    12:29:53 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    12:29:53 [SEVERE] [Permissions] Unable to load permission data.
    12:29:53 [SEVERE] [Permissions] Shutting down Permissions due to error(s).
    12:29:53 [INFO] [Permissions] (Yeti) was initialized.
    12:29:53 [INFO] [HeroChat] HeroChat version 4.10.3 enabled.
    12:29:53 [INFO] [Permissions] (Yeti) disabled successfully.
    12:29:55 [SEVERE] Error occurred while enabling SpawnControl v0.8.1 (Is it up to
    date?): com/nijikokun/bukkit/Permissions/Permissions
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
    at com.aranai.spawncontrol.SpawnControl.onEnable(SpawnControl.java:237)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:842)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:147)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:123)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:266)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:253)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:317)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Pe
    rmissions
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 11 more
    12:29:55 [INFO] Done (3.032s)! For help, type "help" or "?"
    >
     
  25. Offline

    jtlcr777

    Permissions configuration problem.
    Post your permissions in code, there is some problem in your YAML formatting.

    Also put your server in online-mode.
     
  26. Offline

    NBAPwns13

    W
    Which one? group or user?

    also my friend plays offline, so i have to play offline with him
     
  27. Offline

    jtlcr777

    Both. And tell your friend to buy the game.
     
  28. Offline

    NBAPwns13

    Will you still likely to help me still? i really wanna get rid of this error

    this is my Groups


    Code:
    {
      "groups": {
        "Mod": {
          "default": false,
          "info": {
            "prefix": "",
            "suffix": "",
            "build": true
          },
          "inheritance": null,
          "permissions": [
            "SpawnControl.*"
          ]
        }
      }
    }
    
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
                - Default
            permissions:
                - 'foo.*'
                - '-foo.test'
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix: '&f'
                build: true
            permissions:
    
    My users which i never touched


    Code:
    users:
        Herpina:
            groups:
                - Moderator
            permissions:
                - 'herp.derp'
        '62353535':
            info:
                prefix: '&b'
            permissions:
                - 'hawaiian.pizza'
        Derpina:
            info:
                prefix: '&4'
            groups:
                - Admins
            permissions:
                - '-derp.derp'
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  29. Offline

    jtlcr777

    Your groups.yml should look like this:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'foo.bar'
        Mod:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'SpawnControl.*'
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix: '&f'
                build: true
            permissions:
                - '*'
     
  30. Offline

    NBAPwns13

    it says you don't have to permission to do that, No errors but i can't do it, what do i have to do? to make it work? what do i type on the console?
     
Thread Status:
Not open for further replies.

Share This Page