marcelo-mason / PreciousStones

Self-service protection for Minecraft servers
http://dev.bukkit.org/server-mods/preciousstones/
56 stars 66 forks source link

2 problems: reset on restart /ps list #873

Open Tyounr opened 9 years ago

Tyounr commented 9 years ago

First problem: When I restart my server, the config resets itself. Even though that I have saved it multiple times before restarting.

Second problem: When I add my own pStones, they do work, but even though when I remove the old ones, the old ones still show up in /ps list.

If you have questions, just contact me.

Taybosquee commented 9 years ago

What version of PreciousStones are you using? Could you upload your config (After you've edited it to your liking but before it gets reset; be sure to remove your MySQL information if you use MySQL.)?

Tyounr commented 9 years ago
unbreakable-blocks: []
force-field-blocks:
- title: Farm Protection
  block: 'wool:0'
  radius: 32
  custom-height: 5
  meta-name: '&fFarm Protection'
  meta-autoset: true
  meta-lore:
  - '&fThis will protect farmland'
  - '&fIt covers an area of 32 radius'
  - '&fWith a max height of 5'
  prevent-fire: false
  prevent-place: true
  prevent-destroy: true
  prevent-enderman-destroy: true
  prevent-explosions: false
  prevent-wither-explosions: false
  prevent-tnt-explosions: false
  prevent-unprotectable: true
  prevent-teleport: false
  protect-animals: true
  protect-mobs: false
  protect-villagers: true
  prevent-item-frame-take: true
  protect-armor-stands: true
  prevent-flow: true
  protect-crops: true
  protect-inventories: false
  welcome-message: true
  farewell-message: true
  prevent-portal-enter: false
  prevent-portal-destination: false
  prevent-portal-create: false
  prevent-vehicle-enter: false
  sneak-to-place: true
  prevent-vehicle-exit: false
  prevent-teleport: false
  prevent-fire: false
  prevent-fire-spread: false
  prevent-flow: true
  prevent-entry: false
  prevent-vehicle-destroy: false
  prevent-vehicle-enter: false
  command-blacklisting: false
  can-change-owner: false
  visualize-on-src: true
  visualize-on-place: true
  keep-chunks-loaded: true
  mixing-group: 1
  hidable: true
  rentable: false
  buyable: true
  cuboid: true
  mask-on-disabled: 80
  no-conflict: true
  plot: false
  limits: [2, 3, 4, 5]
  allowed-worlds: ["map"]
  price: 50000
  refund: 45000 
- title: 'Farm Protection II'
  block: 'wool:1'
  radius: 64
  custom-height: 5
  meta-name: '&6Farm Protection II'
  meta-autoset: true
  meta-lore:
  - '&6This will protect farmland'
  - '&6It covers an area of 64 radius'
  - '&6With a max height of 5'
  prevent-fire: false
  prevent-place: true
  prevent-destroy: true
  prevent-enderman-destroy: true
  prevent-explosions: false
  prevent-wither-explosions: false
  prevent-tnt-explosions: false
  prevent-unprotectable: true
  prevent-teleport: false
  protect-animals: true
  protect-mobs: false
  protect-villagers: true
  prevent-item-frame-take: true
  protect-armor-stands: true
  prevent-flow: true
  protect-crops: true
  protect-inventories: false
  welcome-message: true
  farewell-message: true
  prevent-portal-enter: false
  prevent-portal-destination: false
  prevent-portal-create: false
  prevent-vehicle-enter: false
  sneak-to-place: true
  prevent-vehicle-exit: false
  prevent-teleport: false
  prevent-fire: false
  prevent-fire-spread: false
  prevent-flow: true
  prevent-entry: false
  prevent-vehicle-destroy: false
  prevent-vehicle-enter: false
  command-blacklisting: false
  can-change-owner: false
  visualize-on-src: true
  visualize-on-place: true
  keep-chunks-loaded: true
  mixing-group: 1
  hidable: true
  rentable: false
  buyable: true
  cuboid: true
  mask-on-disabled: 80
  no-conflict: true
  plot: false
  limits: [2, 3, 4, 5]
  allowed-worlds: ["map"]
  price: 90000
  refund: 80000
- title: Farm Protection III
  block: 'wool:2'
  radius: 128
  custom-height: 5
  meta-name: '&5Farm Protection III'
  meta-autoset: true
  meta-lore:
  - '&5This will protect farmland'
  - '&5It covers an area of 128 radius'
  - '&5With a max height of 5'
  prevent-fire: false
  prevent-place: true
  prevent-destroy: true
  prevent-enderman-destroy: true
  prevent-explosions: false
  prevent-wither-explosions: false
  prevent-tnt-explosions: false
  prevent-unprotectable: true
  prevent-teleport: false
  protect-animals: true
  protect-mobs: false
  protect-villagers: true
  prevent-item-frame-take: true
  protect-armor-stands: true
  prevent-flow: true
  protect-crops: true
  welcome-message: true
  farewell-message: true
  prevent-portal-enter: false
  prevent-portal-destination: false
  prevent-portal-create: false
  prevent-vehicle-enter: false
  protect-inventories: false
  sneak-to-place: true
  prevent-vehicle-exit: false
  prevent-teleport: false
  prevent-fire: false
  prevent-fire-spread: false
  prevent-flow: true
  prevent-entry: false
  prevent-vehicle-destroy: false
  prevent-vehicle-enter: false
  command-blacklisting: false
  can-change-owner: false
  visualize-on-src: true
  visualize-on-place: true
  keep-chunks-loaded: true
  mixing-group: 1
  hidable: true
  rentable: false
  buyable: true
  cuboid: true
  mask-on-disabled: 80
  no-conflict: true
  plot: false
  limits: [2, 3, 4, 5]
  allowed-worlds: ["map"]
  price: 150000
  refund: 130000
- title: Chest Protection
  block: 'wool:3'
  radius: 128
  custom-height: 5
  meta-name: '&bChest Protection'
  meta-autoset: true
  meta-lore:
  - '&bThis will protect inventories'
  - '&bIt covers an area of 5 radius'
  - '&bWith a max height of 5'
  prevent-fire: false
  prevent-place: true
  prevent-destroy: true
  prevent-enderman-destroy: true
  prevent-explosions: false
  prevent-wither-explosions: false
  prevent-tnt-explosions: false
  prevent-unprotectable: true
  prevent-teleport: false
  protect-animals: true
  protect-mobs: false
  protect-villagers: true
  prevent-item-frame-take: true
  protect-armor-stands: true
  prevent-flow: true
  protect-crops: true
  welcome-message: true
  farewell-message: true
  prevent-portal-enter: false
  prevent-portal-destination: false
  prevent-portal-create: false
  prevent-vehicle-enter: false
  protect-inventories: true
  sneak-to-place: true
  prevent-vehicle-exit: false
  prevent-teleport: false
  prevent-fire: false
  prevent-fire-spread: false
  prevent-flow: true
  prevent-entry: false
  prevent-vehicle-destroy: false
  prevent-vehicle-enter: false
  command-blacklisting: false
  can-change-owner: false
  visualize-on-src: true
  visualize-on-place: true
  keep-chunks-loaded: true
  mixing-group: 1
  hidable: true
  rentable: false
  buyable: true
  cuboid: true
  mask-on-disabled: 80
  no-conflict: true
  plot: false
  limits: [2, 3, 4, 5]
  allowed-worlds: ["map"]
  price: 30000
  refund: 0
- title: Small base protection
  block: 'wool:4'
  radius: 32
  custom-height: 32
  meta-name: '&eSmall base Protection'
  meta-autoset: true
  meta-lore:
  - '&eThis will protect inventories'
  - '&eIt covers an area of 32 radius'
  - '&eWith a max height of 32'
  prevent-fire: false
  prevent-place: true
  prevent-destroy: true
  prevent-enderman-destroy: true
  prevent-explosions: false
  prevent-wither-explosions: false
  prevent-tnt-explosions: false
  prevent-unprotectable: true
  prevent-teleport: false
  protect-animals: true
  protect-mobs: false
  protect-villagers: true
  prevent-item-frame-take: true
  protect-armor-stands: true
  prevent-flow: true
  protect-crops: true
  welcome-message: true
  farewell-message: true
  prevent-portal-enter: false
  prevent-portal-destination: false
  prevent-portal-create: false
  prevent-vehicle-enter: false
  protect-inventories: false
  sneak-to-place: true
  prevent-vehicle-exit: false
  prevent-teleport: false
  prevent-fire: false
  prevent-fire-spread: false
  prevent-flow: true
  prevent-entry: false
  prevent-vehicle-destroy: false
  prevent-vehicle-enter: false
  command-blacklisting: false
  can-change-owner: false
  visualize-on-src: true
  visualize-on-place: true
  keep-chunks-loaded: true
  mixing-group: 1
  hidable: true
  rentable: false
  buyable: true
  cuboid: true
  mask-on-disabled: 80
  no-conflict: true
  plot: false
  limits: [2, 3, 4, 5]
  allowed-worlds: ["map"]
  price: 500000
  refund: 400000
- title: Big base protection
  block: 'wool:6'
  radius: 64
  custom-height: 64
  meta-name: '&bBig base protection'
  meta-autoset: true
  meta-lore:
  - '&dThis will protect your base'
  - '&dIt covers an area of 64 radius'
  - '&dWith a max height of 64'
  prevent-fire: false
  prevent-place: true
  prevent-destroy: true
  prevent-enderman-destroy: true
  prevent-explosions: false
  prevent-wither-explosions: false
  prevent-tnt-explosions: false
  prevent-unprotectable: true
  prevent-teleport: false
  protect-animals: true
  protect-mobs: false
  protect-villagers: true
  prevent-item-frame-take: true
  protect-armor-stands: true
  prevent-flow: true
  protect-crops: true
  welcome-message: true
  farewell-message: true
  prevent-portal-enter: false
  prevent-portal-destination: false
  prevent-portal-create: false
  prevent-vehicle-enter: false
  protect-inventories: false
  sneak-to-place: true
  prevent-vehicle-exit: false
  prevent-teleport: false
  prevent-fire: false
  prevent-fire-spread: false
  prevent-flow: true
  prevent-entry: false
  prevent-vehicle-destroy: false
  prevent-vehicle-enter: false
  command-blacklisting: false
  can-change-owner: false
  visualize-on-src: true
  visualize-on-place: true
  keep-chunks-loaded: true
  mixing-group: 1
  hidable: true
  rentable: false
  buyable: true
  cuboid: true
  mask-on-disabled: 80
  no-conflict: true
  plot: false
  limits: [2, 3, 4, 5]
  allowed-worlds: ["map"]
  price: 1000000
  refund: 850000
bypass-blocks: []
unprotectable-blocks: []
hiding-mask-blocks:
- '1'
- '2'
- '3'
- '4'
- '5'
- '7'
- '12'
- '13'
- '17'
- '18'
- '20'
- '24'
- '35'
- '43'
- '45'
- '47'
- '48'
- '49'
- '53'
- '60'
- '67'
- '80'
- '81'
- '82'
- '87'
- '88'
- '89'
- '99'
- '100'
- '108'
- '109'
- '110'
- '123'
- '124'
- '125'
- '128'
- '134'
- '135'
- '136'
tool-items:
- '256'
- '257'
- '258'
- '269'
- '270'
- '271'
- '273'
- '274'
- '275'
- '277'
- '278'
- '279'
- '284'
- '285'
- '286'
- '290'
- '291'
- '292'
- '293'
- '294'
repairable-items:
- '256'
- '257'
- '258'
- '259'
- '261'
- '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'
log:
  translocation: true
  rollback: true
  fire: true
  entry: true
  place: true
  use: true
  pvp: true
  destroy: true
  destroy-area: false
  place-area: false
  unprotectable: true
  bypass-pvp: true
  bypass-delete: true
  bypass-place: true
  bypass-destroy: true
  conflict-place: true
  rents-and-purchases: true
notify:
  translocation: true
  rollback: true
  place: true
  destroy: true
  bypass-unprotectable: true
  bypass-pvp: true
  bypass-place: true
  bypass-destroy: true
  fly-zones: true
warn:
  instant-heal: true
  slow-heal: true
  slow-damage: true
  slow-feeding: true
  slow-repair: true
  fast-damage: true
  air: true
  fire: true
  entry: true
  place: true
  use: true
  pvp: true
  destroy: true
  destroy-area: true
  unprotectable: true
  launch: true
  cannon: true
  mine: true
settings:
  disable-messages: false
  prevent-removal-if-player-in-field: true
  use-commands-to-rent: false
  disable-simpleclans-hook: false
  max-size-translocation: 100000
  max-size-translocation-for-redstone: 1000
  version: 13
  prevent-place-everywhere: []
  prevent-destroy-everywhere: []
  show-default-welcome-farewell-messages: true
  sneak-to-place-field: false
  sneak-to-place-normal-block: true
  disable-ground-info: false
  global-field-limit: 1000000
  no-refund-for-fields: false
  public-block-details: false
  drop-on-delete: true
  disable-alerts-for-admins: true
  disable-bypass-alerts-for-admins: false
  off-by-default: false
  lines-per-page: 100
  show-debug-info: true
  blacklisted-worlds:
  - map_nether
  - map_The_end
  auto-allow-clan-on-fields: false
  check-once-per-block-on-move: false
  use-blockids-in-snitches: false
  fence-max-depth: 50
  max-target-distance: 100
  default-item-currency: '266'
cuboid:
  defining-blocktype: diamond_block
  visualization-blocktype: glass
saving:
  frequency-seconds: 1
  max-records-per-snitch: 50
visualization:
  frame-block-type: glass
  block-type: glass
  seconds: 30
  new-dotted-style: true
  end-on-player-move: false
  mark-block-type: diamond_block
  default-density: 8
  blocks-to-send: 100
  max-fields-to-visualize-at-once: 5
  ticks-between-sends: 10
  visualize-on-expand: true
grief-revert:
  min-interval-secs: 30
  black-list:
  - '92'
mysql:
  enable: true
  host: 104.37.29.27
  port: 3306
  database: minecraft
  username: '[LEFT OUT TO BE SAFE]'
  password: '[LEFT OUT TO BE SAFE]'

The version is: PreciousStones 9.9.0

Tyounr commented 9 years ago

This comment box fucked up the 'enter'-key's function.

Taybosquee commented 9 years ago

YAML is very anal about formatting. Although I realize the jumble you posted is that way because of Github and not how you originally wrote it, I still believe both your issues are caused by a formatting problem. If the plugin is not able to read the config for what ever reason it regenerates it on restart/reload. If you do not already, I highly highly advise you get a program like Notepad++ (https://notepad-plus-plus.org/) for use in editing .YML files and always be sure to copy your config into a format checker (Like http://yaml-online-parser.appspot.com/) before saving it. The below config /should/ work now. Again, just be sure what what ever program you are using to edit it preserves the formatting.

http://pastebin.com/heuWUaZr