0

我有奇怪的问题...

我有那堂课:

http://pastebin.com/0rn9jCZd

还有那个配置文件:

# ProfessionalWarns plugin config :) Plugin by BukkitSmerf.

General:
  V: 0.01
  Language: EN
  DB: SQLite
  MySQl:
    user: username
    db: database
    pass: password
    host: host
  WriteComments: true
  AutoUpdateConfigs: true
  CheckForUpdates: true
  AutoUpdate: false
Warns:
  MaxWarns: 100
  DefaultReason: '&4No reason'
  SpecialWarnMessage:
    Enabled: true
    WarnAliases:
    - "25:ray:Cheating using x-ray"
    - "90:nodus:Cheating using nodus#Lightning %p"
  CommandsAfterWarn:
  - "lighnting %p"
  Broadcast: true
  AfterMaxWarns:
    ResetWarnsTo: 25
    ResetWarnsWarnReason: '&9Reseting warns...'
    Ban: true
    BanOptions:
      Reason: '&4Too many warnings!'
      Time: 1w
      BanIp: true
    RunCommands: []
    Broadcast: true
Bans:
  DefaultReason: '&4No reason'
  DefaultTime: '5y'
  BanAliases: []
  RunCommands: []
Mutes:
  PlayerMute:
    CanUseCommand: true
    CommandList: [msg, tell, call, w, mail]
  GlobalMute:
    CanUseCommand: true
    CommandList: []
Jails:
  UseWordGuard: false
  UseBorders: true
  DefaultJail:
    Jail:
      Flags:
        Player:
          BlockAllInteract: false
          CanPlaceBlocks: false
          CanBreakBlocks: false
          CanUseBlocks: true
          CanUseItems: true
          CanDropItems: false
          CanPickUpItems: false
          CanGetDamageFromPlayer: true
          CanGetDamageFromMobs: false
          CanGetDamageFromPotions: false
          CanGetDamageFromExplosions: false
          CanGetDamageFromFall: false
          CanGetDamageFromFire: false
          CanGetDamageFromLava: false
          CanGetDamageFromVoid: false
          CanGetDamageFromOthers: false
          CanDamageOthers: false
          CanDamageMobs: false
          CanChat: true
          CanTeleport: false
          CanUseVehicles: false
          CanPlaceVehicles: false
          CanDestroyVehicles: false
          CanPlacePaintingsAndItemFrames: false
          CanDestroyPaintingsAndItemFrames: false
          CanInteractWithItemFrames: false
          CanOtherInteracts: true
          CommandList: white
          List:
          - login
          - l
          - changepassword
          - tell
          - msg
        Region:
          SpawnMobs: true
          SpawnMonsters: true
          TntExplosion: false
          OtherExplosion: false
          Enderman: false
          Silverfish: false
Chat:
  CapsLock:
    Enabled: true
    MinMessageLength: 4
    MaxChars: 50
    Commands: []
    CheckCommands: [me, bc, broadcast]
  Spam:
    Enabled: true
    Time: 1000
    SpamFilter:
      BlockIfThisSameMessage: true
      BlockRange: 3
      MultiPlayerCheck: false
      MultiBlockRange: 5
      ExtraFilter:
        Enabled: true
        Level: 0
        Percentage: 80
        MinimalLength: 10
    Commands: []
    GlobalMinimalLength: 2
    CheckCommands: [me, bc, broadcast]
  Ip:
    Enabled: True
    Commands: []
    CheckCommands: [me, bc, broadcast]
  Word:
    Enabled: True
    ReplaceSpaces: True
    Removed: [".", ","]
    Replaced: ["ó:o:u", "ą:a", "ę:e"]
    CheckCommands: [me, bc, broadcast]
    FastCheck:
    - "Give me op"
    - "I want op"
    - "IdiotCraft.com:4325"
    NormalCheck:
    - "fuck"
    Exceptions:
    - "Add Exceptions Here"
    Commands: []
IpTrack:
  Enabled: true
  Memory: 5

那个错误......: http: //pastebin.com/E1HPssUX

而且我不知道如何解决这个问题......

如果我将配置更改为例如:

rgoerihgyuehguidih:
  gfyuertergherg: 2

然后我在 rgoerihgyuehguidih 中的“:”也有同样的错误:

所以......知道如何解决这个问题吗?我花了 2 天......仍然一无所获;/

4

1 回答 1

0

通过一个像http://yaml-online-parser.appspot.com/这样的 YAML 验证器运行您的配置,并一次挑选一个错误,直到它通过。

于 2013-08-13T11:30:03.213 回答