PreciousStones

PreciousStones

269k Downloads

old config suddenly doesnt work anymore

flow2006 opened this issue · 4 comments

commented

hi
my config.yml doesnt work anymore since yesterday i always get the following error in console:

2012-08-16 02:07:42 [SEVERE] Cannot load plugins/PreciousStones/config.yml
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xFFFD) special characters are not allowed
in "", position 5098
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175)
at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.(SettingsManager.java:136)
at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:120)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: unacceptable character '?' (0xFFFD) special characters are not allowed
in "", position 5098
at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
at org.yaml.snakeyaml.reader.StreamReader.(StreamReader.java:50)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
... 18 more
2012-08-16 02:07:42 [SEVERE] org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xFFFD) special characters are not allowed
in "", position 5098
2012-08-16 02:07:42 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105)
2012-08-16 02:07:42 [SEVERE] at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.load(SettingsManager.java:164)
2012-08-16 02:07:42 [SEVERE] at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.(SettingsManager.java:138)
2012-08-16 02:07:42 [SEVERE] at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:120)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
2012-08-16 02:07:42 [SEVERE] at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
2012-08-16 02:07:42 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
2012-08-16 02:07:42 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
2012-08-16 02:07:42 [SEVERE] at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
2012-08-16 02:07:42 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380)
2012-08-16 02:07:42 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
2012-08-16 02:07:42 [SEVERE] Caused by: unacceptable character '?' (0xFFFD) special characters are not allowed
in "", position 5098
2012-08-16 02:07:42 [SEVERE] at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
2012-08-16 02:07:42 [SEVERE] at org.yaml.snakeyaml.reader.StreamReader.(StreamReader.java:50)
2012-08-16 02:07:42 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
2012-08-16 02:07:42 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
2012-08-16 02:07:42 [SEVERE] ... 16 more

i updated to the new pstone version some days ago and havent changet anything since then in the config and it worked 2 days or so just fine until now every time i change to the old config i get this error..thats very bad because i have changed some of the block ids and made custum fields now there all gone -.-

commented

Seems like you have a question mark character in some string that you probably need to wrap in quotes. It would help if you post your config.

commented

meanwhile ive rewritten the whole config but here is the old one but i cant find a question mark the config worked for 2 days withe the update and then suddenly dont anymore, but here is the config:

bypass-blocks: []
unbreakable-blocks:
- 56
- 15
- 14
- 16
unprotectable-blocks: []
repairable-items:
- 256
- 257
- 258
- 259
- 267
- 268
- 269
- 270
- 271
- 272
- 273
- 274
- 275
- 276
- 277
- 278
- 279
- 283
- 284
- 285
- 286
- 290
- 291
- 292
- 293
- 294
- 298
- 299
- 300
- 301
- 302
- 303
- 304
- 305
- 306
- 307
- 308
- 309
- 310
- 311
- 312
- 313
- 314
- 315
- 316
- 317
- 359
tool-items:
- 256
- 257
- 258
- 269
- 270
- 271
- 273
- 274
- 275
- 277
- 278
- 279
- 284
- 285
- 286
- 290
- 291
- 292
- 293
- 294
force-field-blocks:
- title: City Protection
  block: 57
  radius: 20
  custom-height: 15
  prevent-fire: true
  prevent-place: true
  prevent-destroy: true
  prevent-explosions: true
  prevent-unprotectable: true
  prevent-flow: true
  prevent-teleport: true
  welcome-message: true
  farewell-message: true
  can-change-owner: true
  enable-on-src: true
  mixing-group: 1
  cuboid: true
- title: Entry Bouncer
  block: 22
  radius: 5
  prevent-entry: true
  prevent-fire: true
  prevent-place: true
  prevent-destroy: true
  prevent-explosions: true
  prevent-unprotectable: true
  prevent-flow: true
  enable-on-src: true
  can-change-owner: true
  cuboid: true
- title: Jack-o-Death
  block: 91
  radius: 5
  damage: 4
  no-conflict: true
  sneaking-bypass: true
  no-player-place: true
  mixing-group: 2
