forked from Upstream/CommandPanels
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
67019348bb
@ -17,6 +17,7 @@ config:
|
|||||||
disabled-world-message: true
|
disabled-world-message: true
|
||||||
panel-snooper: false
|
panel-snooper: false
|
||||||
allow-unsafe-mini-message: false
|
allow-unsafe-mini-message: false
|
||||||
|
enable-import-command: false
|
||||||
format:
|
format:
|
||||||
tag: '&6[&bCommandPanels&6] '
|
tag: '&6[&bCommandPanels&6] '
|
||||||
perms: '&cNo permission.'
|
perms: '&cNo permission.'
|
||||||
@ -28,6 +29,7 @@ config:
|
|||||||
offline: 'Offline'
|
offline: 'Offline'
|
||||||
offlineHeadValue: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmU1Mjg2YzQ3MGY2NmZmYTFhMTgzMzFjYmZmYjlhM2MyYTQ0MjRhOGM3MjU5YzQ0MzZmZDJlMzU1ODJhNTIyIn19fQ=='
|
offlineHeadValue: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmU1Mjg2YzQ3MGY2NmZmYTFhMTgzMzFjYmZmYjlhM2MyYTQ0MjRhOGM3MjU5YzQ0MzZmZDJlMzU1ODJhNTIyIn19fQ=='
|
||||||
input: '&cYour Input is too long!'
|
input: '&cYour Input is too long!'
|
||||||
|
disabled: '&cThis feature is disabled in your plugin config.'
|
||||||
input:
|
input:
|
||||||
input-cancel: cancel
|
input-cancel: cancel
|
||||||
input-cancelled: '&cCancelled!'
|
input-cancelled: '&cCancelled!'
|
||||||
|
@ -18,6 +18,10 @@ public class CommandPanelImport implements CommandExecutor {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||||
if (sender.hasPermission("commandpanel.import")) {
|
if (sender.hasPermission("commandpanel.import")) {
|
||||||
|
if(!plugin.config.getString("config.enable-import-command").equalsIgnoreCase("true")){
|
||||||
|
sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.disabled")));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (args.length == 2) {
|
if (args.length == 2) {
|
||||||
//import command
|
//import command
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
|
Loading…
Reference in New Issue
Block a user