From b687b62a15496c10aeb56d53794807aba4cfd7e4 Mon Sep 17 00:00:00 2001 From: Rigby Date: Wed, 9 Mar 2011 16:02:39 +0000 Subject: [PATCH] MVReload command. --- .../MultiVerseCore/commands/MVReload.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/com/onarandombox/MultiVerseCore/commands/MVReload.java diff --git a/src/com/onarandombox/MultiVerseCore/commands/MVReload.java b/src/com/onarandombox/MultiVerseCore/commands/MVReload.java new file mode 100644 index 00000000..2d83a03a --- /dev/null +++ b/src/com/onarandombox/MultiVerseCore/commands/MVReload.java @@ -0,0 +1,24 @@ +package com.onarandombox.MultiVerseCore.commands; + +import org.bukkit.command.CommandSender; + +import com.onarandombox.MultiVerseCore.MVCommandHandler; +import com.onarandombox.MultiVerseCore.MultiVerseCore; + +public class MVReload extends MVCommandHandler { + + public MVReload(MultiVerseCore plugin) { + super(plugin); + } + + @Override + public boolean perform(CommandSender sender, String[] args) { + // TODO: Implement Permissions + MultiVerseCore.log.info(MultiVerseCore.logPrefix + "Reloading MultiVerse"); + plugin.loadConfigs(); + plugin.loadWorlds(); + MultiVerseCore.log.info(MultiVerseCore.logPrefix + "Reload Complete!"); + return true; + } + +}