- title: Creature Repeller
  block: 30
  radius: 20
  prevent-mob-spawn: true
  prevent-animal-spawn: true
  remove-mob: true
  no-conflict: true
  mixing-group: 1
  cuboid: true
- title: Air of Atlantis
  block: 21
  radius: 10
  custom-height: 256
  air: true
  no-conflict: true
  mixing-group: 1
  cuboid: true
- title: Proximity Snitch
  block: 25
  radius: 5
  snitch: true
  entry-alert: true
  no-conflict: true
  mixing-group: 2
  cuboid: true
- title: The Shocker
  block: 97
  radius: 0
  custom-height: 3
  lightning: true
  lightning-replace-block: 0
  sneaking-bypass: true
  breakable: true
  no-conflict: true
  mixing-group: 2
  cuboid: true
- title: Proximity Mine
  block: 73
  radius: 1
  custom-height: 5
  mine: true
  breakable: true
  sneaking-bypass: true
  mixing-group: 2
  no-conflict: true
- title: Launch Pad
  block: 42
  radius: 1
  launch: true
  no-conflict: true
  sneaking-bypass: true
  custom-volume: 20
  mixing-group: 2
  cuboid: true
- title: Sky Cannon
  block: 16
  radius: 0
  custom-height: 3
  custom-volume: 20
  sneaking-bypass: true
  cannon: true
  no-conflict: true
  mixing-group: 2
  cuboid: true
- title: Grief Revert
  block: 41
  radius: 20
  custom-height: 15
  grief-revert: true
  welcome-message: true
  farewell-message: true
  enable-on-src: true
  mixing-group: 1
  cuboid: true
- title: GodStone
  block: 99
  radius: 5
  heal: 4
  feed: 2
  repair: 25
  no-conflict: true
  mixing-group: 2
  cuboid: true
- title: Forester
  block: 86
  radius: 20
  custom-height: 15
  forester: true
  ground-block: 2
  fertile-blocks:
  - 1
  - 3
  - 12
  - 87
  - 88
  tree-types:
  - 0
  - 0
  - 0
  - 1
  - 1
  - 2
  - 3
  - 4
  - 4
  tree-count: 64
  grow-time: 10
  shrub-types:
  - 1
  - 1
  - 1
  - 2
  - 2
  - 3
  - 4
  shrub-density: 64
  creature-types:
  - None
  - None
  - None
  - None
  - None
  - Sheep
  - Pig
  - Cow
  creature-count: 12
  no-owner: true
  no-conflict: true
- title: Peace Keeper
  block: 19
  radius: 10
  prevent-pvp: true
  no-player-place: true
  prevent-mob-damage: true
  cuboid: true
- title: Stadtschutzplus
  block: 56
  radius: 50
  custom-height: 255
  dynmap-area: true
  prevent-fire: true
  prevent-place: true
  prevent-destroy: true
  prevent-explosions: true
  prevent-unprotectable: true
  prevent-mob-spawn: true
  prevent-animal-spawn: true
  prevent-mob-damage: true
  prevent-pvp: true
  prevent-flow: true
  prevent-teleport: true
  welcome-message: true
  farewell-message: true
  can-change-owner: true
  grief-revert: true
  cuboid: true
  mixing-group: 7
  prevent-use:
  - 54
- title: Grundstück
  block: 15
  radius: 7
  custom-height: 255
  dynmap-area: true
  sub-plot: true
  allowed-only-inside:
  - Stadtschutzplus
  grief-revert: true
  prevent-fire: true
  prevent-place: true
  prevent-destroy: true
  prevent-explosions: true
  prevent-unprotectable: true
  prevent-mob-damage: true
  prevent-pvp: true
  prevent-flow: true
  prevent-teleport: true
  welcome-message: true
  farewell-message: true
  can-change-owner: true
  cuboid: true
  mixing-group: 8
  prevent-use:
  - 54
