1
0
mirror of https://e.coding.net/circlecloud/TeleportRandom.git synced 2024-10-31 07:28:47 +00:00

feat: 修复上个版本的空指针错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-07-19 09:22:23 +08:00
parent 3e221e9f3c
commit 97f0800fea

View File

@ -8,6 +8,7 @@ import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
@ -15,7 +16,7 @@ import org.bukkit.plugin.java.JavaPlugin;
import cn.citycraft.PluginHelper.config.FileConfig;
import cn.citycraft.PluginHelper.utils.VersionChecker;
public class TeleportRandom extends JavaPlugin {
public class TeleportRandom extends JavaPlugin implements CommandExecutor {
public final static Random rr = new Random();
public static FileConfig config;
@ -57,6 +58,7 @@ public class TeleportRandom extends JavaPlugin {
@Override
public void onEnable() {
getCommand("tpr").setExecutor(this);
new VersionChecker(this);
}