Fix error if no render triggers are defined.
This commit is contained in:
parent
05f3ced64f
commit
b804aa72f8
1 changed files with 6 additions and 2 deletions
|
|
@ -110,8 +110,12 @@ public class DynmapPlugin extends JavaPlugin {
|
|||
hchand = new HeroChatHandler(configuration, this, getServer());
|
||||
|
||||
enabledTriggers.clear();
|
||||
for (Object trigger : configuration.getList("render-triggers")) {
|
||||
enabledTriggers.add((String) trigger);
|
||||
List<Object> triggers = configuration.getList("render-triggers");
|
||||
if (triggers != null)
|
||||
{
|
||||
for (Object trigger : triggers) {
|
||||
enabledTriggers.add((String) trigger);
|
||||
}
|
||||
}
|
||||
|
||||
registerEvents();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue