timvisee/DungeonMaze — pull request #4 by Xephi (2012-11-13 00:49:06+00:00)
Title: Rewrite config.yml get and use method

My change is that :

config.yml :
- Remove the folder : res
- Also put the config.yml on the main folder with the plugin.yml
- Add 'usePermissions' and 'useBypassPermissions' to default Config file

DungeonMaze.java :
- Completly rewrite the config.yml load with the new stuff from bukkit
- Make variable static to fix an NPE when BlockBreak or BlockPlace Event if the server is just loaded
( FIX : dev.bukkit.org/server-mods/dungeon-maze/?comment=148 )

Remove my old API to fix yours and full debug this

Change when you compile the plugin :
No more 'res/defaultFiles/.......' folder
Do not forget to add config.yml to the .jar

What you need to say to guys when you update it on BukkitDev :

Need to add manually :
usePermissions: true
useBypassPermissions: true

to the config

OR :
Delete the old config , and start server, then stop it immediatly and change the ( Worlds and PreloadsWorlds) string list, for make DungeonMaze full fonctionly, also , restart server

Xephi