Configuration plugin groupmanager

  • Auteur de la discussion Auteur de la discussion Cercus
  • Date de début Date de début
Bah attend, si il manque juste dans les config 2 mondes, mais qu'il y'a quand même les bonnes permissions sur ces maps, c'est bon !
 
mais je voudrait des permissions differentes entre le skyblock et le faction et le spawn et le 1vs1
 
Ah ! Ok !
Et bien, je vais t'expliquer.
Tu as un dossier World, mais il n'y a pas de monde qui s'appelle comme ça. Dans ce dossier il y a pas exemple la config suivante :
Code:
groups:
  Fondateur:
      permissions:
      - *
Donc si tu met dans config.yml ça :
Code:
mirrors:
    World:
        TonMonde:
         - users
         - groups
Il y aura la même config (et les personnes seront dans le même groupe) dans "TonMonde" que dans la configuration de World. Tu peux bien ajouter d'autre monde après, faire comme moi : (c'est ma config)
Code:
  mirrors:
        world:
          rp_nether:
          - users
          - groups
          rptest:
          - users
          - groups
          architecte:
          - users
          - groups
          rp:
          - users
          - groups
          rp_the_end:
          - users
          - groups
          lobby:
          - users
          - groups
          bataille:
          - users
          - groups
          paradise:
          - users
          - groups
          test:
          - users
          - groups
          tuto:
          - users
          - groups
          chateau:
          - users
          - groups
 
Ah ! Ok !
Et bien, je vais t'expliquer.
Tu as un dossier World, mais il n'y a pas de monde qui s'appelle comme ça. Dans ce dossier il y a pas exemple la config suivante :
Code:
groups:
  Fondateur:
      permissions:
      - *
Donc si tu met dans config.yml ça :
Code:
mirrors:
    World:
        TonMonde:
        - users
        - groups
Il y aura la même config (et les personnes seront dans le même groupe) dans "TonMonde" que dans la configuration de World. Tu peux bien ajouter d'autre monde après, faire comme moi : (c'est ma config)
Code:
  mirrors:
        world:
          rp_nether:
          - users
          - groups
          rptest:
          - users
          - groups
          architecte:
          - users
          - groups
          rp:
          - users
          - groups
          rp_the_end:
          - users
          - groups
          lobby:
          - users
          - groups
          bataille:
          - users
          - groups
          paradise:
          - users
          - groups
          test:
          - users
          - groups
          tuto:
          - users
          - groups
          chateau:
          - users
          - groups

c'est exactement ce que j'ai fait avec mes mondes
 
J'ai vu, mais si tu veux que dans Monde1 et Monde2 il y ait la config de World, mais que dans Monde3 et Monde4 il y en ait une autre, tu fais comme ça :
Code:
mirrors:
  World:
      Monde1:
      - users
      - groups
      Monde2:
      - users
      - groups
  Monde3:
      Monde4:
      - users
     - groups
Et la, normalement il y a bien ce qui est dit au début de ce message.
 
j'ai essayé mais sa ma mis un fichier error :

Code:
2015-06-25 21-48
=============================== GM ERROR LOG ===============================
= ERROR REPORT START - 2.0 (2.11.1) (Phoenix) =
 
java.lang.IllegalArgumentException: The following file couldn't pass on Parser.
plugins/GroupManager/config.yml
    at org.anjocaido.groupmanager.GMConfiguration.load(GMConfiguration.java:79)
    at org.anjocaido.groupmanager.GMConfiguration.<init>(GMConfiguration.java:51)
    at org.anjocaido.groupmanager.GroupManager.prepareConfig(GroupManager.java:324)
    at org.anjocaido.groupmanager.GroupManager.onEnable(GroupManager.java:161)
    at org.anjocaido.groupmanager.GroupManager.onCommand(GroupManager.java:1872)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
    at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:703)
    at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:955)
    at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:817)
    at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28)
    at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47)
    at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157)
    at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134)
    at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667)
    at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260)
    at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
    at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
    at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
Caused by: while parsing a block mapping
in "<reader>", line 2, column 3:
      config:
      ^