- title: Grundstückplus
  block: 14
  radius: 14
  custom-height: 255
  dynmap-area: true
  sub-plot: true
  allowed-only-inside:
  - Stadtschutzplus
  grief-revert: true
  prevent-fire: true
  prevent-place: true
  prevent-destroy: true
  prevent-explosions: true
  prevent-unprotectable: true
  prevent-mob-damage: true
  prevent-pvp: true
  prevent-flow: true
  prevent-teleport: true
  welcome-message: true
  farewell-message: true
  can-change-owner: true
  cuboid: true
  mixing-group: 9
  prevent-use:
  - 54
- title: Serverschutz
  block: 16
  radius: 20
  custom-height: 265
  prevent-fire: true
  prevent-place: true
  prevent-destroy: true
  prevent-explosions: true
  prevent-unprotectable: true
  prevent-flow: true
  prevent-teleport: true
  welcome-message: false
  farewell-message: false
  can-change-owner: false
  prevent-mob-spawn: true
  prevent-mob-damage: true
  no-player-place: true
  enable-on-src: true
  prevent-pvp: true
  mixing-group: 2
  cuboid: true
  - title: Serverschutzplus
  block: 87
  radius: 60
  custom-height: 265
  prevent-fire: true
  prevent-place: true
  prevent-destroy: true
  prevent-explosions: true
  prevent-unprotectable: true
  prevent-flow: true
  prevent-teleport: true
  welcome-message: false
  farewell-message: false
  prevent-mob-spawn: true
  can-change-owner: false
  prevent-mob-damage: true
  no-player-place: true
  enable-on-src: true
  prevent-pvp: true
  mixing-group: 2
  cuboid: true
warn:
  slow-damage: true
  pvp: true
  instant-heal: true
  launch: true
  fast-damage: true
  use: true
  air: true
  slow-feeding: true
  fire: true
  cannon: true
  destroy-area: true
  destroy: true
  slow-heal: true
  entry: true
  unprotectable: true
  mine: true
  slow-repair: true
  place: true
cleanup:
  player-inactivity-purge-days: 45
  snitch-unused-purge-days: 30
settings:
  prevent-place-everywhere: false
  prevent-destroy-everywhere: false
  sneak-to-place-normal-block: true
  sneak-to-place-field: false
  show-debug-info: false
  show-default-welcome-farewell-messages: true
  dynmap-flags-disabled-by-default: false
  welcome-farewell-disabled-by-default: false
  disable-ground-info: false
  global-field-limit: 1000000
  no-refund-for-fields: false
  off-by-default: true
  log-to-hawkeye: false
  lines-per-page: 12
  disable-bypass-alerts-for-admins: false
  disable-alerts-for-admins: true
  public-block-details: false
  blacklisted-worlds:
  - creative_world
  drop-on-delete: true
  version: 9.0
  auto-download-vault: false
log:
  bypass-pvp: true
  pvp: true
  bypass-destroy: true
  use: true
  fire: true
  destroy: true
  destroy-area: false
  place-area: false
  entry: true
  unprotectable: true
  bypass-place: true
  place: true
  rollback: true
  bypass-delete: true
  conflict-place: true
cuboid:
  visualization-blocktype: 20
  defining-blocktype: 49
visualization:
  block-type: 20
  seconds: 40
  mark-block-type: 49
  end-on-player-move: false
  frame-block-type: 20
  blocks-to-send: 100
  ticks-between-sends: 10
  default-density: 8
  max-fields-to-visualize-at-once: 5
notify:
  destroy: true
  bypass-pvp: true
  bypass-destroy: true
  bypass-unprotectable: true
  bypass-place: true
  place: true
  rollback: true
  fly-zones: true
grief-undo:
  min-interval-secs: 30
  black-list:
  - 92
saving:
  frequency-seconds: 15
  max-records-per-snitch: 50
mysql:
  username: xxxxxxxxx
  host: localhost
  enable: true
  password: xxxxxxxxx
  database: xxxxxxxxx
  port: 3306
commented

It validates in http://yamllint.com/. Shouldn't give a problem.

commented

yeah i know that the config is okay i havent changed anything but from on day to another i only got errors and everytime when i changed the config to this version it happened again alwas the same error but like i said i have written the config new now, hope it doesnt happen again, but with this config i spend a whole night and get it not working...