mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-12-22 16:18:24 +01:00
Modifyworld now truly independent from PEX
This commit is contained in:
parent
baf265ee9c
commit
bc8cdd2814
@ -25,9 +25,6 @@ import org.bukkit.entity.*;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import ru.tehkode.permissions.PermissionGroup;
|
||||
import ru.tehkode.permissions.PermissionUser;
|
||||
import ru.tehkode.permissions.bukkit.PermissionsEx;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -1,8 +1,5 @@
|
||||
package ru.tehkode.modifyworld;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
@ -14,6 +11,9 @@ import org.bukkit.inventory.ItemStack;
|
||||
import ru.tehkode.permissions.PermissionUser;
|
||||
import ru.tehkode.permissions.bukkit.PermissionsEx;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class PlayerInformer {
|
||||
|
||||
public final static String PERMISSION_DENIED = "Sorry, you don't have enough permissions";
|
||||
|
@ -18,13 +18,6 @@
|
||||
*/
|
||||
package ru.tehkode.modifyworld.bukkit;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
@ -32,8 +25,18 @@ import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import ru.tehkode.modifyworld.ModifyworldListener;
|
||||
import ru.tehkode.modifyworld.PlayerInformer;
|
||||
import ru.tehkode.modifyworld.handlers.*;
|
||||
import ru.tehkode.permissions.bukkit.PermissionsEx;
|
||||
import ru.tehkode.modifyworld.handlers.BlockListener;
|
||||
import ru.tehkode.modifyworld.handlers.EntityListener;
|
||||
import ru.tehkode.modifyworld.handlers.PlayerListener;
|
||||
import ru.tehkode.modifyworld.handlers.VehicleListener;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -59,13 +62,6 @@ public class Modifyworld extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// At first check PEX existance
|
||||
if (!PermissionsEx.isAvailable()) {
|
||||
this.getLogger().severe("PermissionsEx not found, disabling");
|
||||
this.getPluginLoader().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
|
||||
this.config = this.getConfig();
|
||||
|
||||
if (!config.isConfigurationSection("messages")) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: Modifyworld
|
||||
main: ru.tehkode.modifyworld.bukkit.Modifyworld
|
||||
depend: [ PermissionsEx ]
|
||||
soft-depend: [ PermissionsEx ]
|
||||
version: 1.19.3
|
||||
author: t3hk0d3
|
||||
website: www.bukkit.org
|
||||
|
Loading…
Reference in New Issue
Block a user