expected <block end>, but found BlockMappingStart
in "<reader>", line 44, column 8:
          Monde3:      (World2
          ^
 
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
    at org.anjocaido.groupmanager.GMConfiguration.load(GMConfiguration.java:75)
    ... 18 more
 
============================================================================

et voici ma config :

Code:
settings:
  config:
    # With this enabled anyone set as op has full permissions when managing GroupManager
    # The user will be able to promote players to the same group or even above.
    opOverrides: true
   
    # Default setting for 'mantogglevalidate'
    # true will cause GroupManager to attempt name matching by default.
    validate_toggle: true
    # ************************************************************************************************************************************************************
    # *** NOTE: Having this feature enabled can allow improper use of Command Blocks which may lead to undesireable permission changes. You have been warned! ***
    # ************************************************************************************************************************************************************
    allow_commandblocks: false
   
  data:
    save:
      # How often GroupManager will save it's data back to groups.yml and users.yml
      minutes: 10
      # Number of hours to retain backups (plugins/GroupManager/backup)
      hours: 24
     
  logging:
    # Level of detail GroupManager will use when logging.
    # Acceptable entries are - ALL,CONFIG,FINE,FINER,FINEST,INFO,OFF,SEVERE,WARNING
    level: INFO
   
  mirrors:
        # Worlds listed here have their settings mirrored in their children.
        # The first element 'world' is the main worlds name, and is the parent world.
        # subsequent elements 'world_nether' and 'world_the_end' are worlds which will use
        # the same user/groups files as the parent.
        # the element 'all_unnamed_worlds' specifies all worlds that aren't listed, and automatically mirrors them to it's parent.
        # Each child world can be configured to mirror the 'groups', 'users' or both files from its parent.
        world:
          world_nether:
          - users
          - groups
          world_the_end:
          - users
          - groups
          spawn:
          - users
          - groups
      Monde3:      (World2 would have it's own set of user and groups files)
        pvp_fac:
        - users   
        - groups
        1vs1:
        - users
        - groups  (World4 would use the groups.yml from world2, but it's own users.yml)
      Monde4:
        Askyblock:  (this would cause world6 to mirror both files from world5)
        - users
        - groups
        Askyblock_nether
        - users
        - groups
 
Heu, Monde1, Monde2, Monde3 et Monde4 sont des exemples. À la place tu met le nom du dossier dans lequel il y a la config que tu veux qu'il y ait dans les autres mondes cités en dessus.
La par exemple il faudrait :
Code:
settings:
  config:
    # With this enabled anyone set as op has full permissions when managing GroupManager
    # The user will be able to promote players to the same group or even above.
    opOverrides: true
 
    # Default setting for 'mantogglevalidate'
    # true will cause GroupManager to attempt name matching by default.
    validate_toggle: true
    # ************************************************************************************************************************************************************
    # *** NOTE: Having this feature enabled can allow improper use of Command Blocks which may lead to undesireable permission changes. You have been warned! ***
    # ************************************************************************************************************************************************************
    allow_commandblocks: false
 
  data:
    save:
      # How often GroupManager will save it's data back to groups.yml and users.yml
      minutes: 10
      # Number of hours to retain backups (plugins/GroupManager/backup)
      hours: 24
   
  logging:
    # Level of detail GroupManager will use when logging.
    # Acceptable entries are - ALL,CONFIG,FINE,FINER,FINEST,INFO,OFF,SEVERE,WARNING
    level: INFO
 
  mirrors:
        # Worlds listed here have their settings mirrored in their children.
        # The first element 'world' is the main worlds name, and is the parent world.
        # subsequent elements 'world_nether' and 'world_the_end' are worlds which will use
        # the same user/groups files as the parent.
        # the element 'all_unnamed_worlds' specifies all worlds that aren't listed, and automatically mirrors them to it's parent.
        # Each child world can be configured to mirror the 'groups', 'users' or both files from its parent.
        world:
          world_nether:
          - users
          - groups
          world_the_end:
          - users
          - groups
          spawn:
          - users
          - groups
      pvp_fac:
        1vs1:
        - users
        - groups
      Askyblock:
        Askyblock_nether
        - users
        - groups
 
Heu, Monde1, Monde2, Monde3 et Monde4 sont des exemples. À la place tu met le nom du dossier dans lequel il y a la config que tu veux qu'il y ait dans les autres mondes cités en dessus.
La par exemple il faudrait :
Code:
settings:
  config:
    # With this enabled anyone set as op has full permissions when managing GroupManager
    # The user will be able to promote players to the same group or even above.
    opOverrides: true
 
    # Default setting for 'mantogglevalidate'
    # true will cause GroupManager to attempt name matching by default.
    validate_toggle: true
    # ************************************************************************************************************************************************************
    # *** NOTE: Having this feature enabled can allow improper use of Command Blocks which may lead to undesireable permission changes. You have been warned! ***
    # ************************************************************************************************************************************************************
    allow_commandblocks: false
 
  data:
    save:
      # How often GroupManager will save it's data back to groups.yml and users.yml
      minutes: 10
      # Number of hours to retain backups (plugins/GroupManager/backup)
      hours: 24
 
  logging:
    # Level of detail GroupManager will use when logging.
    # Acceptable entries are - ALL,CONFIG,FINE,FINER,FINEST,INFO,OFF,SEVERE,WARNING
    level: INFO
 
  mirrors:
        # Worlds listed here have their settings mirrored in their children.
        # The first element 'world' is the main worlds name, and is the parent world.
        # subsequent elements 'world_nether' and 'world_the_end' are worlds which will use
        # the same user/groups files as the parent.
        # the element 'all_unnamed_worlds' specifies all worlds that aren't listed, and automatically mirrors them to it's parent.
        # Each child world can be configured to mirror the 'groups', 'users' or both files from its parent.
        world:
          world_nether:
          - users
          - groups
          world_the_end:
          - users
          - groups
          spawn:
          - users
          - groups
      pvp_fac:
        1vs1:
        - users
        - groups
      Askyblock:
        Askyblock_nether
        - users
        - groups
meme en recopiant sa il y a encore une erreur :

Code:
2015-06-25 22-32
=============================== GM ERROR LOG ===============================
= ERROR REPORT START - 2.0 (2.11.1) (Phoenix) =
 
java.lang.IllegalArgumentException: The following file couldn't pass on Parser.
plugins/GroupManager/config.yml
    at org.anjocaido.groupmanager.GMConfiguration.load(GMConfiguration.java:79)
    at org.anjocaido.groupmanager.GMConfiguration.<init>(GMConfiguration.java:51)
    at org.anjocaido.groupmanager.GroupManager.prepareConfig(GroupManager.java:324)
    at org.anjocaido.groupmanager.GroupManager.onEnable(GroupManager.java:161)
    at org.anjocaido.groupmanager.GroupManager.onCommand(GroupManager.java:1872)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
    at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:703)
    at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:955)
    at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:817)
    at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28)
    at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47)
    at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157)
    at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134)
    at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667)
    at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260)
    at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
    at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
    at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
Caused by: while parsing a block mapping
in "<reader>", line 2, column 3:
      config:
      ^
expected <block end>, but found BlockMappingStart
in "<reader>", line 44, column 7:
          pvp_fac:
          ^
 
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
    at org.anjocaido.groupmanager.GMConfiguration.load(GMConfiguration.java:75)
    ... 18 more
 
============================================================================