1.2.0
This commit is contained in:
74
CommandGUI V1/pom.xml
Normal file
74
CommandGUI V1/pom.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>de.jatitv</groupId>
|
||||
<artifactId>commandgui</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>CommandGUI</name>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<configuration>
|
||||
<source>${java.version}</source>
|
||||
<target>${java.version}</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.2.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spigotmc-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>sonatype</id>
|
||||
<url>https://oss.sonatype.org/content/groups/public/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
18
CommandGUI V1/src/main/java/de/jatitv/commandgui/TODO.java
Normal file
18
CommandGUI V1/src/main/java/de/jatitv/commandgui/TODO.java
Normal file
@@ -0,0 +1,18 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
package de.jatitv.commandgui;
|
||||
|
||||
public class TODO {
|
||||
|
||||
// If you have ideas or wishes, please send them to me via Discord: https://discord.gg/vRyXFFterJ
|
||||
|
||||
// Wenn ihr ideen habt oder Wünsche denn meldet sie mir via Discord: https://discord.gg/vRyXFFterJ
|
||||
|
||||
|
||||
// ToDo for next Updates
|
||||
// ToDo e.setCancelled(true); für jeden slot in config
|
||||
// ToDo Title
|
||||
|
||||
// ToDo NO_Messages -> no_NO_Messages alle Sprachen
|
||||
|
||||
}
|
1140
CommandGUI V1/src/main/java/de/jatitv/commandgui/commands/GUI_1.java
Normal file
1140
CommandGUI V1/src/main/java/de/jatitv/commandgui/commands/GUI_1.java
Normal file
File diff suppressed because it is too large
Load Diff
1139
CommandGUI V1/src/main/java/de/jatitv/commandgui/commands/GUI_2.java
Normal file
1139
CommandGUI V1/src/main/java/de/jatitv/commandgui/commands/GUI_2.java
Normal file
File diff suppressed because it is too large
Load Diff
1140
CommandGUI V1/src/main/java/de/jatitv/commandgui/commands/GUI_3.java
Normal file
1140
CommandGUI V1/src/main/java/de/jatitv/commandgui/commands/GUI_3.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,122 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.commands;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
|
||||
public class Give {
|
||||
|
||||
public static void giveCommand(CommandSender sender, String reciver, String wb) {
|
||||
Player target = Bukkit.getPlayer(reciver);
|
||||
boolean empty = false;
|
||||
for (int i = 0; i < target.getInventory().getSize() - 5; i++) {
|
||||
if (target.getInventory().getItem(i) == null) {
|
||||
empty = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (empty) {
|
||||
|
||||
if (wb.equals(DefaultValue_GUI_1.Command)) {
|
||||
ItemStack item = new ItemStack(Material.valueOf(DefaultValue_GUI_1.UseItem_Item));
|
||||
ItemMeta itemMeta = item.getItemMeta();
|
||||
itemMeta.setDisplayName(DefaultValue_GUI_1.UseItem_Name.replace("[guiname]", DefaultValue_GUI_1.GUIName));
|
||||
itemMeta.setLore(DefaultValue_GUI_1.UseItem_Lore);
|
||||
item.setItemMeta(itemMeta);
|
||||
item.setAmount(1);
|
||||
target.getInventory().addItem(item);
|
||||
|
||||
if (sender != target){
|
||||
sender.sendMessage(DefaultValue.give.replace("[sender]", sender.getName()).replace("[player]", target.getName())
|
||||
.replace("[item]", DefaultValue_GUI_1.UseItem_Name).replace("[guiname]", DefaultValue_GUI_1.GUIName));
|
||||
target.sendMessage(DefaultValue.giveReceived.replace("[sender]", sender.getName()).replace("[player]", target.getName())
|
||||
.replace("[item]", DefaultValue_GUI_1.UseItem_Name).replace("[guiname]", DefaultValue_GUI_1.GUIName));
|
||||
|
||||
} else {
|
||||
if (DefaultValue.Sound_Give_Enable && DefaultValue.Sound_Enable){
|
||||
target.playSound(target.getLocation(), DefaultValue.Sound_Give, 3, 1);
|
||||
}
|
||||
}
|
||||
|
||||
} else if (wb.equals(DefaultValue_GUI_2.Command)) {
|
||||
ItemStack item = new ItemStack(Material.valueOf(DefaultValue_GUI_2.UseItem_Item));
|
||||
ItemMeta itemMeta = item.getItemMeta();
|
||||
itemMeta.setDisplayName(DefaultValue_GUI_2.UseItem_Name.replace("[guiname]", DefaultValue_GUI_2.GUIName));
|
||||
itemMeta.setLore(DefaultValue_GUI_2.UseItem_Lore);
|
||||
item.setItemMeta(itemMeta);
|
||||
item.setAmount(1);
|
||||
target.getInventory().addItem(item);
|
||||
|
||||
if (sender != target) {
|
||||
sender.sendMessage(DefaultValue.give.replace("[sender]", sender.getName()).replace("[player]", target.getName())
|
||||
.replace("[item]", DefaultValue_GUI_2.UseItem_Name).replace("[guiname]", DefaultValue_GUI_2.GUIName));
|
||||
target.sendMessage(DefaultValue.giveReceived.replace("[sender]", sender.getName()).replace("[player]", target.getName())
|
||||
.replace("[item]", DefaultValue_GUI_2.UseItem_Name).replace("[guiname]", DefaultValue_GUI_2.GUIName));
|
||||
if (DefaultValue.Sound_Give_Enable && DefaultValue.Sound_Enable) {
|
||||
((Player) sender).playSound(((Player) sender).getLocation(), DefaultValue.Sound_Give, 3, 1);
|
||||
target.playSound(target.getLocation(), DefaultValue.Sound_Give, 3, 1);
|
||||
}
|
||||
} else{
|
||||
if (DefaultValue.Sound_Give_Enable && DefaultValue.Sound_Enable) {
|
||||
target.playSound(target.getLocation(), DefaultValue.Sound_Give, 3, 1);
|
||||
}
|
||||
}
|
||||
|
||||
} else if (wb.equals(DefaultValue_GUI_3.Command)) {
|
||||
ItemStack item = new ItemStack(Material.valueOf(DefaultValue_GUI_3.UseItem_Item));
|
||||
ItemMeta itemMeta = item.getItemMeta();
|
||||
itemMeta.setDisplayName(DefaultValue_GUI_3.UseItem_Name.replace("[guiname]", DefaultValue_GUI_3.GUIName));
|
||||
itemMeta.setLore(DefaultValue_GUI_3.UseItem_Lore);
|
||||
item.setItemMeta(itemMeta);
|
||||
item.setAmount(1);
|
||||
target.getInventory().addItem(item);
|
||||
|
||||
if (sender != target) {
|
||||
sender.sendMessage(DefaultValue.give.replace("[sender]", sender.getName()).replace("[player]", target.getName())
|
||||
.replace("[item]", DefaultValue_GUI_3.UseItem_Name).replace("[guiname]", DefaultValue_GUI_3.GUIName));
|
||||
target.sendMessage(DefaultValue.giveReceived.replace("[sender]", sender.getName()).replace("[player]", target.getName())
|
||||
.replace("[item]", DefaultValue_GUI_3.UseItem_Name).replace("[guiname]", DefaultValue_GUI_3.GUIName));
|
||||
if (DefaultValue.Sound_Give_Enable && DefaultValue.Sound_Enable) {
|
||||
((Player) sender).playSound(((Player) sender).getLocation(), DefaultValue.Sound_Give, 3, 1);
|
||||
target.playSound(target.getLocation(), DefaultValue.Sound_Give, 3, 1);
|
||||
}
|
||||
} else {
|
||||
if (DefaultValue.Sound_Give_Enable && DefaultValue.Sound_Enable) {
|
||||
target.playSound(target.getLocation(), DefaultValue.Sound_Give, 3, 1);
|
||||
}
|
||||
}
|
||||
|
||||
} else Help.Help(sender);
|
||||
} else {
|
||||
if (target == sender) {
|
||||
sender.sendMessage(DefaultValue.NoInventorySpace);
|
||||
} else {
|
||||
sender.sendMessage(DefaultValue.PlayerNoInventorySpace.replace("[player]", target.getName()));
|
||||
}
|
||||
if (sender instanceof Player) {
|
||||
if (DefaultValue.Sound_NoInventorySpace_Enable && DefaultValue.Sound_Enable) {
|
||||
((Player) sender).playSound(((Player) sender).getLocation(), DefaultValue.Sound_NoInventorySpace, 3, 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -0,0 +1,64 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.commands;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public class Help {
|
||||
|
||||
public static void Help(CommandSender sender) {
|
||||
if (sender.hasPermission("commandgui.command")
|
||||
|| sender.hasPermission("commandgui.command.info")
|
||||
|| sender.hasPermission("commandgui.admin")
|
||||
|| sender.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " §8----- §4Command§9GUI §chelp §8-----");
|
||||
sender.sendMessage(DefaultValue.PrefixHC);
|
||||
if (sender.hasPermission("commandgui.command") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue.DefaultGUI == 1) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpCgui.replace("[gui]", DefaultValue_GUI_1.GUIName));
|
||||
} else if (DefaultValue.DefaultGUI == 2) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpCgui.replace("[gui]", DefaultValue_GUI_2.GUIName));
|
||||
} else if (DefaultValue.DefaultGUI == 3) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpCgui.replace("[gui]", DefaultValue_GUI_3.GUIName));
|
||||
}
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpHelp);
|
||||
}
|
||||
if (sender.hasPermission("commandgui.command.info") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpInfo);
|
||||
}
|
||||
|
||||
if (sender.hasPermission("commandgui.command.give") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpGive);
|
||||
|
||||
}
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui1") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpOpen.replace("[gui]", DefaultValue_GUI_1.Command).replace("[guiname]", DefaultValue_GUI_1.GUIName));
|
||||
}
|
||||
}
|
||||
if (!DefaultValue_GUI_2.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui2") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_2.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpOpen.replace("[gui]", DefaultValue_GUI_2.Command).replace("[guiname]", DefaultValue_GUI_2.GUIName));
|
||||
}
|
||||
}
|
||||
if (!DefaultValue_GUI_3.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui3") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_3.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpOpen.replace("[gui]", DefaultValue_GUI_3.Command).replace("[guiname]", DefaultValue_GUI_3.GUIName));
|
||||
}
|
||||
}
|
||||
|
||||
if (sender.hasPermission("wonderbagshop.admin") || sender.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " " + DefaultValue.HelpReload);
|
||||
}
|
||||
sender.sendMessage(DefaultValue.PrefixHC);
|
||||
sender.sendMessage(DefaultValue.PrefixHC + " §8----------------------------");
|
||||
} else {
|
||||
sender.sendMessage(DefaultValue.NoPermission);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,232 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.commands.cmdManagement;
|
||||
|
||||
import de.jatitv.commandgui.commands.*;
|
||||
import de.jatitv.commandgui.config.Messages_Select;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import de.jatitv.commandgui.system.Load;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
|
||||
public class CmdExecuter implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (sender instanceof Player) {
|
||||
Player player = (Player) sender;
|
||||
if (args.length == 0) {
|
||||
|
||||
|
||||
if (DefaultValue.DefaultGUI == 1) {
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || player.hasPermission("commandgui.command") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_1.openCGUI(player);
|
||||
} else player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_1.GUIName));
|
||||
} else player.sendMessage(DefaultValue.NoPermission.replace("[cmd]", "/commandgui").replace("[perm]", "commandgui.command"));
|
||||
} else if (DefaultValue.DefaultGUI == 2) {
|
||||
if (!DefaultValue_GUI_2.Command_Permission_Enable || player.hasPermission("commandgui.command") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (DefaultValue_GUI_2.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_2.openCGUI(player);
|
||||
} else player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_2.GUIName));
|
||||
} else player.sendMessage(DefaultValue.NoPermission.replace("[cmd]", "/commandgui").replace("[perm]", "commandgui.command"));
|
||||
} else if (DefaultValue.DefaultGUI == 3) {
|
||||
if (!DefaultValue_GUI_3.Command_Permission_Enable || player.hasPermission("commandgui.command") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (DefaultValue_GUI_3.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_3.openCGUI(player);
|
||||
} else player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_3.GUIName));
|
||||
} else player.sendMessage(DefaultValue.NoPermission.replace("[cmd]", "/commandgui").replace("[perm]", "commandgui.command"));
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
switch (args[0].toLowerCase()) {
|
||||
case "info":
|
||||
case "plugin":
|
||||
case "pl":
|
||||
case "version":
|
||||
case "ver":
|
||||
if (player.hasPermission("commandgui.command.info") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§8-------- §4Plugin-Info §8--------");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2This plugin was developed by §9JaTiTV");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Twitch: §ehttps://www.twitch.tv/jatitv");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Support-Discord: §e" + Main.DiscordLink);
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Spigot: §e" + Main.Spigot);
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Version: §6" + Main.getPlugin().getDescription().getVersion());
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§8-----------------------------");
|
||||
|
||||
if (Bukkit.getPluginManager().getPlugin("Vault") == null) {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4\n" + DefaultValue.PrefixHC + "§4Vault could not be connected / found! " +
|
||||
"§9Please download it here: §6https://www.spigotmc.org/resources/vault.34315/§4\n" + DefaultValue.PrefixHC);
|
||||
player.sendMessage(DefaultValue.PrefixHC + "§4\n" + DefaultValue.PrefixHC + "§4Vault could not be connected / found! " +
|
||||
"§9Please download it here: §6https://www.spigotmc.org/resources/vault.34315/§4\n" + DefaultValue.PrefixHC);
|
||||
}
|
||||
|
||||
} else {
|
||||
player.sendMessage(DefaultValue.NoPermissionForCommand.replace("[cmd]", "/commandgui info")
|
||||
.replace("[perm]", "commandgui.command.info"));
|
||||
}
|
||||
break;
|
||||
|
||||
case "open":
|
||||
if (args.length == 2) {
|
||||
if (args[1].equals(DefaultValue_GUI_1.Command)) {
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || player.hasPermission("commandgui.command.gui1") || player.hasPermission("commandgui.admin")
|
||||
|| player.isOp()) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_1.openCGUI(player);
|
||||
} else {
|
||||
player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_1.GUIName));
|
||||
}
|
||||
} else player.sendMessage(DefaultValue.NoPermissionForCommand.replace("[cmd]", "/commandgui " + DefaultValue_GUI_1.Command)
|
||||
.replace("[perm]", "commandgui.command.gui1"));
|
||||
|
||||
|
||||
} else if (args[1].equals(DefaultValue_GUI_2.Command)) {
|
||||
if (!DefaultValue_GUI_2.Command_Permission_Enable || player.hasPermission("commandgui.command.gui2") || player.hasPermission("commandgui.admin")
|
||||
|| player.isOp()) {
|
||||
if (DefaultValue_GUI_2.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_2.openCGUI(player);
|
||||
} else {
|
||||
player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_2.GUIName));
|
||||
}
|
||||
} else player.sendMessage(DefaultValue.NoPermissionForCommand.replace("[cmd]", "/commandgui " + DefaultValue_GUI_2.Command)
|
||||
.replace("[perm]", "commandgui.command.gui2"));
|
||||
|
||||
|
||||
} else if (args[1].equals(DefaultValue_GUI_3.Command)) {
|
||||
if (!DefaultValue_GUI_3.Command_Permission_Enable || player.hasPermission("commandgui.command.gui3") || player.hasPermission("commandgui.admin")
|
||||
|| player.isOp()) {
|
||||
if (DefaultValue_GUI_3.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_3.openCGUI(player);
|
||||
} else {
|
||||
player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_3.GUIName));
|
||||
}
|
||||
} else player.sendMessage(DefaultValue.NoPermissionForCommand.replace("[cmd]", "/commandgui " + DefaultValue_GUI_3.Command)
|
||||
.replace("[perm]", "commandgui.command.gui3"));
|
||||
} else Help.Help(sender);
|
||||
} else Help.Help(sender);
|
||||
break;
|
||||
|
||||
case "give":
|
||||
if (args.length == 3) {
|
||||
if (player.hasPermission("commandgui.command.give") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (Bukkit.getPlayer(args[1]) != null) {
|
||||
Give.giveCommand(sender, args[1], args[2]);
|
||||
} else {
|
||||
sender.sendMessage(DefaultValue.PlayerNotFound.replace("[player]", args[1]));
|
||||
if (DefaultValue.Sound_PlayerNotFound_Enable && DefaultValue.Sound_Enable) {
|
||||
((Player) sender).playSound(((Player) sender).getLocation(), DefaultValue.Sound_PlayerNotFound, 3, 1);
|
||||
}
|
||||
}
|
||||
} else player.sendMessage(DefaultValue.NoPermissionForCommand.replace("[cmd]", "/commandgui give")
|
||||
.replace("[perm]", "commandgui.command.give"));
|
||||
} else Help.Help(sender);
|
||||
break;
|
||||
|
||||
case "reload":
|
||||
case "rl":
|
||||
if (player.hasPermission("commandgui.command.reload") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (sender instanceof Player) sender.sendMessage(DefaultValue.PrefixHC + DefaultValue.ReloadStart);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§6Plugin reload...");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
|
||||
try {
|
||||
Load.LoadSend(Main.getPlugin().getDescription().getVersion());
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if (sender instanceof Player) sender.sendMessage(DefaultValue.PrefixHC + DefaultValue.ReloadEnd);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Plugin successfully reloaded.");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
} else {
|
||||
player.sendMessage(DefaultValue.NoPermissionForCommand.replace("[cmd]", "/commandgui reload")
|
||||
.replace("[perm]", "commandgui.command.reload"));
|
||||
}
|
||||
break;
|
||||
|
||||
case "help":
|
||||
default:
|
||||
Help.Help(sender);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if (args.length == 1 || args.length == 2 || args.length == 3) {
|
||||
switch (args[0].toLowerCase()) {
|
||||
case "info":
|
||||
case "plugin":
|
||||
case "pl":
|
||||
case "version":
|
||||
case "ver":
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§8-------- §4Plugin-Info §8--------");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2This plugin was developed by §9JaTiTV");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Twitch: §ehttps://www.twitch.tv/jatitv");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Support-Discord: §e" + Main.DiscordLink);
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Spigot: §e" + Main.Spigot);
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§2Version: §6" + Main.getPlugin().getDescription().getVersion());
|
||||
sender.sendMessage(DefaultValue.PrefixHC + "§8-----------------------------");
|
||||
|
||||
if (Bukkit.getPluginManager().getPlugin("Vault") == null) {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4\n" + DefaultValue.PrefixHC + "§4Vault could not be connected / found! " +
|
||||
"§9Please download it here: §6https://www.spigotmc.org/resources/vault.34315/§4\n" + DefaultValue.PrefixHC);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Help.Help(sender);
|
||||
break;
|
||||
case "rl":
|
||||
case "reload":
|
||||
if (sender instanceof Player) sender.sendMessage(DefaultValue.PrefixHC + DefaultValue.ReloadStart);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§6Plugin reload...");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
|
||||
Bukkit.getServer().getPluginManager().disablePlugin(Main.getPlugin());
|
||||
|
||||
Bukkit.getPluginManager().getPlugin(Main.plugin.getName()).getPluginLoader().enablePlugin(Main.getPlugin());
|
||||
if (sender instanceof Player) sender.sendMessage(DefaultValue.PrefixHC + DefaultValue.ReloadEnd);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Plugin successfully reloaded.");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
break;
|
||||
|
||||
case "give":
|
||||
if (args.length == 3) {
|
||||
if (Bukkit.getPlayer(args[1]) != null) {
|
||||
Give.giveCommand(sender, args[1], args[2]);
|
||||
} else {
|
||||
sender.sendMessage(DefaultValue.PlayerNotFound.replace("[player]", args[1]));
|
||||
if (sender instanceof Player) {
|
||||
if (DefaultValue.Sound_PlayerNotFound_Enable && DefaultValue.Sound_Enable) {
|
||||
((Player) sender).playSound(((Player) sender).getLocation(), DefaultValue.Sound_PlayerNotFound, 3, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else Help.Help(sender);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage("§8[§6Command§9GUI§8] §cThis command is only for players!");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
package de.jatitv.commandgui.commands.cmdManagement;
|
||||
|
||||
import de.jatitv.commandgui.commands.GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class RegisterCommands_GUI_1 extends Command {
|
||||
private String alias;
|
||||
|
||||
public RegisterCommands_GUI_1(String alias) {
|
||||
super(alias);
|
||||
this.alias = alias;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
|
||||
|
||||
if (sender instanceof Player) {
|
||||
Player player = (Player) sender;
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || player.hasPermission("commandgui.command") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_1.openCGUI(player);
|
||||
} else player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_1.GUIName));
|
||||
} else player.sendMessage(DefaultValue.NoPermission.replace("[cmd]", "/commandgui").replace("[perm]", "commandgui.command"));
|
||||
} else sender.sendMessage("§8[§6Command§9GUI§8] §cThis command is only for players!");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,32 @@
|
||||
package de.jatitv.commandgui.commands.cmdManagement;
|
||||
|
||||
import de.jatitv.commandgui.commands.GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class RegisterCommands_GUI_2 extends Command {
|
||||
private String alias;
|
||||
|
||||
public RegisterCommands_GUI_2(String alias) {
|
||||
super(alias);
|
||||
this.alias = alias;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
|
||||
|
||||
if (sender instanceof Player) {
|
||||
Player player = (Player) sender;
|
||||
if (!DefaultValue_GUI_2.Command_Permission_Enable || player.hasPermission("commandgui.command") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (DefaultValue_GUI_2.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_2.openCGUI(player);
|
||||
} else player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_2.GUIName));
|
||||
} else player.sendMessage(DefaultValue.NoPermission.replace("[cmd]", "/commandgui").replace("[perm]", "commandgui.command"));
|
||||
} else sender.sendMessage("§8[§6Command§9GUI§8] §cThis command is only for players!");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,32 @@
|
||||
package de.jatitv.commandgui.commands.cmdManagement;
|
||||
|
||||
import de.jatitv.commandgui.commands.GUI_3;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class RegisterCommands_GUI_3 extends Command {
|
||||
private String alias;
|
||||
|
||||
public RegisterCommands_GUI_3(String alias) {
|
||||
super(alias);
|
||||
this.alias = alias;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
|
||||
|
||||
if (sender instanceof Player) {
|
||||
Player player = (Player) sender;
|
||||
if (!DefaultValue_GUI_3.Command_Permission_Enable || player.hasPermission("commandgui.command") || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (DefaultValue_GUI_3.GUI_Enable || player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
GUI_3.openCGUI(player);
|
||||
} else player.sendMessage(DefaultValue.GUIisDisable.replace("[gui]", DefaultValue_GUI_3.GUIName));
|
||||
} else player.sendMessage(DefaultValue.NoPermission.replace("[cmd]", "/commandgui").replace("[perm]", "commandgui.command"));
|
||||
} else sender.sendMessage("§8[§6Command§9GUI§8] §cThis command is only for players!");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,131 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.commands.cmdManagement;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.TabCompleter;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
public class TabComplete implements TabCompleter {
|
||||
|
||||
@Override
|
||||
public List<String> onTabComplete(CommandSender sender, Command command, String lable, String[] args) {
|
||||
if (sender instanceof Player) {
|
||||
List<String> list = new ArrayList<>();
|
||||
if (args.length == 0 || args.length == 1) {
|
||||
if (args[0].isEmpty()) {
|
||||
|
||||
if (sender.hasPermission("commandgui.command")
|
||||
|| sender.hasPermission("commandgui.command.gui1") || sender.hasPermission("commandgui.command.gui2") || sender.hasPermission("commandgui.command.gui3")
|
||||
|| sender.hasPermission("commandgui.command.info") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("help");
|
||||
}
|
||||
if (sender.hasPermission("commandgui.command.info") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("info");
|
||||
}
|
||||
if (sender.hasPermission("commandgui.command.give") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("give");
|
||||
}
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || !DefaultValue_GUI_2.Command_Permission_Enable || !DefaultValue_GUI_2.Command_Permission_Enable
|
||||
|| sender.hasPermission("commandgui.command.gui1") || sender.hasPermission("commandgui.command.gui2") || sender.hasPermission("commandgui.command.gui3")
|
||||
|| sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("open");
|
||||
}
|
||||
if (sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("reload");
|
||||
}
|
||||
return list;
|
||||
}
|
||||
if (args[0].charAt(0) == 'h') {
|
||||
if (sender.hasPermission("commandgui.command")
|
||||
|| sender.hasPermission("commandgui.command.gui1") || sender.hasPermission("commandgui.command.gui2") || sender.hasPermission("commandgui.command.gui3")
|
||||
|| sender.hasPermission("commandgui.command.info") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("help");
|
||||
}
|
||||
|
||||
} else if (args[0].charAt(0) == 'i') {
|
||||
if (sender.hasPermission("commandgui.command.info") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("info");
|
||||
}
|
||||
|
||||
} else if (args[0].charAt(0) == 'o') {
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || !DefaultValue_GUI_2.Command_Permission_Enable || !DefaultValue_GUI_3.Command_Permission_Enable
|
||||
|| sender.hasPermission("commandgui.command.gui1") || sender.hasPermission("commandgui.command.gui2") || sender.hasPermission("commandgui.command.gui3")
|
||||
|| sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("open");
|
||||
}
|
||||
|
||||
} else if (args[0].charAt(0) == 'g') {
|
||||
if (sender.hasPermission("commandgui.command.give") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("give");
|
||||
}
|
||||
|
||||
} else if (args[0].charAt(0) == 'r') {
|
||||
if (sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add("reload");
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
if (args.length == 2 && args[0].equalsIgnoreCase("open")) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui1") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_1.Command);
|
||||
}
|
||||
}
|
||||
if (DefaultValue_GUI_2.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (!DefaultValue_GUI_2.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui2") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_2.Command);
|
||||
}
|
||||
}
|
||||
if (DefaultValue_GUI_3.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (!DefaultValue_GUI_3.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui3") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_3.Command);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
if (args.length == 2 && args[0].equalsIgnoreCase("give")) {
|
||||
if (sender.hasPermission("commandgui.command.give") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
Iterator var6 = Bukkit.getOnlinePlayers().iterator();
|
||||
|
||||
while (var6.hasNext()) {
|
||||
Player player1 = (Player) var6.next();
|
||||
list.add(player1.getName());
|
||||
}
|
||||
}
|
||||
return list;
|
||||
|
||||
} else {
|
||||
if (args.length == 3 && args[0].equalsIgnoreCase("give")) {
|
||||
if (args[2].isEmpty()) {
|
||||
if (sender.hasPermission("commandgui.command.give") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_1.Command);
|
||||
}
|
||||
if (DefaultValue_GUI_2.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_2.Command);
|
||||
}
|
||||
if (DefaultValue_GUI_3.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_3.Command);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
return new ArrayList();
|
||||
}
|
||||
}
|
@@ -0,0 +1,133 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.commands.cmdManagement;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.TabCompleter;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
public class TabCompleteNEW implements TabCompleter {
|
||||
|
||||
private static HashMap<String, String> arg1 = new HashMap<String, String>() {{
|
||||
put("help", "commandgui.admin;commandgui.command.info;commandgui.command.gui1;commandgui.command.gui2;commandgui.command.gui3;commandgui.command");
|
||||
put("info", "commandgui.admin;commandgui.command.info");
|
||||
put("give", "commandgui.admin;commandgui.command.give");
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || !DefaultValue_GUI_2.Command_Permission_Enable || !DefaultValue_GUI_3.Command_Permission_Enable){
|
||||
put("open", null);
|
||||
} else put("open", "commandgui.admin;commandgui.command.gui1;commandgui.command.gui2;commandgui.command.gui3");
|
||||
|
||||
put("reload", "commandgui.admin");
|
||||
}};
|
||||
|
||||
@Override
|
||||
public List<String> onTabComplete(CommandSender sender, Command cmd, String s, String[] args) {
|
||||
List<String> list = new ArrayList<>();
|
||||
if (sender instanceof Player) {
|
||||
Player p = (Player) sender;
|
||||
if (args.length == 1) {
|
||||
for (String command : arg1.keySet()) {
|
||||
Boolean passend = true;
|
||||
for (int i = 0; i < args[0].length(); i++) {
|
||||
if (args[0].length() >= command.length()) {
|
||||
passend = false;
|
||||
} else {
|
||||
if (args[0].charAt(i) != command.charAt(i)) {
|
||||
passend = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hasPermission(p, arg1.get(command)) && passend) {
|
||||
list.add(command);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (args.length == 2 && args[0].equalsIgnoreCase("open")) {
|
||||
if (!DefaultValue_GUI_1.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui1") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_1.Command);
|
||||
}
|
||||
}
|
||||
if (!DefaultValue_GUI_2.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui2") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_2.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_2.Command);
|
||||
}
|
||||
}
|
||||
|
||||
if (!DefaultValue_GUI_3.Command_Permission_Enable || sender.hasPermission("commandgui.command.gui3") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_3.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_3.Command);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (args.length == 2) {
|
||||
switch (args[0]) {
|
||||
case "give":
|
||||
if (hasPermission(p, arg1.get("give"))) {
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
Boolean passend = true;
|
||||
for (int i = 0; i < args[1].length(); i++) {
|
||||
if (args[1].length() >= player.getName().length()) {
|
||||
passend = false;
|
||||
} else {
|
||||
if (args[1].charAt(i) != player.getName().charAt(i)) {
|
||||
passend = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hasPermission(p, arg1.get(player)) && passend) {
|
||||
list.add(player.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (args.length == 3 && args[0].equalsIgnoreCase("give")) {
|
||||
if (args[2].isEmpty()) {
|
||||
if (sender.hasPermission("commandgui.command.give") || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
if (DefaultValue_GUI_1.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_1.Command);
|
||||
}
|
||||
if (DefaultValue_GUI_2.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_2.Command);
|
||||
}
|
||||
if (DefaultValue_GUI_3.GUI_Enable || sender.hasPermission("commandgui.admin") || sender.isOp()) {
|
||||
list.add(DefaultValue_GUI_3.Command);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public static boolean hasPermission(Player player, String permission) {
|
||||
if (player.isOp()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
String[] Permissions = permission.split(";");
|
||||
for (String perm : Permissions) {
|
||||
if (player.hasPermission(perm)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,249 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.config;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Config {
|
||||
|
||||
public static void configCreate(String version) {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Config.yml load...");
|
||||
|
||||
File configYML = new File(Main.thisp().getDataFolder().getPath(), "Config.yml");
|
||||
YamlConfiguration yamlConfiguration_config = YamlConfiguration.loadConfiguration(configYML);
|
||||
|
||||
if (!yamlConfiguration_config.contains("Do_not_remove_or_change.Created"))
|
||||
yamlConfiguration_config.set("Do_not_remove_or_change.Created", "This file was created with version " + version);
|
||||
yamlConfiguration_config.set("Do_not_remove_or_change.Version", version);
|
||||
yamlConfiguration_config.set("Do_not_remove_or_change.Autor", Main.Autor);
|
||||
yamlConfiguration_config.set("Do_not_remove_or_change.Spigot", Main.Spigot);
|
||||
yamlConfiguration_config.set("Do_not_remove_or_change.Discord", Main.DiscordMSG);
|
||||
|
||||
if (yamlConfiguration_config.contains("Plugin.UpdateCheckOnJoin")) {
|
||||
DefaultValue.UpdateCheckOnJoin = yamlConfiguration_config.getBoolean("Plugin.UpdateCheckOnJoin");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Plugin.UpdateCheckOnJoin", DefaultValue.UpdateCheckOnJoin);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6UpdateCheckOnJoin §4was added to §9Config.yml§4!");
|
||||
}
|
||||
if (yamlConfiguration_config.contains("Plugin.language")) {
|
||||
DefaultValue.language = yamlConfiguration_config.getString("Plugin.language");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Plugin.language", DefaultValue.language);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6language §4was added to §9Config.yml§4!");
|
||||
}
|
||||
/*
|
||||
if (yamlConfiguration_config.contains("Plugin.Debug.Enable")) {
|
||||
DefultValue.Debug = yamlConfiguration_config.getBoolean("Plugin.Debug.Enable");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Plugin.Debug.Enable", DefultValue.Debug);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefultValue.PrefixHC + "§4Setting §6Debug Enable §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
if (yamlConfiguration_config.contains("Cost.Currency")) {
|
||||
DefaultValue.Currency = yamlConfiguration_config.getString("Cost.Currency");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Cost.Currency", DefaultValue.Currency);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Cost Currency §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
if (yamlConfiguration_config.contains("GUI.DefaultGUI")) {
|
||||
DefaultValue.DefaultGUI = yamlConfiguration_config.getInt("GUI.DefaultGUI");
|
||||
} else {
|
||||
yamlConfiguration_config.set("GUI.DefaultGUI", DefaultValue.DefaultGUI);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6GUI DefaultGUI §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*Sound
|
||||
*/
|
||||
|
||||
String soundEPL;
|
||||
if (Main.minecraft1_8) {
|
||||
soundEPL = "LEVEL_UP";
|
||||
} else {
|
||||
soundEPL = "ENTITY_PLAYER_LEVELUP";
|
||||
}
|
||||
|
||||
String soundHAT;
|
||||
if (Main.minecraft1_8) {
|
||||
soundHAT = "NOTE_STICKS";
|
||||
} else if (Main.minecraft1_9 || Main.minecraft1_10 || Main.minecraft1_11 || Main.minecraft1_12) {
|
||||
soundHAT = "BLOCK_NOTE_HAT";
|
||||
} else {
|
||||
soundHAT = "BLOCK_NOTE_BLOCK_HAT";
|
||||
}
|
||||
|
||||
String soundBNBH;
|
||||
if (Main.minecraft1_8) {
|
||||
soundBNBH = "NOTE_PIANO";
|
||||
} else if (Main.minecraft1_9 || Main.minecraft1_10 || Main.minecraft1_11 || Main.minecraft1_12) {
|
||||
soundBNBH = "BLOCK_NOTE_HARP";
|
||||
} else {
|
||||
soundBNBH = "BLOCK_NOTE_BLOCK_HARP";
|
||||
}
|
||||
|
||||
String soundBNBG;
|
||||
if (Main.minecraft1_8) {
|
||||
soundBNBG = "NOTE_PIANO";
|
||||
} else if (Main.minecraft1_9 || Main.minecraft1_10 || Main.minecraft1_11 || Main.minecraft1_12) {
|
||||
soundBNBG = "BLOCK_NOTE_BASS";
|
||||
} else {
|
||||
soundBNBG = "BLOCK_NOTE_BLOCK_GUITAR";
|
||||
}
|
||||
|
||||
if (yamlConfiguration_config.contains("Sound.Enable")) {
|
||||
DefaultValue.Sound_Enable = yamlConfiguration_config.getBoolean("Sound.Enable");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.Enable", true);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound Enable §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
if (yamlConfiguration_config.contains("Sound.Click.Enable")) {
|
||||
DefaultValue.Sound_Click_Enable = yamlConfiguration_config.getBoolean("Sound.Click.Enable");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.Click.Enable", true);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound Click Enable §4was added to §9Config.yml§4!");
|
||||
}
|
||||
if (yamlConfiguration_config.contains("Sound.Click.Sound")) {
|
||||
DefaultValue.Sound_Click_input = (yamlConfiguration_config.getString("Sound.Click.Sound").toUpperCase().replace(".", "_"));
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.Click.Sound", soundHAT);
|
||||
DefaultValue.Sound_Click_input = soundHAT;
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound Click §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
|
||||
if (yamlConfiguration_config.contains("Sound.NoMoney.Enable")) {
|
||||
DefaultValue.Sound_NoMoney_Enable = yamlConfiguration_config.getBoolean("Sound.NoMoney.Enable");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.NoMoney.Enable", true);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound NoMoney Enable §4was added to §9Config.yml§4!");
|
||||
}
|
||||
if (yamlConfiguration_config.contains("Sound.NoMoney.Sound")) {
|
||||
DefaultValue.Sound_NoMoney_input = (yamlConfiguration_config.getString("Sound.NoMoney.Sound").toUpperCase().replace(".", "_"));
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.NoMoney.Sound", soundBNBH);
|
||||
DefaultValue.Sound_NoMoney_input = soundBNBH;
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound NoMoney §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
|
||||
if (yamlConfiguration_config.contains("Sound.NoInventorySpace.Enable")) {
|
||||
DefaultValue.Sound_NoInventorySpace_Enable = yamlConfiguration_config.getBoolean("Sound.NoInventorySpace.Enable");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.NoInventorySpace.Enable", true);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound NoInventorySpace Enable §4was added to §9Config.yml§4!");
|
||||
}
|
||||
if (yamlConfiguration_config.contains("Sound.NoInventorySpace.Sound")) {
|
||||
DefaultValue.Sound_NoInventorySpace_input = (yamlConfiguration_config.getString("Sound.NoInventorySpace.Sound").toUpperCase().replace(".", "_"));
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.NoInventorySpace.Sound", soundBNBG);
|
||||
DefaultValue.Sound_NoInventorySpace_input = soundBNBG;
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound NoInventorySpace §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
|
||||
if (yamlConfiguration_config.contains("Sound.Give.Enable")) {
|
||||
DefaultValue.Sound_Give_Enable = yamlConfiguration_config.getBoolean("Sound.Give.Enable");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.Give.Enable", true);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound Give Enable §4was added to §9Config.yml§4!");
|
||||
}
|
||||
if (yamlConfiguration_config.contains("Sound.Give.Sound")) {
|
||||
DefaultValue.Sound_Give_input = (yamlConfiguration_config.getString("Sound.Give.Sound").toUpperCase().replace(".", "_"));
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.Give.Sound", soundEPL);
|
||||
DefaultValue.Sound_Give_input = soundEPL;
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound Give §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
|
||||
if (yamlConfiguration_config.contains("Sound.PlayerNotFound.Enable")) {
|
||||
DefaultValue.Sound_PlayerNotFound_Enable = yamlConfiguration_config.getBoolean("Sound.PlayerNotFound.Enable");
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.PlayerNotFound.Enable", true);
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound PlayerNotFound Enable §4was added to §9Config.yml§4!");
|
||||
}
|
||||
if (yamlConfiguration_config.contains("Sound.PlayerNotFound.Sound")) {
|
||||
DefaultValue.Sound_PlayerNotFound_input = (yamlConfiguration_config.getString("Sound.PlayerNotFound.Sound").toUpperCase().replace(".", "_"));
|
||||
} else {
|
||||
yamlConfiguration_config.set("Sound.PlayerNotFound.Sound", soundBNBH);
|
||||
DefaultValue.Sound_PlayerNotFound_input = soundBNBH;
|
||||
if (configYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Setting §6Sound Send §4was added to §9Config.yml§4!");
|
||||
}
|
||||
|
||||
try {
|
||||
yamlConfiguration_config.save(configYML);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
Sound sound_Click = Sound.valueOf(DefaultValue.Sound_Click_input);
|
||||
if (sound_Click != null) {
|
||||
DefaultValue.Sound_Click = sound_Click;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Bukkit.getConsoleSender().sendMessage("§4\n§4\n§4\n" + DefaultValue.SoundNotFound.replace("[prefix]", DefaultValue.Prefix)
|
||||
.replace("[sound]", "§8Click: §6" + DefaultValue.Sound_Click_input) + "§4\n§4\n§4\n");
|
||||
DefaultValue.Sound_Click = Sound.valueOf(soundHAT);
|
||||
}
|
||||
|
||||
try {
|
||||
Sound sound_NoMoney = Sound.valueOf(DefaultValue.Sound_NoMoney_input);
|
||||
if (sound_NoMoney != null) {
|
||||
DefaultValue.Sound_NoMoney = sound_NoMoney;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Bukkit.getConsoleSender().sendMessage("§4\n§4\n§4\n" + DefaultValue.SoundNotFound.replace("[prefix]", DefaultValue.Prefix)
|
||||
.replace("[sound]", "§8NoMoney: §6" + DefaultValue.Sound_NoMoney_input) + "§4\n§4\n§4\n");
|
||||
DefaultValue.Sound_NoMoney = Sound.valueOf(soundBNBH);
|
||||
}
|
||||
|
||||
try {
|
||||
Sound sound_Give = Sound.valueOf(DefaultValue.Sound_Give_input);
|
||||
if (sound_Give != null) {
|
||||
DefaultValue.Sound_Give = sound_Give;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Bukkit.getConsoleSender().sendMessage("§4\n§4\n§4\n" + DefaultValue.SoundNotFound.replace("[prefix]", DefaultValue.Prefix)
|
||||
.replace("[sound]", "§8Give: §6" + DefaultValue.Sound_Give_input) + "§4\n§4\n§4\n");
|
||||
DefaultValue.Sound_Give = Sound.valueOf(soundEPL);
|
||||
}
|
||||
|
||||
try {
|
||||
Sound sound_NoInventorySpace = Sound.valueOf(DefaultValue.Sound_NoInventorySpace_input);
|
||||
if (sound_NoInventorySpace != null) {
|
||||
DefaultValue.Sound_NoInventorySpace = sound_NoInventorySpace;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Bukkit.getConsoleSender().sendMessage("§4\n§4\n§4\n" + DefaultValue.SoundNotFound.replace("[prefix]", DefaultValue.Prefix)
|
||||
.replace("[sound]", "§8sound_NoInventorySpace: §6" + DefaultValue.Sound_NoInventorySpace_input) + "§4\n§4\n§4\n");
|
||||
DefaultValue.Sound_NoInventorySpace = Sound.valueOf(soundBNBG);
|
||||
}
|
||||
|
||||
try {
|
||||
Sound sound_PlayerNotFound = Sound.valueOf(DefaultValue.Sound_PlayerNotFound_input);
|
||||
if (sound_PlayerNotFound != null) {
|
||||
DefaultValue.Sound_PlayerNotFound = sound_PlayerNotFound;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Bukkit.getConsoleSender().sendMessage("§4\n§4\n§4\n" + DefaultValue.SoundNotFound.replace("[prefix]", DefaultValue.Prefix)
|
||||
.replace("[sound]", "§8PlayerNotFound: §6" + DefaultValue.Sound_PlayerNotFound_input) + "§4\n§4\n§4\n");
|
||||
DefaultValue.Sound_PlayerNotFound = Sound.valueOf(soundBNBH);
|
||||
}
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Config.yml loaded successfully.");
|
||||
}
|
||||
}
|
4439
CommandGUI V1/src/main/java/de/jatitv/commandgui/config/GUI_1.java
Normal file
4439
CommandGUI V1/src/main/java/de/jatitv/commandgui/config/GUI_1.java
Normal file
File diff suppressed because it is too large
Load Diff
4403
CommandGUI V1/src/main/java/de/jatitv/commandgui/config/GUI_2.java
Normal file
4403
CommandGUI V1/src/main/java/de/jatitv/commandgui/config/GUI_2.java
Normal file
File diff suppressed because it is too large
Load Diff
4403
CommandGUI V1/src/main/java/de/jatitv/commandgui/config/GUI_3.java
Normal file
4403
CommandGUI V1/src/main/java/de/jatitv/commandgui/config/GUI_3.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,123 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.config;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Messages_DE {
|
||||
|
||||
public static void messagesCreate(String version) {
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4DE_Messages.yml load...");
|
||||
|
||||
File messagesDEYML = new File(Main.thisp().getDataFolder().getPath(), "languages/de_DE_Messages.yml");
|
||||
YamlConfiguration yamlConfiguration_DEmsg = YamlConfiguration.loadConfiguration(messagesDEYML);
|
||||
|
||||
if (!yamlConfiguration_DEmsg.contains("Do_not_remove_or_change.Created"))
|
||||
yamlConfiguration_DEmsg.set("Do_not_remove_or_change.Created", "This file was created with version " + version);
|
||||
yamlConfiguration_DEmsg.set("Do_not_remove_or_change.Version", version);
|
||||
yamlConfiguration_DEmsg.set("Do_not_remove_or_change.Autor", Main.Autor);
|
||||
yamlConfiguration_DEmsg.set("Do_not_remove_or_change.Spigot", Main.Spigot);
|
||||
yamlConfiguration_DEmsg.set("Do_not_remove_or_change.Discord", Main.DiscordMSG);
|
||||
|
||||
if (!yamlConfiguration_DEmsg.contains("Plugin.NoPermission")) {
|
||||
yamlConfiguration_DEmsg.set("Plugin.NoPermission", DefaultValue.DE_NoPermission.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermission §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Plugin.NoPermissionForCommand")) {
|
||||
yamlConfiguration_DEmsg.set("Plugin.NoPermissionForCommand", DefaultValue.DE_NoPermissionForCommand.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForCommand §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Plugin.NoPermissionForItem")) {
|
||||
yamlConfiguration_DEmsg.set("Plugin.NoPermissionForItem", DefaultValue.DE_NoPermissionForItem.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForItem §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Plugin.VaultNotSetUp")) {
|
||||
yamlConfiguration_DEmsg.set("Plugin.VaultNotSetUp", DefaultValue.DE_VaultNotSetUp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6VaultNotSetUp §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Plugin.SoundNotFound")) {
|
||||
yamlConfiguration_DEmsg.set("Plugin.SoundNotFound", DefaultValue.DE_SoundNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6SoundNotFound §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Plugin.Reload.Start")) {
|
||||
yamlConfiguration_DEmsg.set("Plugin.Reload.Start", DefaultValue.DE_ReloadStart.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload Start §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Plugin.Reload.End")) {
|
||||
yamlConfiguration_DEmsg.set("Plugin.Reload.End", DefaultValue.DE_ReloadEnd.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload End §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Help.CGUI")) {
|
||||
yamlConfiguration_DEmsg.set("Help.CGUI", DefaultValue.DE_HelpCgui.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + DefaultValue.HelpCgui.replace("§8[§6C§9GUI§8]", "[prefix]").replace("§", "&"));
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Help.Help")) {
|
||||
yamlConfiguration_DEmsg.set("Help.Help", DefaultValue.DE_HelpHelp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Help §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Help.Info")) {
|
||||
yamlConfiguration_DEmsg.set("Help.Info", DefaultValue.DE_HelpInfo.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Info §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Help.Open")) {
|
||||
yamlConfiguration_DEmsg.set("Help.Open", DefaultValue.DE_HelpOpen.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Open §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Help.Give")) {
|
||||
yamlConfiguration_DEmsg.set("Help.Give", DefaultValue.DE_HelpGive.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Give §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Help.Reload")) {
|
||||
yamlConfiguration_DEmsg.set("Help.Reload", DefaultValue.DE_HelpReload.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Reload §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Cost.Buy_msg")) {
|
||||
yamlConfiguration_DEmsg.set("Cost.Buy_msg", DefaultValue.DE_Buy_msg.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Buy_msg §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Cost.No_money")) {
|
||||
yamlConfiguration_DEmsg.set("Cost.No_money", DefaultValue.DE_No_money.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6No_money §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Cost.NoInventorySpace")) {
|
||||
yamlConfiguration_DEmsg.set("Cost.NoInventorySpace", DefaultValue.DE_NoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoInventorySpace §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("GUI.IsDisabled")) {
|
||||
yamlConfiguration_DEmsg.set("GUI.IsDisabled", DefaultValue.DE_GUIisDisable.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6GUI IsDisabled §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Give.Sender")) {
|
||||
yamlConfiguration_DEmsg.set("Give.Sender", DefaultValue.DE_give.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Sender §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Give.Receiver")) {
|
||||
yamlConfiguration_DEmsg.set("Give.Receiver", DefaultValue.DE_giveReceived.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Receiver §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Give.PlayerNotFond")) {
|
||||
yamlConfiguration_DEmsg.set("Give.PlayerNotFond", DefaultValue.DE_PlayerNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNotFond §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_DEmsg.contains("Give.PlayerNoInventorySpace")) {
|
||||
yamlConfiguration_DEmsg.set("Give.PlayerNoInventorySpace", DefaultValue.DE_PlayerNoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesDEYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNoInventorySpace §4was added to §9DE_Messages.yml§4!");
|
||||
}
|
||||
try {
|
||||
yamlConfiguration_DEmsg.save(messagesDEYML);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2DE_Messages.yml loaded successfully.");
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,124 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.config;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Messages_EN {
|
||||
|
||||
public static void messagesCreate(String version) {
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4EN_Messages.yml load...");
|
||||
|
||||
File messagesENYML = new File(Main.thisp().getDataFolder().getPath(), "languages/en_EN_Messages.yml");
|
||||
YamlConfiguration yamlConfiguration_ENmsg = YamlConfiguration.loadConfiguration(messagesENYML);
|
||||
|
||||
if (!yamlConfiguration_ENmsg.contains("Do_not_remove_or_change.Created"))
|
||||
yamlConfiguration_ENmsg.set("Do_not_remove_or_change.Created", "This file was created with version " + version);
|
||||
yamlConfiguration_ENmsg.set("Do_not_remove_or_change.Version", version);
|
||||
yamlConfiguration_ENmsg.set("Do_not_remove_or_change.Autor", Main.Autor);
|
||||
yamlConfiguration_ENmsg.set("Do_not_remove_or_change.Spigot", Main.Spigot);
|
||||
yamlConfiguration_ENmsg.set("Do_not_remove_or_change.Discord", Main.DiscordMSG);
|
||||
|
||||
if (!yamlConfiguration_ENmsg.contains("Plugin.NoPermission")) {
|
||||
yamlConfiguration_ENmsg.set("Plugin.NoPermission", DefaultValue.NoPermission.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermission §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Plugin.NoPermissionForCommand")) {
|
||||
yamlConfiguration_ENmsg.set("Plugin.NoPermissionForCommand", DefaultValue.NoPermissionForCommand.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForCommand §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Plugin.NoPermissionForItem")) {
|
||||
yamlConfiguration_ENmsg.set("Plugin.NoPermissionForItem", DefaultValue.NoPermissionForItem.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForItem §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Plugin.VaultNotSetUp")) {
|
||||
yamlConfiguration_ENmsg.set("Plugin.VaultNotSetUp", DefaultValue.VaultNotSetUp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6VaultNotSetUp §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Plugin.SoundNotFound")) {
|
||||
yamlConfiguration_ENmsg.set("Plugin.SoundNotFound", DefaultValue.SoundNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6SoundNotFound §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Plugin.Reload.Start")) {
|
||||
yamlConfiguration_ENmsg.set("Plugin.Reload.Start", DefaultValue.ReloadStart.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload Start §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Plugin.Reload.End")) {
|
||||
yamlConfiguration_ENmsg.set("Plugin.Reload.End", DefaultValue.ReloadEnd.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload End §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Help.CGUI")) {
|
||||
yamlConfiguration_ENmsg.set("Help.CGUI", DefaultValue.HelpCgui.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + DefaultValue.HelpCgui.replace("§8[§6C§9GUI§8]", "[prefix]").replace("§", "&"));
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Help.Help")) {
|
||||
yamlConfiguration_ENmsg.set("Help.Help", DefaultValue.HelpHelp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Help §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Help.Info")) {
|
||||
yamlConfiguration_ENmsg.set("Help.Info", DefaultValue.HelpInfo.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Info §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Help.Open")) {
|
||||
yamlConfiguration_ENmsg.set("Help.Open", DefaultValue.HelpOpen.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Open §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Help.Give")) {
|
||||
yamlConfiguration_ENmsg.set("Help.Give", DefaultValue.HelpGive.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Give §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Help.Reload")) {
|
||||
yamlConfiguration_ENmsg.set("Help.Reload", DefaultValue.HelpReload.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Reload §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Cost.Buy_msg")) {
|
||||
yamlConfiguration_ENmsg.set("Cost.Buy_msg", DefaultValue.Buy_msg.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Buy_msg §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Cost.No_money")) {
|
||||
yamlConfiguration_ENmsg.set("Cost.No_money", DefaultValue.No_money.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6No_money §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Cost.NoInventorySpace")) {
|
||||
yamlConfiguration_ENmsg.set("Cost.NoInventorySpace", DefaultValue.NoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoInventorySpace §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("GUI.IsDisabled")) {
|
||||
yamlConfiguration_ENmsg.set("GUI.IsDisabled", DefaultValue.GUIisDisable.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6GUI IsDisabled §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Give.Sender")) {
|
||||
yamlConfiguration_ENmsg.set("Give.Sender", DefaultValue.give.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Sender §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Give.Receiver")) {
|
||||
yamlConfiguration_ENmsg.set("Give.Receiver", DefaultValue.giveReceived.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Receiver §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Give.PlayerNotFond")) {
|
||||
yamlConfiguration_ENmsg.set("Give.PlayerNotFond", DefaultValue.PlayerNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNotFond §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_ENmsg.contains("Give.PlayerNoInventorySpace")) {
|
||||
yamlConfiguration_ENmsg.set("Give.PlayerNoInventorySpace", DefaultValue.PlayerNoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesENYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNoInventorySpace §4was added to §9EN_Messages.yml§4!");
|
||||
}
|
||||
try {
|
||||
yamlConfiguration_ENmsg.save(messagesENYML);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2EN_Messages.yml loaded successfully.");
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,123 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.config;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Messages_FR {
|
||||
|
||||
public static void messagesCreate(String version) {
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4FR_Messages.yml load...");
|
||||
|
||||
File messagesFRYML = new File(Main.thisp().getDataFolder().getPath(), "languages/fr_FR_Messages.yml");
|
||||
YamlConfiguration yamlConfiguration_FRmsg = YamlConfiguration.loadConfiguration(messagesFRYML);
|
||||
|
||||
if (!yamlConfiguration_FRmsg.contains("Do_not_remove_or_change.Created"))
|
||||
yamlConfiguration_FRmsg.set("Do_not_remove_or_change.Created", "This file was created with version " + version);
|
||||
yamlConfiguration_FRmsg.set("Do_not_remove_or_change.Version", version);
|
||||
yamlConfiguration_FRmsg.set("Do_not_remove_or_change.Autor", Main.Autor);
|
||||
yamlConfiguration_FRmsg.set("Do_not_remove_or_change.Spigot", Main.Spigot);
|
||||
yamlConfiguration_FRmsg.set("Do_not_remove_or_change.Discord", Main.DiscordMSG);
|
||||
|
||||
if (!yamlConfiguration_FRmsg.contains("Plugin.NoPermission")) {
|
||||
yamlConfiguration_FRmsg.set("Plugin.NoPermission", DefaultValue.FR_NoPermission.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermission §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Plugin.NoPermissionForCommand")) {
|
||||
yamlConfiguration_FRmsg.set("Plugin.NoPermissionForCommand", DefaultValue.FR_NoPermissionForCommand.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForCommand §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Plugin.NoPermissionForItem")) {
|
||||
yamlConfiguration_FRmsg.set("Plugin.NoPermissionForItem", DefaultValue.FR_NoPermissionForItem.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForItem §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Plugin.VaultNotSetUp")) {
|
||||
yamlConfiguration_FRmsg.set("Plugin.VaultNotSetUp", DefaultValue.FR_VaultNotSetUp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6VaultNotSetUp §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Plugin.SoundNotFound")) {
|
||||
yamlConfiguration_FRmsg.set("Plugin.SoundNotFound", DefaultValue.FR_SoundNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6SoundNotFound §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Plugin.Reload.Start")) {
|
||||
yamlConfiguration_FRmsg.set("Plugin.Reload.Start", DefaultValue.FR_ReloadStart.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload Start §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Plugin.Reload.End")) {
|
||||
yamlConfiguration_FRmsg.set("Plugin.Reload.End", DefaultValue.FR_ReloadEnd.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload End §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Help.CGUI")) {
|
||||
yamlConfiguration_FRmsg.set("Help.CGUI", DefaultValue.FR_HelpCgui.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + DefaultValue.HelpCgui.replace("§8[§6C§9GUI§8]", "[prefix]").replace("§", "&"));
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Help.Help")) {
|
||||
yamlConfiguration_FRmsg.set("Help.Help", DefaultValue.FR_HelpHelp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Help §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Help.Info")) {
|
||||
yamlConfiguration_FRmsg.set("Help.Info", DefaultValue.FR_HelpInfo.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Info §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Help.Open")) {
|
||||
yamlConfiguration_FRmsg.set("Help.Open", DefaultValue.FR_HelpOpen.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Open §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Help.Give")) {
|
||||
yamlConfiguration_FRmsg.set("Help.Give", DefaultValue.FR_HelpGive.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Give §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Help.Reload")) {
|
||||
yamlConfiguration_FRmsg.set("Help.Reload", DefaultValue.FR_HelpReload.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Reload §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Cost.Buy_msg")) {
|
||||
yamlConfiguration_FRmsg.set("Cost.Buy_msg", DefaultValue.FR_Buy_msg.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Buy_msg §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Cost.No_money")) {
|
||||
yamlConfiguration_FRmsg.set("Cost.No_money", DefaultValue.FR_No_money.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6No_money §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Cost.NoInventorySpace")) {
|
||||
yamlConfiguration_FRmsg.set("Cost.NoInventorySpace", DefaultValue.FR_NoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoInventorySpace §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("GUI.IsDisabled")) {
|
||||
yamlConfiguration_FRmsg.set("GUI.IsDisabled", DefaultValue.FR_GUIisDisable.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6GUI IsDisabled §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Give.Sender")) {
|
||||
yamlConfiguration_FRmsg.set("Give.Sender", DefaultValue.FR_give.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Sender §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Give.Receiver")) {
|
||||
yamlConfiguration_FRmsg.set("Give.Receiver", DefaultValue.FR_giveReceived.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Receiver §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Give.PlayerNotFond")) {
|
||||
yamlConfiguration_FRmsg.set("Give.PlayerNotFond", DefaultValue.FR_PlayerNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNotFond §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_FRmsg.contains("Give.PlayerNoInventorySpace")) {
|
||||
yamlConfiguration_FRmsg.set("Give.PlayerNoInventorySpace", DefaultValue.FR_PlayerNoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesFRYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNoInventorySpace §4was added to §9FR_Messages.yml§4!");
|
||||
}
|
||||
try {
|
||||
yamlConfiguration_FRmsg.save(messagesFRYML);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2FR_Messages.yml loaded successfully.");
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,123 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.config;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Messages_NO {
|
||||
|
||||
public static void messagesCreate(String version) {
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4NO_Messages.yml load...");
|
||||
|
||||
File messagesNOYML = new File(Main.thisp().getDataFolder().getPath(), "languages/no_NO_Messages.yml");
|
||||
YamlConfiguration yamlConfiguration_NOmsg = YamlConfiguration.loadConfiguration(messagesNOYML);
|
||||
|
||||
if (!yamlConfiguration_NOmsg.contains("Do_not_remove_or_change.Created"))
|
||||
yamlConfiguration_NOmsg.set("Do_not_remove_or_change.Created", "This file was created with version " + version);
|
||||
yamlConfiguration_NOmsg.set("Do_not_remove_or_change.Version", version);
|
||||
yamlConfiguration_NOmsg.set("Do_not_remove_or_change.Autor", Main.Autor);
|
||||
yamlConfiguration_NOmsg.set("Do_not_remove_or_change.Spigot", Main.Spigot);
|
||||
yamlConfiguration_NOmsg.set("Do_not_remove_or_change.Discord", Main.DiscordMSG);
|
||||
|
||||
if (!yamlConfiguration_NOmsg.contains("Plugin.NoPermission")) {
|
||||
yamlConfiguration_NOmsg.set("Plugin.NoPermission", DefaultValue.NO_NoPermission.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermission §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Plugin.NoPermissionForCommand")) {
|
||||
yamlConfiguration_NOmsg.set("Plugin.NoPermissionForCommand", DefaultValue.NO_NoPermissionForCommand.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForCommand §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Plugin.NoPermissionForItem")) {
|
||||
yamlConfiguration_NOmsg.set("Plugin.NoPermissionForItem", DefaultValue.NO_NoPermissionForItem.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoPermissionForItem §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Plugin.VaultNotSetUp")) {
|
||||
yamlConfiguration_NOmsg.set("Plugin.VaultNotSetUp", DefaultValue.NO_VaultNotSetUp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6VaultNotSetUp §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Plugin.SoundNotFound")) {
|
||||
yamlConfiguration_NOmsg.set("Plugin.SoundNotFound", DefaultValue.NO_SoundNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6SoundNotFound §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Plugin.Reload.Start")) {
|
||||
yamlConfiguration_NOmsg.set("Plugin.Reload.Start", DefaultValue.NO_ReloadStart.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload Start §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Plugin.Reload.End")) {
|
||||
yamlConfiguration_NOmsg.set("Plugin.Reload.End", DefaultValue.NO_ReloadEnd.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Reload End §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Help.CGUI")) {
|
||||
yamlConfiguration_NOmsg.set("Help.CGUI", DefaultValue.NO_HelpCgui.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + DefaultValue.HelpCgui.replace("§8[§6C§9GUI§8]", "[prefix]").replace("§", "&"));
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Help.Help")) {
|
||||
yamlConfiguration_NOmsg.set("Help.Help", DefaultValue.NO_HelpHelp.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Help §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Help.Info")) {
|
||||
yamlConfiguration_NOmsg.set("Help.Info", DefaultValue.NO_HelpInfo.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Info §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Help.Open")) {
|
||||
yamlConfiguration_NOmsg.set("Help.Open", DefaultValue.NO_HelpOpen.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Open §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Help.Give")) {
|
||||
yamlConfiguration_NOmsg.set("Help.Give", DefaultValue.NO_HelpGive.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Give §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Help.Reload")) {
|
||||
yamlConfiguration_NOmsg.set("Help.Reload", DefaultValue.NO_HelpReload.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Help Reload §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Cost.Buy_msg")) {
|
||||
yamlConfiguration_NOmsg.set("Cost.Buy_msg", DefaultValue.NO_Buy_msg.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Buy_msg §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Cost.No_money")) {
|
||||
yamlConfiguration_NOmsg.set("Cost.No_money", DefaultValue.NO_No_money.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6No_money §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Cost.NoInventorySpace")) {
|
||||
yamlConfiguration_NOmsg.set("Cost.NoInventorySpace", DefaultValue.NO_NoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6NoInventorySpace §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("GUI.IsDisabled")) {
|
||||
yamlConfiguration_NOmsg.set("GUI.IsDisabled", DefaultValue.NO_GUIisDisable.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6GUI IsDisabled §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Give.Sender")) {
|
||||
yamlConfiguration_NOmsg.set("Give.Sender", DefaultValue.NO_give.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Sender §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Give.Receiver")) {
|
||||
yamlConfiguration_NOmsg.set("Give.Receiver", DefaultValue.NO_giveReceived.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give Receiver §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Give.PlayerNotFond")) {
|
||||
yamlConfiguration_NOmsg.set("Give.PlayerNotFond", DefaultValue.NO_PlayerNotFound.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNotFond §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
if (!yamlConfiguration_NOmsg.contains("Give.PlayerNoInventorySpace")) {
|
||||
yamlConfiguration_NOmsg.set("Give.PlayerNoInventorySpace", DefaultValue.NO_PlayerNoInventorySpace.replace(DefaultValue.Prefix, "[prefix]").replace("§", "&"));
|
||||
if (messagesNOYML.isFile()) Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Message §6Give PlayerNoInventorySpace §4was added to §9NO_Messages.yml§4!");
|
||||
}
|
||||
try {
|
||||
yamlConfiguration_NOmsg.save(messagesNOYML);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2NO_Messages.yml loaded successfully.");
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,74 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.config;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Messages_Select {
|
||||
|
||||
public static String selectMSG;
|
||||
public static String sel;
|
||||
|
||||
public static void selectCreate() {
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Select language...");
|
||||
|
||||
|
||||
switch (DefaultValue.language) {
|
||||
case "de_DE":
|
||||
selectMSG = "German";
|
||||
sel = "de_DE";
|
||||
break;
|
||||
case "fr_FR":
|
||||
selectMSG = "French";
|
||||
sel = "fr_FR";
|
||||
break;
|
||||
case "no_NO":
|
||||
selectMSG = "Norwegian";
|
||||
sel = "no_NO";
|
||||
break;
|
||||
default:
|
||||
selectMSG = "English";
|
||||
sel = "en_EN";
|
||||
break;
|
||||
}
|
||||
|
||||
File messagesYML = new File(Main.thisp().getDataFolder().getPath(), "languages/" + sel + "_Messages.yml");
|
||||
YamlConfiguration yamlConfiguration_msg = YamlConfiguration.loadConfiguration(messagesYML);
|
||||
DefaultValue.NoPermission = replace(yamlConfiguration_msg.getString("Plugin.NoPermission"));
|
||||
DefaultValue.NoPermissionForCommand = replace(yamlConfiguration_msg.getString("Plugin.NoPermissionForCommand"));
|
||||
DefaultValue.NoPermissionForItem = replace(yamlConfiguration_msg.getString("Plugin.NoPermissionForItem"));
|
||||
DefaultValue.VaultNotSetUp = replace(yamlConfiguration_msg.getString("Plugin.VaultNotSetUp"));
|
||||
DefaultValue.SoundNotFound = replace(yamlConfiguration_msg.getString("Plugin.SoundNotFound"));
|
||||
DefaultValue.ReloadStart = replace(yamlConfiguration_msg.getString("Plugin.Reload.Start"));
|
||||
DefaultValue.ReloadEnd = replace(yamlConfiguration_msg.getString("Plugin.Reload.End"));
|
||||
DefaultValue.HelpCgui = replace(yamlConfiguration_msg.getString("Help.CGUI"));
|
||||
DefaultValue.HelpHelp = replace(yamlConfiguration_msg.getString("Help.Help"));
|
||||
DefaultValue.HelpInfo = replace(yamlConfiguration_msg.getString("Help.Info"));
|
||||
DefaultValue.HelpOpen = replace(yamlConfiguration_msg.getString("Help.Open"));
|
||||
DefaultValue.HelpGive = replace(yamlConfiguration_msg.getString("Help.Give"));
|
||||
DefaultValue.HelpReload = replace(yamlConfiguration_msg.getString("Help.Reload"));
|
||||
DefaultValue.No_money = replace(yamlConfiguration_msg.getString("Cost.No_money"));
|
||||
DefaultValue.NoInventorySpace = replace(yamlConfiguration_msg.getString("Cost.NoInventorySpace"));
|
||||
DefaultValue.Buy_msg = replace(yamlConfiguration_msg.getString("Cost.Buy_msg"));
|
||||
DefaultValue.GUIisDisable = replace(yamlConfiguration_msg.getString("GUI.IsDisabled"));
|
||||
DefaultValue.give = replace(yamlConfiguration_msg.getString("Give.Sender"));
|
||||
DefaultValue.giveReceived = replace(yamlConfiguration_msg.getString("Give.Receiver"));
|
||||
DefaultValue.PlayerNotFound = replace(yamlConfiguration_msg.getString("Give.PlayerNotFond"));
|
||||
DefaultValue.PlayerNoInventorySpace = replace(yamlConfiguration_msg.getString("Give.PlayerNoInventorySpace"));
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Language successfully selected to: §6" + selectMSG);
|
||||
}
|
||||
|
||||
private static String replace(String Text) {
|
||||
return Text.replace("[prefix]", DefaultValue.PrefixHC).replace("&", "§").replace("[ue]", "ü")
|
||||
.replace("[UE]", "Ü").replace("[oe]", "Ö").replace("[OE]", "Ö")
|
||||
.replace("[ae]", "ä").replace("[AE]", "Ä");
|
||||
}
|
||||
}
|
@@ -0,0 +1,166 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
// -----------------------------
|
||||
// _____ _____ _ _ _____
|
||||
// / ____/ ____| | | |_ _|
|
||||
// | | | | __| | | | | |
|
||||
// | | | | |_ | | | | | |
|
||||
// | |___| |__| | |__| |_| |_
|
||||
// \_____\_____|\____/|_____|
|
||||
// -----------------------------
|
||||
|
||||
package de.jatitv.commandgui.defaultValue;
|
||||
|
||||
import org.bukkit.Sound;
|
||||
|
||||
public class DefaultValue {
|
||||
|
||||
// Config
|
||||
|
||||
public static boolean Debug = false;
|
||||
public static Boolean UpdateCheckOnJoin = true;
|
||||
public static String language = "en_EN";
|
||||
|
||||
public static String Currency = "$";
|
||||
|
||||
public static Integer DefaultGUI = 1;
|
||||
|
||||
|
||||
// Messages
|
||||
public static String PrefixHC = "§8[§4C§9GUI§8] ";
|
||||
public static String Prefix = "§8[§4C§9GUI§8]";
|
||||
|
||||
// EN
|
||||
public static String NoPermission = PrefixHC + "§cYou do not have permission for §4Command§9GUI!";
|
||||
public static String NoPermissionForCommand = PrefixHC + "§cFor §b[cmd] §cyou lack the permission §6[perm]§c!";
|
||||
public static String NoPermissionForItem = PrefixHC + "§cFor §b[item] §cyou lack the permission §6[perm]§c!";
|
||||
public static String VaultNotSetUp = PrefixHC + "§4Vault / Economy not set up!";
|
||||
public static String SoundNotFound = PrefixHC + "§4The sound §6[sound] §4could not be found! Please check your settings.";
|
||||
public static String ReloadStart = "§6Plugin reload...";
|
||||
public static String ReloadEnd = "§2Plugin successfully reloaded.";
|
||||
|
||||
public static String HelpCgui = "§8'§b/commandgui §8| §b/cgui§8' §eOpen the Default GUI §7(§r[gui]§7)§e.";
|
||||
public static String HelpHelp = "§8'§b/commandgui help§8' §eOpens this help.";
|
||||
public static String HelpInfo = "§8'§b/commandgui info§8' §eCall the info about §4Command§9GUI§e.";
|
||||
public static String HelpOpen = "§8'§b/commandgui open [gui]§8' §eOpen the GUI: §6[guiname]§e.";
|
||||
public static String HelpGive = "§8'§b/commandgui give §7<player> <gui>§8' §eGive a player a GUI Item.";
|
||||
public static String HelpReload = "§8'§b/commandgui reload§8' §eReloads the Plugin.";
|
||||
|
||||
public static String Buy_msg = PrefixHC + "§2You bought [itemname] §2for §6[price]§2.";
|
||||
public static String No_money = PrefixHC + "§cYou do not have enough money!";
|
||||
public static String NoInventorySpace = PrefixHC + "&cNo free inventory space!";
|
||||
|
||||
public static String GUIisDisable = PrefixHC + "§cThe GUI [gui] §cis currently disabled!";
|
||||
|
||||
public static String give = PrefixHC + "§2You gave §6[player] §2a [item]§2!";
|
||||
public static String giveReceived = PrefixHC + "§2You have received a [item] §2from §6[sender]§2!";
|
||||
public static String PlayerNotFound = PrefixHC + "§cThe player §6[player] §cwas not found or is not online!";
|
||||
public static String PlayerNoInventorySpace = PrefixHC + "§6[player] §chas no free inventory space available!";
|
||||
|
||||
// DE
|
||||
public static String DE_NoPermission = PrefixHC + "§cDu hast keine Permission f[ue]r §4Command§9GUI!";
|
||||
public static String DE_NoPermissionForCommand = PrefixHC + "§cF[ue]r §b[cmd] §cfehlt dir die Permission §6[perm]§c!";
|
||||
public static String DE_NoPermissionForItem = PrefixHC + "§cF[ue]r §b[item] §cfehlt dir die Permission §6[perm]§c!";
|
||||
public static String DE_VaultNotSetUp = PrefixHC + "§4Vault / Economy nicht eingerichtet!";
|
||||
public static String DE_SoundNotFound = PrefixHC + "§4Der Sound §6[sound] §4wurde nicht gefunden! Bitte überprüfe die Einstellungen.";
|
||||
public static String DE_ReloadStart = "§6Plugin wird neu geladen...";
|
||||
public static String DE_ReloadEnd = "§2Plugin erfolgreich neu geladen.";
|
||||
|
||||
public static String DE_HelpCgui = "§8'§b/commandgui §8| §b/cgui§8' §e[OE]ffne die default GUI §7(§r[gui]§7)§e.";
|
||||
public static String DE_HelpHelp = "§8'§b/commandgui help§8' §e[OE]ffne diese help.";
|
||||
public static String DE_HelpInfo = "§8'§b/commandgui info§8' §eRufe die Infos von §4Command§9GUI §eauf.";
|
||||
public static String DE_HelpOpen = "§8'§b/commandgui open [gui]§8' §e[OE]ffne die GUI: §6[guiname]§e.";
|
||||
public static String DE_HelpGive = "§8'§b/commandgui give §7<player> <gui>§8' &eGebe einem Spieler ein GUI Item.";
|
||||
public static String DE_HelpReload = "§8'§b/commandgui reload§8' &eLade das Plugin neu.";
|
||||
|
||||
public static String DE_Buy_msg = PrefixHC + "&2Du hast dir [itemname] &2f[ue]r &6[price] &2gekauft.";
|
||||
public static String DE_No_money = PrefixHC + "&cDu hast nicht gen[ue]gend Geld!";
|
||||
public static String DE_NoInventorySpace = PrefixHC + "§cDu hast keinen Platz in deinem Inventar!";
|
||||
|
||||
public static String DE_GUIisDisable = PrefixHC + "&cDie GUI [gui] &cist derzeit Deaktiviert!";
|
||||
|
||||
public static String DE_give = PrefixHC + "&2Du hast &6[player] &2ein [item] &2gegeben!";
|
||||
public static String DE_giveReceived = PrefixHC + "&2Du hast von &6[sender] &2, [item] &2bekommen!";
|
||||
public static String DE_PlayerNotFound = PrefixHC + "&cDer Spieler &6[player] &cwurde nicht gefunden oder ist nicht Online!";
|
||||
public static String DE_PlayerNoInventorySpace = PrefixHC + "&6[player] &chat keinen freien Platz in seinem Inventar!";
|
||||
|
||||
// FR
|
||||
public static String FR_NoPermission = PrefixHC + "§cVous n'avez pas la permission pour §4Command§9GUI!";
|
||||
public static String FR_NoPermissionForCommand = PrefixHC + "§cPour §b[cmd] §cil vous manque la permission §6[perm]§c!";
|
||||
public static String FR_NoPermissionForItem = PrefixHC + "§cPour §b[item] §cil vous manque la permission §6[perm]§c!";
|
||||
public static String FR_VaultNotSetUp = PrefixHC + "§4Vault / Economie non mis en place!";
|
||||
public static String FR_SoundNotFound = PrefixHC + "§4Le son §6[sound] §4n'a pas pu être trouvé ! Vérifiez votre configuration.";
|
||||
public static String FR_ReloadStart = "§6Le plugin recharge...";
|
||||
public static String FR_ReloadEnd = "§2Le plugin est rechargé.";
|
||||
|
||||
public static String FR_HelpCgui = "§8'§b/commandgui §8| §b/cgui§8' §eOuvre l'interface par défaut §7(§r[gui]§7)§e.";
|
||||
public static String FR_HelpHelp = "§8'§b/commandgui help§8' §eOuvre cette aide.";
|
||||
public static String FR_HelpInfo = "§8'§b/commandgui info§8' §eDonne les infos à propos de §4Command§9GUI§e.";
|
||||
public static String FR_HelpOpen = "§8'§b/commandgui open [gui]§8' §eOuvre l'inteface: §6[guiname]§e.";
|
||||
public static String FR_HelpGive = "§8'§b/commandgui give §7<player> <gui>§8' §eDonne à un joueur un item pour une interface.";
|
||||
public static String FR_HelpReload = "§8'§b/commandgui reload§8' §eRecharge le plugin.";
|
||||
|
||||
public static String FR_Buy_msg = PrefixHC + "§2Vous avez acheté [itemname] §2pour §6[price]§2.";
|
||||
public static String FR_No_money = PrefixHC + "§cVous n'avez pas assez d'argent!";
|
||||
public static String FR_NoInventorySpace = PrefixHC + "§cVous n'avez pas de place dans l'inventaire!";
|
||||
|
||||
public static String FR_GUIisDisable = PrefixHC + "§cL'interface [gui] §cest actuellement désactivée!";
|
||||
|
||||
public static String FR_give = PrefixHC + "§2Vous avez donné à §6[player] §2un [item]§2!";
|
||||
public static String FR_giveReceived = PrefixHC + "§2Vous avez reçu un [item] §2de §6[sender]§2!";
|
||||
public static String FR_PlayerNotFound = PrefixHC + "§cLe joueur §6[player] §cn'a pas pu être trouvé ou n'est pas connecté!";
|
||||
public static String FR_PlayerNoInventorySpace = PrefixHC + "§6[player] §cn'a pas d'espace libre dans son inventaire!";
|
||||
|
||||
// NO
|
||||
public static String NO_NoPermission = PrefixHC + "§cDu har ikke tillatelse for §4Command§9GUI!";
|
||||
public static String NO_NoPermissionForCommand = PrefixHC + "§cDu mangler §6[perm] §vfor §b[cmd]§c!";
|
||||
public static String NO_NoPermissionForItem = PrefixHC + "§cDu mangler §6[perm] §cfor §b[item]§c!";
|
||||
public static String NO_VaultNotSetUp = PrefixHC + "§4Vault / Økonomi er ikke satt opp!";
|
||||
public static String NO_SoundNotFound = PrefixHC + "§4Lydeffekten §6[sound] §4ble ikke funnet! Sjekk instillingene dine.";
|
||||
public static String NO_ReloadStart = "§6Plugin restarter...";
|
||||
public static String NO_ReloadEnd = "§2Plugin restartet.";
|
||||
|
||||
public static String NO_HelpCgui = "§8'§b/commandgui §8| §b/cgui§8' §eÅpner Default GUI §7(§r[gui]§7)§e.";
|
||||
public static String NO_HelpHelp = "§8'§b/commandgui help§8' §eÅpner hjelp.";
|
||||
public static String NO_HelpInfo = "§8'§b/commandgui info§8' §eViser info om §4Command§9GUI§e.";
|
||||
public static String NO_HelpOpen = "§8'§b/commandgui open [gui]§8' §eÅpner GUI: §6[guiname]§e.";
|
||||
public static String NO_HelpGive = "§8'§b/commandgui give §7<player> <gui>§8' §eGir en spiller et GUI Item.";
|
||||
public static String NO_HelpReload = "§8'§b/commandgui reload§8' §eRestarter pluginen.";
|
||||
|
||||
public static String NO_Buy_msg = PrefixHC + "§2Du kjøpte [itemname] §2for §6[price]§2.";
|
||||
public static String NO_No_money = PrefixHC + "§cDu har ikke nok penger!";
|
||||
public static String NO_NoInventorySpace = PrefixHC + "§cDu har ikke nok ledig plass!";
|
||||
|
||||
public static String NO_GUIisDisable = PrefixHC + "§cGUI [gui] §cer avskrudd!";
|
||||
|
||||
public static String NO_give = PrefixHC + "§2Du gav §6[player] §2[item]§2!";
|
||||
public static String NO_giveReceived = PrefixHC + "§2Du har mottatt [item] §2fa §6[sender]§2!";
|
||||
public static String NO_PlayerNotFound = PrefixHC + "§cSpilleren §6[player] §cble ikke funnet!";
|
||||
public static String NO_PlayerNoInventorySpace = PrefixHC + "&6[player] §char ikke nok ledig plass!";
|
||||
|
||||
|
||||
// Sound
|
||||
|
||||
public static Boolean Sound_Enable = true;
|
||||
|
||||
public static Boolean Sound_Click_Enable = true;
|
||||
public static Sound Sound_Click;
|
||||
public static String Sound_Click_input;
|
||||
|
||||
public static Boolean Sound_NoMoney_Enable = true;
|
||||
public static Sound Sound_NoMoney;
|
||||
public static String Sound_NoMoney_input;
|
||||
|
||||
public static Boolean Sound_NoInventorySpace_Enable = true;
|
||||
public static Sound Sound_NoInventorySpace;
|
||||
public static String Sound_NoInventorySpace_input;
|
||||
|
||||
public static Boolean Sound_Give_Enable = true;
|
||||
public static Sound Sound_Give;
|
||||
public static String Sound_Give_input;
|
||||
|
||||
public static Boolean Sound_PlayerNotFound_Enable = true;
|
||||
public static Sound Sound_PlayerNotFound;
|
||||
public static String Sound_PlayerNotFound_input;
|
||||
|
||||
}
|
@@ -0,0 +1,852 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
// -----------------------------
|
||||
// _____ _____ _ _ _____
|
||||
// / ____/ ____| | | |_ _|
|
||||
// | | | | __| | | | | |
|
||||
// | | | | |_ | | | | | |
|
||||
// | |___| |__| | |__| |_| |_
|
||||
// \_____\_____|\____/|_____|
|
||||
// -----------------------------
|
||||
|
||||
package de.jatitv.commandgui.defaultValue;
|
||||
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class DefaultValue_GUI_1 {
|
||||
|
||||
public static Boolean GiveUseItemOnFirstJoin = false;
|
||||
public static Boolean GiveUseItemOnFirstJoin_Permission_Enable = false;
|
||||
|
||||
public static Boolean GUI_Enable = false;
|
||||
|
||||
public static String GiveUseItemOnFirstJoin_Permission = "commandgui.giveuseitemonfirstjoin.gui1";
|
||||
public static String UseItem_Item = "COMPASS";
|
||||
public static String UseItem_Name = "§7Open the: [guiname]";
|
||||
public static List UseItem_Lore = Arrays.asList();
|
||||
|
||||
public static String Command = "GUI1";
|
||||
public static Boolean Command_Permission_Enable = true;
|
||||
|
||||
public static String GUIName = "§9GUI §51";
|
||||
public static Boolean FillItem_Enable = true;
|
||||
public static String FillItem = "BLACK_STAINED_GLASS_PANE";
|
||||
public static short FillItem_1_8 = 15;
|
||||
public static Integer GUILines = 1;
|
||||
|
||||
public static Boolean Permission_Enable = false;
|
||||
public static String Permission = "commandgui.use.gui1";
|
||||
|
||||
|
||||
/**
|
||||
* line1
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L1_S1_Enable = true;
|
||||
public static Boolean L1_S1_Playerhead = true;
|
||||
public static String L1_S1_Item = "PAPER";
|
||||
public static String L1_S1_Name = "§3Player Info";
|
||||
public static List L1_S1_Lore = Arrays.asList("§8-----------------", "§bPlayer: §6%player_name%", "", "§eGamemode: §6%player_gamemode%", "§eHealth: §6%player_health_scale%");
|
||||
public static Boolean L1_S1_Cost_Enable = false;
|
||||
public static Double L1_S1_Price = 0.00;
|
||||
public static Boolean L1_S1_Command_Enable = false;
|
||||
public static Boolean L1_S1_CommandAsConsole = false;
|
||||
public static String L1_S1_Command = "";
|
||||
public static Boolean L1_S1_Message_Enable = false;
|
||||
public static List<String> L1_S1_Message;
|
||||
public static Boolean L1_S1_Permission_Enable = false;
|
||||
public static String L1_S1_Permission = "commandgui.use.gui1.line1.slot1";
|
||||
|
||||
public static Boolean L1_S2_Enable = false;
|
||||
public static String L1_S2_Item = "";
|
||||
public static String L1_S2_Name = "";
|
||||
public static List L1_S2_Lore = Arrays.asList();
|
||||
public static Boolean L1_S2_Cost_Enable = false;
|
||||
public static Double L1_S2_Price = 0.00;
|
||||
public static Boolean L1_S2_Command_Enable = false;
|
||||
public static Boolean L1_S2_CommandAsConsole = false;
|
||||
public static String L1_S2_Command = "";
|
||||
public static Boolean L1_S2_Message_Enable = false;
|
||||
public static List<String> L1_S2_Message;
|
||||
public static Boolean L1_S2_Permission_Enable = false;
|
||||
public static String L1_S2_Permission = "commandgui.use.gui1.line1.slot2";
|
||||
|
||||
public static Boolean L1_S3_Enable = false;
|
||||
public static String L1_S3_Item = "";
|
||||
public static String L1_S3_Name = "";
|
||||
public static List L1_S3_Lore = Arrays.asList();
|
||||
public static Boolean L1_S3_Cost_Enable = false;
|
||||
public static Double L1_S3_Price = 0.00;
|
||||
public static Boolean L1_S3_Command_Enable = false;
|
||||
public static Boolean L1_S3_CommandAsConsole = false;
|
||||
public static String L1_S3_Command = "";
|
||||
public static Boolean L1_S3_Message_Enable = false;
|
||||
public static List<String> L1_S3_Message;
|
||||
public static Boolean L1_S3_Permission_Enable = false;
|
||||
public static String L1_S3_Permission = "commandgui.use.gui1.line1.slot3";
|
||||
|
||||
public static Boolean L1_S4_Enable = true;
|
||||
public static String L1_S4_Item = "STONE";
|
||||
public static String L1_S4_Name = "§4Example GUI";
|
||||
public static List L1_S4_Lore = Arrays.asList();
|
||||
public static Boolean L1_S4_Cost_Enable = false;
|
||||
public static Double L1_S4_Price = 0.00;
|
||||
public static Boolean L1_S4_Command_Enable = false;
|
||||
public static Boolean L1_S4_CommandAsConsole = false;
|
||||
public static String L1_S4_Command = "";
|
||||
public static Boolean L1_S4_Message_Enable = true;
|
||||
public static List<String> L1_S4_Message = Arrays.asList(
|
||||
"[prefix] §cThe settings can be edited in the GUI_1.yml.",
|
||||
"[prefix]",
|
||||
"[prefix] §bIn the GUI, placeholders can be used for the item names and lores.",
|
||||
"[prefix] §bIt is adjustable how many lines the GUI should have.",
|
||||
"[prefix] §aIt is possible to make functions chargeable §c(requires Vault and an Economy plugin)§a.",
|
||||
"[prefix] §bYou can send messages to the executing player.",
|
||||
"[prefix] §aYou can execute commands.",
|
||||
"[prefix] ",
|
||||
"[prefix] §2If you have further questions, please come to my Discord: §6" + Main.DiscordLink);
|
||||
public static Boolean L1_S4_Permission_Enable = false;
|
||||
public static String L1_S4_Permission = "commandgui.use.gui1.line1.slot4";
|
||||
|
||||
public static Boolean L1_S5_Enable = false;
|
||||
public static String L1_S5_Item = "";
|
||||
public static String L1_S5_Name = "";
|
||||
public static List L1_S5_Lore = Arrays.asList();
|
||||
public static Boolean L1_S5_Cost_Enable = false;
|
||||
public static Double L1_S5_Price = 0.00;
|
||||
public static Boolean L1_S5_Command_Enable = false;
|
||||
public static Boolean L1_S5_CommandAsConsole = false;
|
||||
public static String L1_S5_Command = "";
|
||||
public static Boolean L1_S5_Message_Enable = false;
|
||||
public static List<String> L1_S5_Message;
|
||||
public static Boolean L1_S5_Permission_Enable = false;
|
||||
public static String L1_S5_Permission = "commandgui.use.gui1.line1.slot5";
|
||||
|
||||
public static Boolean L1_S6_Enable = true;
|
||||
public static String L1_S6_Item = "TNT";
|
||||
public static String L1_S6_Name = "§4More plugins from JaTiTV";
|
||||
public static List L1_S6_Lore = Arrays.asList();
|
||||
public static Boolean L1_S6_Cost_Enable = false;
|
||||
public static Double L1_S6_Price = 0.00;
|
||||
public static Boolean L1_S6_Command_Enable = false;
|
||||
public static Boolean L1_S6_CommandAsConsole = false;
|
||||
public static String L1_S6_Command = "";
|
||||
public static Boolean L1_S6_Message_Enable = true;
|
||||
public static List<String> L1_S6_Message = Arrays.asList(
|
||||
"[prefix] §8------ §6More plugins from JaTiTV §8------",
|
||||
"[prefix]",
|
||||
"[prefix] §2Wonder§6Bag§9Shop §7-> §bhttps://www.spigotmc.org/resources/wonderbagshop.89234/",
|
||||
"[prefix] §5PaPi§6Test §7-> §bhttps://www.spigotmc.org/resources/papitest-placeholderapi-tester.90439/",
|
||||
"[prefix]",
|
||||
"[prefix] §2All plugins from JaTiTV:",
|
||||
"[prefix] §bhttps://www.spigotmc.org/resources/authors/jatitv.1022547/",
|
||||
"[prefix] §8----------------------------------");
|
||||
public static Boolean L1_S6_Permission_Enable = false;
|
||||
public static String L1_S6_Permission = "commandgui.use.gui1.line1.slot6";
|
||||
|
||||
public static Boolean L1_S7_Enable = false;
|
||||
public static String L1_S7_Item = "";
|
||||
public static String L1_S7_Name = "";
|
||||
public static List L1_S7_Lore = Arrays.asList();
|
||||
public static Boolean L1_S7_Cost_Enable = false;
|
||||
public static Double L1_S7_Price = 0.00;
|
||||
public static Boolean L1_S7_Command_Enable = false;
|
||||
public static Boolean L1_S7_CommandAsConsole = false;
|
||||
public static String L1_S7_Command = "";
|
||||
public static Boolean L1_S7_Message_Enable = false;
|
||||
public static List<String> L1_S7_Message;
|
||||
public static Boolean L1_S7_Permission_Enable = false;
|
||||
public static String L1_S7_Permission = "commandgui.use.gui1.line1.slot7";
|
||||
|
||||
public static Boolean L1_S8_Enable = false;
|
||||
public static String L1_S8_Item = "";
|
||||
public static String L1_S8_Name = "";
|
||||
public static List L1_S8_Lore = Arrays.asList();
|
||||
public static Boolean L1_S8_Cost_Enable = false;
|
||||
public static Double L1_S8_Price = 0.00;
|
||||
public static Boolean L1_S8_Command_Enable = false;
|
||||
public static Boolean L1_S8_CommandAsConsole = false;
|
||||
public static String L1_S8_Command = "";
|
||||
public static Boolean L1_S8_Message_Enable = false;
|
||||
public static List<String> L1_S8_Message;
|
||||
public static Boolean L1_S8_Permission_Enable = false;
|
||||
public static String L1_S8_Permission = "commandgui.use.gui1.line1.slot8";
|
||||
|
||||
public static Boolean L1_S9_Enable = true;
|
||||
public static String L1_S9_Item = "PAPER";
|
||||
public static String L1_S9_Name = "§6NightVision";
|
||||
public static List L1_S9_Lore = Arrays.asList("§8-----------------", "§65 minutes", "§5[price]");
|
||||
public static Boolean L1_S9_Cost_Enable = true;
|
||||
public static Double L1_S9_Price = 100.00;
|
||||
public static Boolean L1_S9_Command_Enable = true;
|
||||
public static Boolean L1_S9_CommandAsConsole = true;
|
||||
public static String L1_S9_Command;// = "effect give @p night_vision 300 1 true";
|
||||
public static Boolean L1_S9_Message_Enable = false;
|
||||
public static List<String> L1_S9_Message;
|
||||
public static Boolean L1_S9_Permission_Enable = false;
|
||||
public static String L1_S9_Permission = "commandgui.use.gui1.line1.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line2
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L2_S1_Enable = false;
|
||||
public static String L2_S1_Item = "";
|
||||
public static String L2_S1_Name = "";
|
||||
public static List L2_S1_Lore = Arrays.asList();
|
||||
public static Boolean L2_S1_Cost_Enable = false;
|
||||
public static Double L2_S1_Price = 0.00;
|
||||
public static Boolean L2_S1_Command_Enable = false;
|
||||
public static Boolean L2_S1_CommandAsConsole = false;
|
||||
public static String L2_S1_Command = "";
|
||||
public static Boolean L2_S1_Message_Enable = false;
|
||||
public static List<String> L2_S1_Message;
|
||||
public static Boolean L2_S1_Permission_Enable = false;
|
||||
public static String L2_S1_Permission = "commandgui.use.gui1.line2.slot1";
|
||||
|
||||
public static Boolean L2_S2_Enable = false;
|
||||
public static String L2_S2_Item = "";
|
||||
public static String L2_S2_Name = "";
|
||||
public static List L2_S2_Lore = Arrays.asList();
|
||||
public static Boolean L2_S2_Cost_Enable = false;
|
||||
public static Double L2_S2_Price = 0.00;
|
||||
public static Boolean L2_S2_Command_Enable = false;
|
||||
public static Boolean L2_S2_CommandAsConsole = false;
|
||||
public static String L2_S2_Command = "";
|
||||
public static Boolean L2_S2_Message_Enable = false;
|
||||
public static List<String> L2_S2_Message;
|
||||
public static Boolean L2_S2_Permission_Enable = false;
|
||||
public static String L2_S2_Permission = "commandgui.use.gui1.line2.slot2";
|
||||
|
||||
public static Boolean L2_S3_Enable = false;
|
||||
public static String L2_S3_Item = "";
|
||||
public static String L2_S3_Name = "";
|
||||
public static List L2_S3_Lore = Arrays.asList();
|
||||
public static Boolean L2_S3_Cost_Enable = false;
|
||||
public static Double L2_S3_Price = 0.00;
|
||||
public static Boolean L2_S3_Command_Enable = false;
|
||||
public static Boolean L2_S3_CommandAsConsole = false;
|
||||
public static String L2_S3_Command = "";
|
||||
public static Boolean L2_S3_Message_Enable = false;
|
||||
public static List<String> L2_S3_Message;
|
||||
public static Boolean L2_S3_Permission_Enable = false;
|
||||
public static String L2_S3_Permission = "commandgui.use.gui1.line2.slot3";
|
||||
|
||||
public static Boolean L2_S4_Enable = false;
|
||||
public static String L2_S4_Item = "";
|
||||
public static String L2_S4_Name = "";
|
||||
public static List L2_S4_Lore = Arrays.asList();
|
||||
public static Boolean L2_S4_Cost_Enable = false;
|
||||
public static Double L2_S4_Price = 0.00;
|
||||
public static Boolean L2_S4_Command_Enable = false;
|
||||
public static Boolean L2_S4_CommandAsConsole = false;
|
||||
public static String L2_S4_Command = "";
|
||||
public static Boolean L2_S4_Message_Enable = false;
|
||||
public static List<String> L2_S4_Message;
|
||||
public static Boolean L2_S4_Permission_Enable = false;
|
||||
public static String L2_S4_Permission = "commandgui.use.gui1.line2.slot4";
|
||||
|
||||
public static Boolean L2_S5_Enable = false;
|
||||
public static String L2_S5_Item = "";
|
||||
public static String L2_S5_Name = "";
|
||||
public static List L2_S5_Lore = Arrays.asList();
|
||||
public static Boolean L2_S5_Cost_Enable = false;
|
||||
public static Double L2_S5_Price = 0.00;
|
||||
public static Boolean L2_S5_Command_Enable = false;
|
||||
public static Boolean L2_S5_CommandAsConsole = false;
|
||||
public static String L2_S5_Command = "";
|
||||
public static Boolean L2_S5_Message_Enable = false;
|
||||
public static List<String> L2_S5_Message;
|
||||
public static Boolean L2_S5_Permission_Enable = false;
|
||||
public static String L2_S5_Permission = "commandgui.use.gui1.line2.slot5";
|
||||
|
||||
public static Boolean L2_S6_Enable = false;
|
||||
public static String L2_S6_Item = "";
|
||||
public static String L2_S6_Name = "";
|
||||
public static List L2_S6_Lore = Arrays.asList();
|
||||
public static Boolean L2_S6_Cost_Enable = false;
|
||||
public static Double L2_S6_Price = 0.00;
|
||||
public static Boolean L2_S6_Command_Enable = false;
|
||||
public static Boolean L2_S6_CommandAsConsole = false;
|
||||
public static String L2_S6_Command = "";
|
||||
public static Boolean L2_S6_Message_Enable = false;
|
||||
public static List<String> L2_S6_Message;
|
||||
public static Boolean L2_S6_Permission_Enable = false;
|
||||
public static String L2_S6_Permission = "commandgui.use.gui1.line2.slot6";
|
||||
|
||||
public static Boolean L2_S7_Enable = false;
|
||||
public static String L2_S7_Item = "";
|
||||
public static String L2_S7_Name = "";
|
||||
public static List L2_S7_Lore = Arrays.asList();
|
||||
public static Boolean L2_S7_Cost_Enable = false;
|
||||
public static Double L2_S7_Price = 0.00;
|
||||
public static Boolean L2_S7_Command_Enable = false;
|
||||
public static Boolean L2_S7_CommandAsConsole = false;
|
||||
public static String L2_S7_Command = "";
|
||||
public static Boolean L2_S7_Message_Enable = false;
|
||||
public static List<String> L2_S7_Message;
|
||||
public static Boolean L2_S7_Permission_Enable = false;
|
||||
public static String L2_S7_Permission = "commandgui.use.gui1.line2.slot7";
|
||||
|
||||
public static Boolean L2_S8_Enable = false;
|
||||
public static String L2_S8_Item = "";
|
||||
public static String L2_S8_Name = "";
|
||||
public static List L2_S8_Lore = Arrays.asList();
|
||||
public static Boolean L2_S8_Cost_Enable = false;
|
||||
public static Double L2_S8_Price = 0.00;
|
||||
public static Boolean L2_S8_Command_Enable = false;
|
||||
public static Boolean L2_S8_CommandAsConsole = false;
|
||||
public static String L2_S8_Command = "";
|
||||
public static Boolean L2_S8_Message_Enable = false;
|
||||
public static List<String> L2_S8_Message;
|
||||
public static Boolean L2_S8_Permission_Enable = false;
|
||||
public static String L2_S8_Permission = "commandgui.use.gui1.line2.slot8";
|
||||
|
||||
public static Boolean L2_S9_Enable = false;
|
||||
public static String L2_S9_Item = "";
|
||||
public static String L2_S9_Name = "";
|
||||
public static List L2_S9_Lore = Arrays.asList();
|
||||
public static Boolean L2_S9_Cost_Enable = false;
|
||||
public static Double L2_S9_Price = 0.00;
|
||||
public static Boolean L2_S9_Command_Enable = false;
|
||||
public static Boolean L2_S9_CommandAsConsole = false;
|
||||
public static String L2_S9_Command = "";
|
||||
public static Boolean L2_S9_Message_Enable = false;
|
||||
public static List<String> L2_S9_Message;
|
||||
public static Boolean L2_S9_Permission_Enable = false;
|
||||
public static String L2_S9_Permission = "commandgui.use.gui1.line2.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line3
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L3_S1_Enable = false;
|
||||
public static String L3_S1_Item = "";
|
||||
public static String L3_S1_Name = "";
|
||||
public static List L3_S1_Lore = Arrays.asList();
|
||||
public static Boolean L3_S1_Cost_Enable = false;
|
||||
public static Double L3_S1_Price = 0.00;
|
||||
public static Boolean L3_S1_Command_Enable = false;
|
||||
public static Boolean L3_S1_CommandAsConsole = false;
|
||||
public static String L3_S1_Command = "";
|
||||
public static Boolean L3_S1_Message_Enable = false;
|
||||
public static List<String> L3_S1_Message;
|
||||
public static Boolean L3_S1_Permission_Enable = false;
|
||||
public static String L3_S1_Permission = "commandgui.use.gui1.line3.slot1";
|
||||
|
||||
public static Boolean L3_S2_Enable = false;
|
||||
public static String L3_S2_Item = "";
|
||||
public static String L3_S2_Name = "";
|
||||
public static List L3_S2_Lore = Arrays.asList();
|
||||
public static Boolean L3_S2_Cost_Enable = false;
|
||||
public static Double L3_S2_Price = 0.00;
|
||||
public static Boolean L3_S2_Command_Enable = false;
|
||||
public static Boolean L3_S2_CommandAsConsole = false;
|
||||
public static String L3_S2_Command = "";
|
||||
public static Boolean L3_S2_Message_Enable = false;
|
||||
public static List<String> L3_S2_Message;
|
||||
public static Boolean L3_S2_Permission_Enable = false;
|
||||
public static String L3_S2_Permission = "commandgui.use.gui1.line3.slot2";
|
||||
|
||||
public static Boolean L3_S3_Enable = false;
|
||||
public static String L3_S3_Item = "";
|
||||
public static String L3_S3_Name = "";
|
||||
public static List L3_S3_Lore = Arrays.asList();
|
||||
public static Boolean L3_S3_Cost_Enable = false;
|
||||
public static Double L3_S3_Price = 0.00;
|
||||
public static Boolean L3_S3_Command_Enable = false;
|
||||
public static Boolean L3_S3_CommandAsConsole = false;
|
||||
public static String L3_S3_Command = "";
|
||||
public static Boolean L3_S3_Message_Enable = false;
|
||||
public static List<String> L3_S3_Message;
|
||||
public static Boolean L3_S3_Permission_Enable = false;
|
||||
public static String L3_S3_Permission = "commandgui.use.gui1.line3.slot3";
|
||||
|
||||
public static Boolean L3_S4_Enable = false;
|
||||
public static String L3_S4_Item = "";
|
||||
public static String L3_S4_Name = "";
|
||||
public static List L3_S4_Lore = Arrays.asList();
|
||||
public static Boolean L3_S4_Cost_Enable = false;
|
||||
public static Double L3_S4_Price = 0.00;
|
||||
public static Boolean L3_S4_Command_Enable = false;
|
||||
public static Boolean L3_S4_CommandAsConsole = false;
|
||||
public static String L3_S4_Command = "";
|
||||
public static Boolean L3_S4_Message_Enable = false;
|
||||
public static List<String> L3_S4_Message;
|
||||
public static Boolean L3_S4_Permission_Enable = false;
|
||||
public static String L3_S4_Permission = "commandgui.use.gui1.line3.slot4";
|
||||
|
||||
public static Boolean L3_S5_Enable = false;
|
||||
public static String L3_S5_Item = "";
|
||||
public static String L3_S5_Name = "";
|
||||
public static List L3_S5_Lore = Arrays.asList();
|
||||
public static Boolean L3_S5_Cost_Enable = false;
|
||||
public static Double L3_S5_Price = 0.00;
|
||||
public static Boolean L3_S5_Command_Enable = false;
|
||||
public static Boolean L3_S5_CommandAsConsole = false;
|
||||
public static String L3_S5_Command = "";
|
||||
public static Boolean L3_S5_Message_Enable = false;
|
||||
public static List<String> L3_S5_Message;
|
||||
public static Boolean L3_S5_Permission_Enable = false;
|
||||
public static String L3_S5_Permission = "commandgui.use.gui1.line3.slot5";
|
||||
|
||||
public static Boolean L3_S6_Enable = false;
|
||||
public static String L3_S6_Item = "";
|
||||
public static String L3_S6_Name = "";
|
||||
public static List L3_S6_Lore = Arrays.asList();
|
||||
public static Boolean L3_S6_Cost_Enable = false;
|
||||
public static Double L3_S6_Price = 0.00;
|
||||
public static Boolean L3_S6_Command_Enable = false;
|
||||
public static Boolean L3_S6_CommandAsConsole = false;
|
||||
public static String L3_S6_Command = "";
|
||||
public static Boolean L3_S6_Message_Enable = false;
|
||||
public static List<String> L3_S6_Message;
|
||||
public static Boolean L3_S6_Permission_Enable = false;
|
||||
public static String L3_S6_Permission = "commandgui.use.gui1.line3.slot6";
|
||||
|
||||
public static Boolean L3_S7_Enable = false;
|
||||
public static String L3_S7_Item = "";
|
||||
public static String L3_S7_Name = "";
|
||||
public static List L3_S7_Lore = Arrays.asList();
|
||||
public static Boolean L3_S7_Cost_Enable = false;
|
||||
public static Double L3_S7_Price = 0.00;
|
||||
public static Boolean L3_S7_Command_Enable = false;
|
||||
public static Boolean L3_S7_CommandAsConsole = false;
|
||||
public static String L3_S7_Command = "";
|
||||
public static Boolean L3_S7_Message_Enable = false;
|
||||
public static List<String> L3_S7_Message;
|
||||
public static Boolean L3_S7_Permission_Enable = false;
|
||||
public static String L3_S7_Permission = "commandgui.use.gui1.line3.slot7";
|
||||
|
||||
public static Boolean L3_S8_Enable = false;
|
||||
public static String L3_S8_Item = "";
|
||||
public static String L3_S8_Name = "";
|
||||
public static List L3_S8_Lore = Arrays.asList();
|
||||
public static Boolean L3_S8_Cost_Enable = false;
|
||||
public static Double L3_S8_Price = 0.00;
|
||||
public static Boolean L3_S8_Command_Enable = false;
|
||||
public static Boolean L3_S8_CommandAsConsole = false;
|
||||
public static String L3_S8_Command = "";
|
||||
public static Boolean L3_S8_Message_Enable = false;
|
||||
public static List<String> L3_S8_Message;
|
||||
public static Boolean L3_S8_Permission_Enable = false;
|
||||
public static String L3_S8_Permission = "commandgui.use.gui1.line3.slot8";
|
||||
|
||||
public static Boolean L3_S9_Enable = false;
|
||||
public static String L3_S9_Item = "";
|
||||
public static String L3_S9_Name = "";
|
||||
public static List L3_S9_Lore = Arrays.asList();
|
||||
public static Boolean L3_S9_Cost_Enable = false;
|
||||
public static Double L3_S9_Price = 0.00;
|
||||
public static Boolean L3_S9_Command_Enable = false;
|
||||
public static Boolean L3_S9_CommandAsConsole = false;
|
||||
public static String L3_S9_Command = "";
|
||||
public static Boolean L3_S9_Message_Enable = false;
|
||||
public static List<String> L3_S9_Message;
|
||||
public static Boolean L3_S9_Permission_Enable = false;
|
||||
public static String L3_S9_Permission = "commandgui.use.gui1.line3.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line4
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L4_S1_Enable = false;
|
||||
public static String L4_S1_Item = "";
|
||||
public static String L4_S1_Name = "";
|
||||
public static List L4_S1_Lore = Arrays.asList();
|
||||
public static Boolean L4_S1_Cost_Enable = false;
|
||||
public static Double L4_S1_Price = 0.00;
|
||||
public static Boolean L4_S1_Command_Enable = false;
|
||||
public static Boolean L4_S1_CommandAsConsole = false;
|
||||
public static String L4_S1_Command = "";
|
||||
public static Boolean L4_S1_Message_Enable = false;
|
||||
public static List<String> L4_S1_Message;
|
||||
public static Boolean L4_S1_Permission_Enable = false;
|
||||
public static String L4_S1_Permission = "commandgui.use.gui1.line4.slot1";
|
||||
|
||||
public static Boolean L4_S2_Enable = false;
|
||||
public static String L4_S2_Item = "";
|
||||
public static String L4_S2_Name = "";
|
||||
public static List L4_S2_Lore = Arrays.asList();
|
||||
public static Boolean L4_S2_Cost_Enable = false;
|
||||
public static Double L4_S2_Price = 0.00;
|
||||
public static Boolean L4_S2_Command_Enable = false;
|
||||
public static Boolean L4_S2_CommandAsConsole = false;
|
||||
public static String L4_S2_Command = "";
|
||||
public static Boolean L4_S2_Message_Enable = false;
|
||||
public static List<String> L4_S2_Message;
|
||||
public static Boolean L4_S2_Permission_Enable = false;
|
||||
public static String L4_S2_Permission = "commandgui.use.gui1.line4.slot2";
|
||||
|
||||
public static Boolean L4_S3_Enable = false;
|
||||
public static String L4_S3_Item = "";
|
||||
public static String L4_S3_Name = "";
|
||||
public static List L4_S3_Lore = Arrays.asList();
|
||||
public static Boolean L4_S3_Cost_Enable = false;
|
||||
public static Double L4_S3_Price = 0.00;
|
||||
public static Boolean L4_S3_Command_Enable = false;
|
||||
public static Boolean L4_S3_CommandAsConsole = false;
|
||||
public static String L4_S3_Command = "";
|
||||
public static Boolean L4_S3_Message_Enable = false;
|
||||
public static List<String> L4_S3_Message;
|
||||
public static Boolean L4_S3_Permission_Enable = false;
|
||||
public static String L4_S3_Permission = "commandgui.use.gui1.line4.slot3";
|
||||
|
||||
public static Boolean L4_S4_Enable = false;
|
||||
public static String L4_S4_Item = "";
|
||||
public static String L4_S4_Name = "";
|
||||
public static List L4_S4_Lore = Arrays.asList();
|
||||
public static Boolean L4_S4_Cost_Enable = false;
|
||||
public static Double L4_S4_Price = 0.00;
|
||||
public static Boolean L4_S4_Command_Enable = false;
|
||||
public static Boolean L4_S4_CommandAsConsole = false;
|
||||
public static String L4_S4_Command = "";
|
||||
public static Boolean L4_S4_Message_Enable = false;
|
||||
public static List<String> L4_S4_Message;
|
||||
public static Boolean L4_S4_Permission_Enable = false;
|
||||
public static String L4_S4_Permission = "commandgui.use.gui1.line4.slot4";
|
||||
|
||||
public static Boolean L4_S5_Enable = false;
|
||||
public static String L4_S5_Item = "";
|
||||
public static String L4_S5_Name = "";
|
||||
public static List L4_S5_Lore = Arrays.asList();
|
||||
public static Boolean L4_S5_Cost_Enable = false;
|
||||
public static Double L4_S5_Price = 0.00;
|
||||
public static Boolean L4_S5_Command_Enable = false;
|
||||
public static Boolean L4_S5_CommandAsConsole = false;
|
||||
public static String L4_S5_Command = "";
|
||||
public static Boolean L4_S5_Message_Enable = false;
|
||||
public static List<String> L4_S5_Message;
|
||||
public static Boolean L4_S5_Permission_Enable = false;
|
||||
public static String L4_S5_Permission = "commandgui.use.gui1.line4.slot5";
|
||||
|
||||
public static Boolean L4_S6_Enable = false;
|
||||
public static String L4_S6_Item = "";
|
||||
public static String L4_S6_Name = "";
|
||||
public static List L4_S6_Lore = Arrays.asList();
|
||||
public static Boolean L4_S6_Cost_Enable = false;
|
||||
public static Double L4_S6_Price = 0.00;
|
||||
public static Boolean L4_S6_Command_Enable = false;
|
||||
public static Boolean L4_S6_CommandAsConsole = false;
|
||||
public static String L4_S6_Command = "";
|
||||
public static Boolean L4_S6_Message_Enable = false;
|
||||
public static List<String> L4_S6_Message;
|
||||
public static Boolean L4_S6_Permission_Enable = false;
|
||||
public static String L4_S6_Permission = "commandgui.use.gui1.line4.slot6";
|
||||
|
||||
public static Boolean L4_S7_Enable = false;
|
||||
public static String L4_S7_Item = "";
|
||||
public static String L4_S7_Name = "";
|
||||
public static List L4_S7_Lore = Arrays.asList();
|
||||
public static Boolean L4_S7_Cost_Enable = false;
|
||||
public static Double L4_S7_Price = 0.00;
|
||||
public static Boolean L4_S7_Command_Enable = false;
|
||||
public static Boolean L4_S7_CommandAsConsole = false;
|
||||
public static String L4_S7_Command = "";
|
||||
public static Boolean L4_S7_Message_Enable = false;
|
||||
public static List<String> L4_S7_Message;
|
||||
public static Boolean L4_S7_Permission_Enable = false;
|
||||
public static String L4_S7_Permission = "commandgui.use.gui1.line4.slot7";
|
||||
|
||||
public static Boolean L4_S8_Enable = false;
|
||||
public static String L4_S8_Item = "";
|
||||
public static String L4_S8_Name = "";
|
||||
public static List L4_S8_Lore = Arrays.asList();
|
||||
public static Boolean L4_S8_Cost_Enable = false;
|
||||
public static Double L4_S8_Price = 0.00;
|
||||
public static Boolean L4_S8_Command_Enable = false;
|
||||
public static Boolean L4_S8_CommandAsConsole = false;
|
||||
public static String L4_S8_Command = "";
|
||||
public static Boolean L4_S8_Message_Enable = false;
|
||||
public static List<String> L4_S8_Message;
|
||||
public static Boolean L4_S8_Permission_Enable = false;
|
||||
public static String L4_S8_Permission = "commandgui.use.gui1.line4.slot8";
|
||||
|
||||
public static Boolean L4_S9_Enable = false;
|
||||
public static String L4_S9_Item = "";
|
||||
public static String L4_S9_Name = "";
|
||||
public static List L4_S9_Lore = Arrays.asList();
|
||||
public static Boolean L4_S9_Cost_Enable = false;
|
||||
public static Double L4_S9_Price = 0.00;
|
||||
public static Boolean L4_S9_Command_Enable = false;
|
||||
public static Boolean L4_S9_CommandAsConsole = false;
|
||||
public static String L4_S9_Command = "";
|
||||
public static Boolean L4_S9_Message_Enable = false;
|
||||
public static List<String> L4_S9_Message;
|
||||
public static Boolean L4_S9_Permission_Enable = false;
|
||||
public static String L4_S9_Permission = "commandgui.use.gui1.line4.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line5
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L5_S1_Enable = false;
|
||||
public static String L5_S1_Item = "";
|
||||
public static String L5_S1_Name = "";
|
||||
public static List L5_S1_Lore = Arrays.asList();
|
||||
public static Boolean L5_S1_Cost_Enable = false;
|
||||
public static Double L5_S1_Price = 0.00;
|
||||
public static Boolean L5_S1_Command_Enable = false;
|
||||
public static Boolean L5_S1_CommandAsConsole = false;
|
||||
public static String L5_S1_Command = "";
|
||||
public static Boolean L5_S1_Message_Enable = false;
|
||||
public static List<String> L5_S1_Message;
|
||||
public static Boolean L5_S1_Permission_Enable = false;
|
||||
public static String L5_S1_Permission = "commandgui.use.gui1.line5.slot1";
|
||||
|
||||
public static Boolean L5_S2_Enable = false;
|
||||
public static String L5_S2_Item = "";
|
||||
public static String L5_S2_Name = "";
|
||||
public static List L5_S2_Lore = Arrays.asList();
|
||||
public static Boolean L5_S2_Cost_Enable = false;
|
||||
public static Double L5_S2_Price = 0.00;
|
||||
public static Boolean L5_S2_Command_Enable = false;
|
||||
public static Boolean L5_S2_CommandAsConsole = false;
|
||||
public static String L5_S2_Command = "";
|
||||
public static Boolean L5_S2_Message_Enable = false;
|
||||
public static List<String> L5_S2_Message;
|
||||
public static Boolean L5_S2_Permission_Enable = false;
|
||||
public static String L5_S2_Permission = "commandgui.use.gui1.line5.slot2";
|
||||
|
||||
public static Boolean L5_S3_Enable = false;
|
||||
public static String L5_S3_Item = "";
|
||||
public static String L5_S3_Name = "";
|
||||
public static List L5_S3_Lore = Arrays.asList();
|
||||
public static Boolean L5_S3_Cost_Enable = false;
|
||||
public static Double L5_S3_Price = 0.00;
|
||||
public static Boolean L5_S3_Command_Enable = false;
|
||||
public static Boolean L5_S3_CommandAsConsole = false;
|
||||
public static String L5_S3_Command = "";
|
||||
public static Boolean L5_S3_Message_Enable = false;
|
||||
public static List<String> L5_S3_Message;
|
||||
public static Boolean L5_S3_Permission_Enable = false;
|
||||
public static String L5_S3_Permission = "commandgui.use.gui1.line5.slot3";
|
||||
|
||||
public static Boolean L5_S4_Enable = false;
|
||||
public static String L5_S4_Item = "";
|
||||
public static String L5_S4_Name = "";
|
||||
public static List L5_S4_Lore = Arrays.asList();
|
||||
public static Boolean L5_S4_Cost_Enable = false;
|
||||
public static Double L5_S4_Price = 0.00;
|
||||
public static Boolean L5_S4_Command_Enable = false;
|
||||
public static Boolean L5_S4_CommandAsConsole = false;
|
||||
public static String L5_S4_Command = "";
|
||||
public static Boolean L5_S4_Message_Enable = false;
|
||||
public static List<String> L5_S4_Message;
|
||||
public static Boolean L5_S4_Permission_Enable = false;
|
||||
public static String L5_S4_Permission = "commandgui.use.gui1.line5.slot4";
|
||||
|
||||
public static Boolean L5_S5_Enable = false;
|
||||
public static String L5_S5_Item = "";
|
||||
public static String L5_S5_Name = "";
|
||||
public static List L5_S5_Lore = Arrays.asList();
|
||||
public static Boolean L5_S5_Cost_Enable = false;
|
||||
public static Double L5_S5_Price = 0.00;
|
||||
public static Boolean L5_S5_Command_Enable = false;
|
||||
public static Boolean L5_S5_CommandAsConsole = false;
|
||||
public static String L5_S5_Command = "";
|
||||
public static Boolean L5_S5_Message_Enable = false;
|
||||
public static List<String> L5_S5_Message;
|
||||
public static Boolean L5_S5_Permission_Enable = false;
|
||||
public static String L5_S5_Permission = "commandgui.use.gui1.line5.slot5";
|
||||
|
||||
public static Boolean L5_S6_Enable = false;
|
||||
public static String L5_S6_Item = "";
|
||||
public static String L5_S6_Name = "";
|
||||
public static List L5_S6_Lore = Arrays.asList();
|
||||
public static Boolean L5_S6_Cost_Enable = false;
|
||||
public static Double L5_S6_Price = 0.00;
|
||||
public static Boolean L5_S6_Command_Enable = false;
|
||||
public static Boolean L5_S6_CommandAsConsole = false;
|
||||
public static String L5_S6_Command = "";
|
||||
public static Boolean L5_S6_Message_Enable = false;
|
||||
public static List<String> L5_S6_Message;
|
||||
public static Boolean L5_S6_Permission_Enable = false;
|
||||
public static String L5_S6_Permission = "commandgui.use.gui1.line5.slot6";
|
||||
|
||||
public static Boolean L5_S7_Enable = false;
|
||||
public static String L5_S7_Item = "";
|
||||
public static String L5_S7_Name = "";
|
||||
public static List L5_S7_Lore = Arrays.asList();
|
||||
public static Boolean L5_S7_Cost_Enable = false;
|
||||
public static Double L5_S7_Price = 0.00;
|
||||
public static Boolean L5_S7_Command_Enable = false;
|
||||
public static Boolean L5_S7_CommandAsConsole = false;
|
||||
public static String L5_S7_Command = "";
|
||||
public static Boolean L5_S7_Message_Enable = false;
|
||||
public static List<String> L5_S7_Message;
|
||||
public static Boolean L5_S7_Permission_Enable = false;
|
||||
public static String L5_S7_Permission = "commandgui.use.gui1.line5.slot7";
|
||||
|
||||
public static Boolean L5_S8_Enable = false;
|
||||
public static String L5_S8_Item = "";
|
||||
public static String L5_S8_Name = "";
|
||||
public static List L5_S8_Lore = Arrays.asList();
|
||||
public static Boolean L5_S8_Cost_Enable = false;
|
||||
public static Double L5_S8_Price = 0.00;
|
||||
public static Boolean L5_S8_Command_Enable = false;
|
||||
public static Boolean L5_S8_CommandAsConsole = false;
|
||||
public static String L5_S8_Command = "";
|
||||
public static Boolean L5_S8_Message_Enable = false;
|
||||
public static List<String> L5_S8_Message;
|
||||
public static Boolean L5_S8_Permission_Enable = false;
|
||||
public static String L5_S8_Permission = "commandgui.use.gui1.line5.slot8";
|
||||
|
||||
public static Boolean L5_S9_Enable = false;
|
||||
public static String L5_S9_Item = "";
|
||||
public static String L5_S9_Name = "";
|
||||
public static List L5_S9_Lore = Arrays.asList();
|
||||
public static Boolean L5_S9_Cost_Enable = false;
|
||||
public static Double L5_S9_Price = 0.00;
|
||||
public static Boolean L5_S9_Command_Enable = false;
|
||||
public static Boolean L5_S9_CommandAsConsole = false;
|
||||
public static String L5_S9_Command = "";
|
||||
public static Boolean L5_S9_Message_Enable = false;
|
||||
public static List<String> L5_S9_Message;
|
||||
public static Boolean L5_S9_Permission_Enable = false;
|
||||
public static String L5_S9_Permission = "commandgui.use.gui1.line5.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line6
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L6_S1_Enable = false;
|
||||
public static String L6_S1_Item = "";
|
||||
public static String L6_S1_Name = "";
|
||||
public static List L6_S1_Lore = Arrays.asList();
|
||||
public static Boolean L6_S1_Cost_Enable = false;
|
||||
public static Double L6_S1_Price = 0.00;
|
||||
public static Boolean L6_S1_Command_Enable = false;
|
||||
public static Boolean L6_S1_CommandAsConsole = false;
|
||||
public static String L6_S1_Command = "";
|
||||
public static Boolean L6_S1_Message_Enable = false;
|
||||
public static List<String> L6_S1_Message;
|
||||
public static Boolean L6_S1_Permission_Enable = false;
|
||||
public static String L6_S1_Permission = "commandgui.use.gui1.line6.slot1";
|
||||
|
||||
public static Boolean L6_S2_Enable = false;
|
||||
public static String L6_S2_Item = "";
|
||||
public static String L6_S2_Name = "";
|
||||
public static List L6_S2_Lore = Arrays.asList();
|
||||
public static Boolean L6_S2_Cost_Enable = false;
|
||||
public static Double L6_S2_Price = 0.00;
|
||||
public static Boolean L6_S2_Command_Enable = false;
|
||||
public static Boolean L6_S2_CommandAsConsole = false;
|
||||
public static String L6_S2_Command = "";
|
||||
public static Boolean L6_S2_Message_Enable = false;
|
||||
public static List<String> L6_S2_Message;
|
||||
public static Boolean L6_S2_Permission_Enable = false;
|
||||
public static String L6_S2_Permission = "commandgui.use.gui1.line6.slot2";
|
||||
|
||||
public static Boolean L6_S3_Enable = false;
|
||||
public static String L6_S3_Item = "";
|
||||
public static String L6_S3_Name = "";
|
||||
public static List L6_S3_Lore = Arrays.asList();
|
||||
public static Boolean L6_S3_Cost_Enable = false;
|
||||
public static Double L6_S3_Price = 0.00;
|
||||
public static Boolean L6_S3_Command_Enable = false;
|
||||
public static Boolean L6_S3_CommandAsConsole = false;
|
||||
public static String L6_S3_Command = "";
|
||||
public static Boolean L6_S3_Message_Enable = false;
|
||||
public static List<String> L6_S3_Message;
|
||||
public static Boolean L6_S3_Permission_Enable = false;
|
||||
public static String L6_S3_Permission = "commandgui.use.gui1.line6.slot3";
|
||||
|
||||
public static Boolean L6_S4_Enable = false;
|
||||
public static String L6_S4_Item = "";
|
||||
public static String L6_S4_Name = "";
|
||||
public static List L6_S4_Lore = Arrays.asList();
|
||||
public static Boolean L6_S4_Cost_Enable = false;
|
||||
public static Double L6_S4_Price = 0.00;
|
||||
public static Boolean L6_S4_Command_Enable = false;
|
||||
public static Boolean L6_S4_CommandAsConsole = false;
|
||||
public static String L6_S4_Command = "";
|
||||
public static Boolean L6_S4_Message_Enable = false;
|
||||
public static List<String> L6_S4_Message;
|
||||
public static Boolean L6_S4_Permission_Enable = false;
|
||||
public static String L6_S4_Permission = "commandgui.use.gui1.line6.slot4";
|
||||
|
||||
public static Boolean L6_S5_Enable = false;
|
||||
public static String L6_S5_Item = "";
|
||||
public static String L6_S5_Name = "";
|
||||
public static List L6_S5_Lore = Arrays.asList();
|
||||
public static Boolean L6_S5_Cost_Enable = false;
|
||||
public static Double L6_S5_Price = 0.00;
|
||||
public static Boolean L6_S5_Command_Enable = false;
|
||||
public static Boolean L6_S5_CommandAsConsole = false;
|
||||
public static String L6_S5_Command = "";
|
||||
public static Boolean L6_S5_Message_Enable = false;
|
||||
public static List<String> L6_S5_Message;
|
||||
public static Boolean L6_S5_Permission_Enable = false;
|
||||
public static String L6_S5_Permission = "commandgui.use.gui1.line6.slot5";
|
||||
|
||||
public static Boolean L6_S6_Enable = false;
|
||||
public static String L6_S6_Item = "";
|
||||
public static String L6_S6_Name = "";
|
||||
public static List L6_S6_Lore = Arrays.asList();
|
||||
public static Boolean L6_S6_Cost_Enable = false;
|
||||
public static Double L6_S6_Price = 0.00;
|
||||
public static Boolean L6_S6_Command_Enable = false;
|
||||
public static Boolean L6_S6_CommandAsConsole = false;
|
||||
public static String L6_S6_Command = "";
|
||||
public static Boolean L6_S6_Message_Enable = false;
|
||||
public static List<String> L6_S6_Message;
|
||||
public static Boolean L6_S6_Permission_Enable = false;
|
||||
public static String L6_S6_Permission = "commandgui.use.gui1.line6.slot6";
|
||||
|
||||
public static Boolean L6_S7_Enable = false;
|
||||
public static String L6_S7_Item = "";
|
||||
public static String L6_S7_Name = "";
|
||||
public static List L6_S7_Lore = Arrays.asList();
|
||||
public static Boolean L6_S7_Cost_Enable = false;
|
||||
public static Double L6_S7_Price = 0.00;
|
||||
public static Boolean L6_S7_Command_Enable = false;
|
||||
public static Boolean L6_S7_CommandAsConsole = false;
|
||||
public static String L6_S7_Command = "";
|
||||
public static Boolean L6_S7_Message_Enable = false;
|
||||
public static List<String> L6_S7_Message;
|
||||
public static Boolean L6_S7_Permission_Enable = false;
|
||||
public static String L6_S7_Permission = "commandgui.use.gui1.line6.slot7";
|
||||
|
||||
public static Boolean L6_S8_Enable = false;
|
||||
public static String L6_S8_Item = "";
|
||||
public static String L6_S8_Name = "";
|
||||
public static List L6_S8_Lore = Arrays.asList();
|
||||
public static Boolean L6_S8_Cost_Enable = false;
|
||||
public static Double L6_S8_Price = 0.00;
|
||||
public static Boolean L6_S8_Command_Enable = false;
|
||||
public static Boolean L6_S8_CommandAsConsole = false;
|
||||
public static String L6_S8_Command = "";
|
||||
public static Boolean L6_S8_Message_Enable = false;
|
||||
public static List<String> L6_S8_Message;
|
||||
public static Boolean L6_S8_Permission_Enable = false;
|
||||
public static String L6_S8_Permission = "commandgui.use.gui1.line6.slot8";
|
||||
|
||||
public static Boolean L6_S9_Enable = false;
|
||||
public static String L6_S9_Item = "";
|
||||
public static String L6_S9_Name = "";
|
||||
public static List L6_S9_Lore = Arrays.asList();
|
||||
public static Boolean L6_S9_Cost_Enable = false;
|
||||
public static Double L6_S9_Price = 0.00;
|
||||
public static Boolean L6_S9_Command_Enable = false;
|
||||
public static Boolean L6_S9_CommandAsConsole = false;
|
||||
public static String L6_S9_Command = "";
|
||||
public static Boolean L6_S9_Message_Enable = false;
|
||||
public static List<String> L6_S9_Message;
|
||||
public static Boolean L6_S9_Permission_Enable = false;
|
||||
public static String L6_S9_Permission = "commandgui.use.gui1.line6.slot9";
|
||||
}
|
@@ -0,0 +1,833 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
// -----------------------------
|
||||
// _____ _____ _ _ _____
|
||||
// / ____/ ____| | | |_ _|
|
||||
// | | | | __| | | | | |
|
||||
// | | | | |_ | | | | | |
|
||||
// | |___| |__| | |__| |_| |_
|
||||
// \_____\_____|\____/|_____|
|
||||
// -----------------------------
|
||||
|
||||
package de.jatitv.commandgui.defaultValue;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class DefaultValue_GUI_2 {
|
||||
|
||||
public static Boolean GiveUseItemOnFirstJoin = false;
|
||||
public static Boolean GiveUseItemOnFirstJoin_Permission_Enable = false;
|
||||
|
||||
public static Boolean GUI_Enable = false;
|
||||
|
||||
public static String GiveUseItemOnFirstJoin_Permission = "commandgui.giveuseitemonfirstjoin.gui2";
|
||||
public static String UseItem_Item = "PAPER";
|
||||
public static String UseItem_Name = "§7Open the: [guiname]";
|
||||
public static List UseItem_Lore = Arrays.asList();
|
||||
|
||||
public static String Command = "GUI2";
|
||||
public static Boolean Command_Permission_Enable = true;
|
||||
|
||||
public static String GUIName = "§9GUI §52";
|
||||
public static Boolean FillItem_Enable = true;
|
||||
public static String FillItem = "BLACK_STAINED_GLASS_PANE";
|
||||
public static short FillItem_1_8 = 15;
|
||||
public static Integer GUILines = 1;
|
||||
|
||||
public static Boolean Permission_Enable = false;
|
||||
public static String Permission = "commandgui.use.gui2";
|
||||
|
||||
|
||||
/**
|
||||
* line1
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L1_S1_Enable = false;
|
||||
public static Boolean L1_S1_Playerhead = true;
|
||||
public static String L1_S1_Item = "";
|
||||
public static String L1_S1_Name = "";
|
||||
public static List L1_S1_Lore = Arrays.asList();
|
||||
public static Boolean L1_S1_Cost_Enable = false;
|
||||
public static Double L1_S1_Price = 0.00;
|
||||
public static Boolean L1_S1_Command_Enable = false;
|
||||
public static Boolean L1_S1_CommandAsConsole = false;
|
||||
public static String L1_S1_Command = "";
|
||||
public static Boolean L1_S1_Message_Enable = false;
|
||||
public static List<String> L1_S1_Message;
|
||||
public static Boolean L1_S1_Permission_Enable = false;
|
||||
public static String L1_S1_Permission = "commandgui.use.gui2.line1.slot1";
|
||||
|
||||
public static Boolean L1_S2_Enable = false;
|
||||
public static String L1_S2_Item = "";
|
||||
public static String L1_S2_Name = "";
|
||||
public static List L1_S2_Lore = Arrays.asList();
|
||||
public static Boolean L1_S2_Cost_Enable = false;
|
||||
public static Double L1_S2_Price = 0.00;
|
||||
public static Boolean L1_S2_Command_Enable = false;
|
||||
public static Boolean L1_S2_CommandAsConsole = false;
|
||||
public static String L1_S2_Command = "";
|
||||
public static Boolean L1_S2_Message_Enable = false;
|
||||
public static List<String> L1_S2_Message;
|
||||
public static Boolean L1_S2_Permission_Enable = false;
|
||||
public static String L1_S2_Permission = "commandgui.use.gui2.line1.slot2";
|
||||
|
||||
public static Boolean L1_S3_Enable = false;
|
||||
public static String L1_S3_Item = "";
|
||||
public static String L1_S3_Name = "";
|
||||
public static List L1_S3_Lore = Arrays.asList();
|
||||
public static Boolean L1_S3_Cost_Enable = false;
|
||||
public static Double L1_S3_Price = 0.00;
|
||||
public static Boolean L1_S3_Command_Enable = false;
|
||||
public static Boolean L1_S3_CommandAsConsole = false;
|
||||
public static String L1_S3_Command = "";
|
||||
public static Boolean L1_S3_Message_Enable = false;
|
||||
public static List<String> L1_S3_Message;
|
||||
public static Boolean L1_S3_Permission_Enable = false;
|
||||
public static String L1_S3_Permission = "commandgui.use.gui2.line1.slot3";
|
||||
|
||||
public static Boolean L1_S4_Enable = false;
|
||||
public static String L1_S4_Item = "";
|
||||
public static String L1_S4_Name = "";
|
||||
public static List L1_S4_Lore = Arrays.asList();
|
||||
public static Boolean L1_S4_Cost_Enable = false;
|
||||
public static Double L1_S4_Price = 0.00;
|
||||
public static Boolean L1_S4_Command_Enable = false;
|
||||
public static Boolean L1_S4_CommandAsConsole = false;
|
||||
public static String L1_S4_Command = "";
|
||||
public static Boolean L1_S4_Message_Enable = false;
|
||||
public static List<String> L1_S4_Message;
|
||||
public static Boolean L1_S4_Permission_Enable = false;
|
||||
public static String L1_S4_Permission = "commandgui.use.gui2.line1.slot4";
|
||||
|
||||
public static Boolean L1_S5_Enable = false;
|
||||
public static String L1_S5_Item = "";
|
||||
public static String L1_S5_Name = "";
|
||||
public static List L1_S5_Lore = Arrays.asList();
|
||||
public static Boolean L1_S5_Cost_Enable = false;
|
||||
public static Double L1_S5_Price = 0.00;
|
||||
public static Boolean L1_S5_Command_Enable = false;
|
||||
public static Boolean L1_S5_CommandAsConsole = false;
|
||||
public static String L1_S5_Command = "";
|
||||
public static Boolean L1_S5_Message_Enable = false;
|
||||
public static List<String> L1_S5_Message;
|
||||
public static Boolean L1_S5_Permission_Enable = false;
|
||||
public static String L1_S5_Permission = "commandgui.use.gui2.line1.slot5";
|
||||
|
||||
public static Boolean L1_S6_Enable = false;
|
||||
public static String L1_S6_Item = "";
|
||||
public static String L1_S6_Name = "";
|
||||
public static List L1_S6_Lore = Arrays.asList();
|
||||
public static Boolean L1_S6_Cost_Enable = false;
|
||||
public static Double L1_S6_Price = 0.00;
|
||||
public static Boolean L1_S6_Command_Enable = false;
|
||||
public static Boolean L1_S6_CommandAsConsole = false;
|
||||
public static String L1_S6_Command = "";
|
||||
public static Boolean L1_S6_Message_Enable = false;
|
||||
public static List<String> L1_S6_Message;
|
||||
public static Boolean L1_S6_Permission_Enable = false;
|
||||
public static String L1_S6_Permission = "commandgui.use.gui2.line1.slot6";
|
||||
|
||||
public static Boolean L1_S7_Enable = false;
|
||||
public static String L1_S7_Item = "";
|
||||
public static String L1_S7_Name = "";
|
||||
public static List L1_S7_Lore = Arrays.asList();
|
||||
public static Boolean L1_S7_Cost_Enable = false;
|
||||
public static Double L1_S7_Price = 0.00;
|
||||
public static Boolean L1_S7_Command_Enable = false;
|
||||
public static Boolean L1_S7_CommandAsConsole = false;
|
||||
public static String L1_S7_Command = "";
|
||||
public static Boolean L1_S7_Message_Enable = false;
|
||||
public static List<String> L1_S7_Message;
|
||||
public static Boolean L1_S7_Permission_Enable = false;
|
||||
public static String L1_S7_Permission = "commandgui.use.gui2.line1.slot7";
|
||||
|
||||
public static Boolean L1_S8_Enable = false;
|
||||
public static String L1_S8_Item = "";
|
||||
public static String L1_S8_Name = "";
|
||||
public static List L1_S8_Lore = Arrays.asList();
|
||||
public static Boolean L1_S8_Cost_Enable = false;
|
||||
public static Double L1_S8_Price = 0.00;
|
||||
public static Boolean L1_S8_Command_Enable = false;
|
||||
public static Boolean L1_S8_CommandAsConsole = false;
|
||||
public static String L1_S8_Command = "";
|
||||
public static Boolean L1_S8_Message_Enable = false;
|
||||
public static List<String> L1_S8_Message;
|
||||
public static Boolean L1_S8_Permission_Enable = false;
|
||||
public static String L1_S8_Permission = "commandgui.use.gui2.line1.slot8";
|
||||
|
||||
public static Boolean L1_S9_Enable = false;
|
||||
public static String L1_S9_Item = "";
|
||||
public static String L1_S9_Name = "";
|
||||
public static List L1_S9_Lore = Arrays.asList();
|
||||
public static Boolean L1_S9_Cost_Enable = false;
|
||||
public static Double L1_S9_Price = 0.00;
|
||||
public static Boolean L1_S9_Command_Enable = false;
|
||||
public static Boolean L1_S9_CommandAsConsole = false;
|
||||
public static String L1_S9_Command = "";
|
||||
public static Boolean L1_S9_Message_Enable = false;
|
||||
public static List<String> L1_S9_Message;
|
||||
public static Boolean L1_S9_Permission_Enable = false;
|
||||
public static String L1_S9_Permission = "commandgui.use.gui2.line1.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line2
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L2_S1_Enable = false;
|
||||
public static String L2_S1_Item = "";
|
||||
public static String L2_S1_Name = "";
|
||||
public static List L2_S1_Lore = Arrays.asList();
|
||||
public static Boolean L2_S1_Cost_Enable = false;
|
||||
public static Double L2_S1_Price = 0.00;
|
||||
public static Boolean L2_S1_Command_Enable = false;
|
||||
public static Boolean L2_S1_CommandAsConsole = false;
|
||||
public static String L2_S1_Command = "";
|
||||
public static Boolean L2_S1_Message_Enable = false;
|
||||
public static List<String> L2_S1_Message;
|
||||
public static Boolean L2_S1_Permission_Enable = false;
|
||||
public static String L2_S1_Permission = "commandgui.use.gui2.line2.slot1";
|
||||
|
||||
public static Boolean L2_S2_Enable = false;
|
||||
public static String L2_S2_Item = "";
|
||||
public static String L2_S2_Name = "";
|
||||
public static List L2_S2_Lore = Arrays.asList();
|
||||
public static Boolean L2_S2_Cost_Enable = false;
|
||||
public static Double L2_S2_Price = 0.00;
|
||||
public static Boolean L2_S2_Command_Enable = false;
|
||||
public static Boolean L2_S2_CommandAsConsole = false;
|
||||
public static String L2_S2_Command = "";
|
||||
public static Boolean L2_S2_Message_Enable = false;
|
||||
public static List<String> L2_S2_Message;
|
||||
public static Boolean L2_S2_Permission_Enable = false;
|
||||
public static String L2_S2_Permission = "commandgui.use.gui2.line2.slot2";
|
||||
|
||||
public static Boolean L2_S3_Enable = false;
|
||||
public static String L2_S3_Item = "";
|
||||
public static String L2_S3_Name = "";
|
||||
public static List L2_S3_Lore = Arrays.asList();
|
||||
public static Boolean L2_S3_Cost_Enable = false;
|
||||
public static Double L2_S3_Price = 0.00;
|
||||
public static Boolean L2_S3_Command_Enable = false;
|
||||
public static Boolean L2_S3_CommandAsConsole = false;
|
||||
public static String L2_S3_Command = "";
|
||||
public static Boolean L2_S3_Message_Enable = false;
|
||||
public static List<String> L2_S3_Message;
|
||||
public static Boolean L2_S3_Permission_Enable = false;
|
||||
public static String L2_S3_Permission = "commandgui.use.gui2.line2.slot3";
|
||||
|
||||
public static Boolean L2_S4_Enable = false;
|
||||
public static String L2_S4_Item = "";
|
||||
public static String L2_S4_Name = "";
|
||||
public static List L2_S4_Lore = Arrays.asList();
|
||||
public static Boolean L2_S4_Cost_Enable = false;
|
||||
public static Double L2_S4_Price = 0.00;
|
||||
public static Boolean L2_S4_Command_Enable = false;
|
||||
public static Boolean L2_S4_CommandAsConsole = false;
|
||||
public static String L2_S4_Command = "";
|
||||
public static Boolean L2_S4_Message_Enable = false;
|
||||
public static List<String> L2_S4_Message;
|
||||
public static Boolean L2_S4_Permission_Enable = false;
|
||||
public static String L2_S4_Permission = "commandgui.use.gui2.line2.slot4";
|
||||
|
||||
public static Boolean L2_S5_Enable = false;
|
||||
public static String L2_S5_Item = "";
|
||||
public static String L2_S5_Name = "";
|
||||
public static List L2_S5_Lore = Arrays.asList();
|
||||
public static Boolean L2_S5_Cost_Enable = false;
|
||||
public static Double L2_S5_Price = 0.00;
|
||||
public static Boolean L2_S5_Command_Enable = false;
|
||||
public static Boolean L2_S5_CommandAsConsole = false;
|
||||
public static String L2_S5_Command = "";
|
||||
public static Boolean L2_S5_Message_Enable = false;
|
||||
public static List<String> L2_S5_Message;
|
||||
public static Boolean L2_S5_Permission_Enable = false;
|
||||
public static String L2_S5_Permission = "commandgui.use.gui2.line2.slot5";
|
||||
|
||||
public static Boolean L2_S6_Enable = false;
|
||||
public static String L2_S6_Item = "";
|
||||
public static String L2_S6_Name = "";
|
||||
public static List L2_S6_Lore = Arrays.asList();
|
||||
public static Boolean L2_S6_Cost_Enable = false;
|
||||
public static Double L2_S6_Price = 0.00;
|
||||
public static Boolean L2_S6_Command_Enable = false;
|
||||
public static Boolean L2_S6_CommandAsConsole = false;
|
||||
public static String L2_S6_Command = "";
|
||||
public static Boolean L2_S6_Message_Enable = false;
|
||||
public static List<String> L2_S6_Message;
|
||||
public static Boolean L2_S6_Permission_Enable = false;
|
||||
public static String L2_S6_Permission = "commandgui.use.gui2.line2.slot6";
|
||||
|
||||
public static Boolean L2_S7_Enable = false;
|
||||
public static String L2_S7_Item = "";
|
||||
public static String L2_S7_Name = "";
|
||||
public static List L2_S7_Lore = Arrays.asList();
|
||||
public static Boolean L2_S7_Cost_Enable = false;
|
||||
public static Double L2_S7_Price = 0.00;
|
||||
public static Boolean L2_S7_Command_Enable = false;
|
||||
public static Boolean L2_S7_CommandAsConsole = false;
|
||||
public static String L2_S7_Command = "";
|
||||
public static Boolean L2_S7_Message_Enable = false;
|
||||
public static List<String> L2_S7_Message;
|
||||
public static Boolean L2_S7_Permission_Enable = false;
|
||||
public static String L2_S7_Permission = "commandgui.use.gui2.line2.slot7";
|
||||
|
||||
public static Boolean L2_S8_Enable = false;
|
||||
public static String L2_S8_Item = "";
|
||||
public static String L2_S8_Name = "";
|
||||
public static List L2_S8_Lore = Arrays.asList();
|
||||
public static Boolean L2_S8_Cost_Enable = false;
|
||||
public static Double L2_S8_Price = 0.00;
|
||||
public static Boolean L2_S8_Command_Enable = false;
|
||||
public static Boolean L2_S8_CommandAsConsole = false;
|
||||
public static String L2_S8_Command = "";
|
||||
public static Boolean L2_S8_Message_Enable = false;
|
||||
public static List<String> L2_S8_Message;
|
||||
public static Boolean L2_S8_Permission_Enable = false;
|
||||
public static String L2_S8_Permission = "commandgui.use.gui2.line2.slot8";
|
||||
|
||||
public static Boolean L2_S9_Enable = false;
|
||||
public static String L2_S9_Item = "";
|
||||
public static String L2_S9_Name = "";
|
||||
public static List L2_S9_Lore = Arrays.asList();
|
||||
public static Boolean L2_S9_Cost_Enable = false;
|
||||
public static Double L2_S9_Price = 0.00;
|
||||
public static Boolean L2_S9_Command_Enable = false;
|
||||
public static Boolean L2_S9_CommandAsConsole = false;
|
||||
public static String L2_S9_Command = "";
|
||||
public static Boolean L2_S9_Message_Enable = false;
|
||||
public static List<String> L2_S9_Message;
|
||||
public static Boolean L2_S9_Permission_Enable = false;
|
||||
public static String L2_S9_Permission = "commandgui.use.gui2.line2.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line3
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L3_S1_Enable = false;
|
||||
public static String L3_S1_Item = "";
|
||||
public static String L3_S1_Name = "";
|
||||
public static List L3_S1_Lore = Arrays.asList();
|
||||
public static Boolean L3_S1_Cost_Enable = false;
|
||||
public static Double L3_S1_Price = 0.00;
|
||||
public static Boolean L3_S1_Command_Enable = false;
|
||||
public static Boolean L3_S1_CommandAsConsole = false;
|
||||
public static String L3_S1_Command = "";
|
||||
public static Boolean L3_S1_Message_Enable = false;
|
||||
public static List<String> L3_S1_Message;
|
||||
public static Boolean L3_S1_Permission_Enable = false;
|
||||
public static String L3_S1_Permission = "commandgui.use.gui2.line3.slot1";
|
||||
|
||||
public static Boolean L3_S2_Enable = false;
|
||||
public static String L3_S2_Item = "";
|
||||
public static String L3_S2_Name = "";
|
||||
public static List L3_S2_Lore = Arrays.asList();
|
||||
public static Boolean L3_S2_Cost_Enable = false;
|
||||
public static Double L3_S2_Price = 0.00;
|
||||
public static Boolean L3_S2_Command_Enable = false;
|
||||
public static Boolean L3_S2_CommandAsConsole = false;
|
||||
public static String L3_S2_Command = "";
|
||||
public static Boolean L3_S2_Message_Enable = false;
|
||||
public static List<String> L3_S2_Message;
|
||||
public static Boolean L3_S2_Permission_Enable = false;
|
||||
public static String L3_S2_Permission = "commandgui.use.gui2.line3.slot2";
|
||||
|
||||
public static Boolean L3_S3_Enable = false;
|
||||
public static String L3_S3_Item = "";
|
||||
public static String L3_S3_Name = "";
|
||||
public static List L3_S3_Lore = Arrays.asList();
|
||||
public static Boolean L3_S3_Cost_Enable = false;
|
||||
public static Double L3_S3_Price = 0.00;
|
||||
public static Boolean L3_S3_Command_Enable = false;
|
||||
public static Boolean L3_S3_CommandAsConsole = false;
|
||||
public static String L3_S3_Command = "";
|
||||
public static Boolean L3_S3_Message_Enable = false;
|
||||
public static List<String> L3_S3_Message;
|
||||
public static Boolean L3_S3_Permission_Enable = false;
|
||||
public static String L3_S3_Permission = "commandgui.use.gui2.line3.slot3";
|
||||
|
||||
public static Boolean L3_S4_Enable = false;
|
||||
public static String L3_S4_Item = "";
|
||||
public static String L3_S4_Name = "";
|
||||
public static List L3_S4_Lore = Arrays.asList();
|
||||
public static Boolean L3_S4_Cost_Enable = false;
|
||||
public static Double L3_S4_Price = 0.00;
|
||||
public static Boolean L3_S4_Command_Enable = false;
|
||||
public static Boolean L3_S4_CommandAsConsole = false;
|
||||
public static String L3_S4_Command = "";
|
||||
public static Boolean L3_S4_Message_Enable = false;
|
||||
public static List<String> L3_S4_Message;
|
||||
public static Boolean L3_S4_Permission_Enable = false;
|
||||
public static String L3_S4_Permission = "commandgui.use.gui2.line3.slot4";
|
||||
|
||||
public static Boolean L3_S5_Enable = false;
|
||||
public static String L3_S5_Item = "";
|
||||
public static String L3_S5_Name = "";
|
||||
public static List L3_S5_Lore = Arrays.asList();
|
||||
public static Boolean L3_S5_Cost_Enable = false;
|
||||
public static Double L3_S5_Price = 0.00;
|
||||
public static Boolean L3_S5_Command_Enable = false;
|
||||
public static Boolean L3_S5_CommandAsConsole = false;
|
||||
public static String L3_S5_Command = "";
|
||||
public static Boolean L3_S5_Message_Enable = false;
|
||||
public static List<String> L3_S5_Message;
|
||||
public static Boolean L3_S5_Permission_Enable = false;
|
||||
public static String L3_S5_Permission = "commandgui.use.gui2.line3.slot5";
|
||||
|
||||
public static Boolean L3_S6_Enable = false;
|
||||
public static String L3_S6_Item = "";
|
||||
public static String L3_S6_Name = "";
|
||||
public static List L3_S6_Lore = Arrays.asList();
|
||||
public static Boolean L3_S6_Cost_Enable = false;
|
||||
public static Double L3_S6_Price = 0.00;
|
||||
public static Boolean L3_S6_Command_Enable = false;
|
||||
public static Boolean L3_S6_CommandAsConsole = false;
|
||||
public static String L3_S6_Command = "";
|
||||
public static Boolean L3_S6_Message_Enable = false;
|
||||
public static List<String> L3_S6_Message;
|
||||
public static Boolean L3_S6_Permission_Enable = false;
|
||||
public static String L3_S6_Permission = "commandgui.use.gui2.line3.slot6";
|
||||
|
||||
public static Boolean L3_S7_Enable = false;
|
||||
public static String L3_S7_Item = "";
|
||||
public static String L3_S7_Name = "";
|
||||
public static List L3_S7_Lore = Arrays.asList();
|
||||
public static Boolean L3_S7_Cost_Enable = false;
|
||||
public static Double L3_S7_Price = 0.00;
|
||||
public static Boolean L3_S7_Command_Enable = false;
|
||||
public static Boolean L3_S7_CommandAsConsole = false;
|
||||
public static String L3_S7_Command = "";
|
||||
public static Boolean L3_S7_Message_Enable = false;
|
||||
public static List<String> L3_S7_Message;
|
||||
public static Boolean L3_S7_Permission_Enable = false;
|
||||
public static String L3_S7_Permission = "commandgui.use.gui2.line3.slot7";
|
||||
|
||||
public static Boolean L3_S8_Enable = false;
|
||||
public static String L3_S8_Item = "";
|
||||
public static String L3_S8_Name = "";
|
||||
public static List L3_S8_Lore = Arrays.asList();
|
||||
public static Boolean L3_S8_Cost_Enable = false;
|
||||
public static Double L3_S8_Price = 0.00;
|
||||
public static Boolean L3_S8_Command_Enable = false;
|
||||
public static Boolean L3_S8_CommandAsConsole = false;
|
||||
public static String L3_S8_Command = "";
|
||||
public static Boolean L3_S8_Message_Enable = false;
|
||||
public static List<String> L3_S8_Message;
|
||||
public static Boolean L3_S8_Permission_Enable = false;
|
||||
public static String L3_S8_Permission = "commandgui.use.gui2.line3.slot8";
|
||||
|
||||
public static Boolean L3_S9_Enable = false;
|
||||
public static String L3_S9_Item = "";
|
||||
public static String L3_S9_Name = "";
|
||||
public static List L3_S9_Lore = Arrays.asList();
|
||||
public static Boolean L3_S9_Cost_Enable = false;
|
||||
public static Double L3_S9_Price = 0.00;
|
||||
public static Boolean L3_S9_Command_Enable = false;
|
||||
public static Boolean L3_S9_CommandAsConsole = false;
|
||||
public static String L3_S9_Command = "";
|
||||
public static Boolean L3_S9_Message_Enable = false;
|
||||
public static List<String> L3_S9_Message;
|
||||
public static Boolean L3_S9_Permission_Enable = false;
|
||||
public static String L3_S9_Permission = "commandgui.use.gui2.line3.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line4
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L4_S1_Enable = false;
|
||||
public static String L4_S1_Item = "";
|
||||
public static String L4_S1_Name = "";
|
||||
public static List L4_S1_Lore = Arrays.asList();
|
||||
public static Boolean L4_S1_Cost_Enable = false;
|
||||
public static Double L4_S1_Price = 0.00;
|
||||
public static Boolean L4_S1_Command_Enable = false;
|
||||
public static Boolean L4_S1_CommandAsConsole = false;
|
||||
public static String L4_S1_Command = "";
|
||||
public static Boolean L4_S1_Message_Enable = false;
|
||||
public static List<String> L4_S1_Message;
|
||||
public static Boolean L4_S1_Permission_Enable = false;
|
||||
public static String L4_S1_Permission = "commandgui.use.gui2.line4.slot1";
|
||||
|
||||
public static Boolean L4_S2_Enable = false;
|
||||
public static String L4_S2_Item = "";
|
||||
public static String L4_S2_Name = "";
|
||||
public static List L4_S2_Lore = Arrays.asList();
|
||||
public static Boolean L4_S2_Cost_Enable = false;
|
||||
public static Double L4_S2_Price = 0.00;
|
||||
public static Boolean L4_S2_Command_Enable = false;
|
||||
public static Boolean L4_S2_CommandAsConsole = false;
|
||||
public static String L4_S2_Command = "";
|
||||
public static Boolean L4_S2_Message_Enable = false;
|
||||
public static List<String> L4_S2_Message;
|
||||
public static Boolean L4_S2_Permission_Enable = false;
|
||||
public static String L4_S2_Permission = "commandgui.use.gui2.line4.slot2";
|
||||
|
||||
public static Boolean L4_S3_Enable = false;
|
||||
public static String L4_S3_Item = "";
|
||||
public static String L4_S3_Name = "";
|
||||
public static List L4_S3_Lore = Arrays.asList();
|
||||
public static Boolean L4_S3_Cost_Enable = false;
|
||||
public static Double L4_S3_Price = 0.00;
|
||||
public static Boolean L4_S3_Command_Enable = false;
|
||||
public static Boolean L4_S3_CommandAsConsole = false;
|
||||
public static String L4_S3_Command = "";
|
||||
public static Boolean L4_S3_Message_Enable = false;
|
||||
public static List<String> L4_S3_Message;
|
||||
public static Boolean L4_S3_Permission_Enable = false;
|
||||
public static String L4_S3_Permission = "commandgui.use.gui2.line4.slot3";
|
||||
|
||||
public static Boolean L4_S4_Enable = false;
|
||||
public static String L4_S4_Item = "";
|
||||
public static String L4_S4_Name = "";
|
||||
public static List L4_S4_Lore = Arrays.asList();
|
||||
public static Boolean L4_S4_Cost_Enable = false;
|
||||
public static Double L4_S4_Price = 0.00;
|
||||
public static Boolean L4_S4_Command_Enable = false;
|
||||
public static Boolean L4_S4_CommandAsConsole = false;
|
||||
public static String L4_S4_Command = "";
|
||||
public static Boolean L4_S4_Message_Enable = false;
|
||||
public static List<String> L4_S4_Message;
|
||||
public static Boolean L4_S4_Permission_Enable = false;
|
||||
public static String L4_S4_Permission = "commandgui.use.gui2.line4.slot4";
|
||||
|
||||
public static Boolean L4_S5_Enable = false;
|
||||
public static String L4_S5_Item = "";
|
||||
public static String L4_S5_Name = "";
|
||||
public static List L4_S5_Lore = Arrays.asList();
|
||||
public static Boolean L4_S5_Cost_Enable = false;
|
||||
public static Double L4_S5_Price = 0.00;
|
||||
public static Boolean L4_S5_Command_Enable = false;
|
||||
public static Boolean L4_S5_CommandAsConsole = false;
|
||||
public static String L4_S5_Command = "";
|
||||
public static Boolean L4_S5_Message_Enable = false;
|
||||
public static List<String> L4_S5_Message;
|
||||
public static Boolean L4_S5_Permission_Enable = false;
|
||||
public static String L4_S5_Permission = "commandgui.use.gui2.line4.slot5";
|
||||
|
||||
public static Boolean L4_S6_Enable = false;
|
||||
public static String L4_S6_Item = "";
|
||||
public static String L4_S6_Name = "";
|
||||
public static List L4_S6_Lore = Arrays.asList();
|
||||
public static Boolean L4_S6_Cost_Enable = false;
|
||||
public static Double L4_S6_Price = 0.00;
|
||||
public static Boolean L4_S6_Command_Enable = false;
|
||||
public static Boolean L4_S6_CommandAsConsole = false;
|
||||
public static String L4_S6_Command = "";
|
||||
public static Boolean L4_S6_Message_Enable = false;
|
||||
public static List<String> L4_S6_Message;
|
||||
public static Boolean L4_S6_Permission_Enable = false;
|
||||
public static String L4_S6_Permission = "commandgui.use.gui2.line4.slot6";
|
||||
|
||||
public static Boolean L4_S7_Enable = false;
|
||||
public static String L4_S7_Item = "";
|
||||
public static String L4_S7_Name = "";
|
||||
public static List L4_S7_Lore = Arrays.asList();
|
||||
public static Boolean L4_S7_Cost_Enable = false;
|
||||
public static Double L4_S7_Price = 0.00;
|
||||
public static Boolean L4_S7_Command_Enable = false;
|
||||
public static Boolean L4_S7_CommandAsConsole = false;
|
||||
public static String L4_S7_Command = "";
|
||||
public static Boolean L4_S7_Message_Enable = false;
|
||||
public static List<String> L4_S7_Message;
|
||||
public static Boolean L4_S7_Permission_Enable = false;
|
||||
public static String L4_S7_Permission = "commandgui.use.gui2.line4.slot7";
|
||||
|
||||
public static Boolean L4_S8_Enable = false;
|
||||
public static String L4_S8_Item = "";
|
||||
public static String L4_S8_Name = "";
|
||||
public static List L4_S8_Lore = Arrays.asList();
|
||||
public static Boolean L4_S8_Cost_Enable = false;
|
||||
public static Double L4_S8_Price = 0.00;
|
||||
public static Boolean L4_S8_Command_Enable = false;
|
||||
public static Boolean L4_S8_CommandAsConsole = false;
|
||||
public static String L4_S8_Command = "";
|
||||
public static Boolean L4_S8_Message_Enable = false;
|
||||
public static List<String> L4_S8_Message;
|
||||
public static Boolean L4_S8_Permission_Enable = false;
|
||||
public static String L4_S8_Permission = "commandgui.use.gui2.line4.slot8";
|
||||
|
||||
public static Boolean L4_S9_Enable = false;
|
||||
public static String L4_S9_Item = "";
|
||||
public static String L4_S9_Name = "";
|
||||
public static List L4_S9_Lore = Arrays.asList();
|
||||
public static Boolean L4_S9_Cost_Enable = false;
|
||||
public static Double L4_S9_Price = 0.00;
|
||||
public static Boolean L4_S9_Command_Enable = false;
|
||||
public static Boolean L4_S9_CommandAsConsole = false;
|
||||
public static String L4_S9_Command = "";
|
||||
public static Boolean L4_S9_Message_Enable = false;
|
||||
public static List<String> L4_S9_Message;
|
||||
public static Boolean L4_S9_Permission_Enable = false;
|
||||
public static String L4_S9_Permission = "commandgui.use.gui2.line4.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line5
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L5_S1_Enable = false;
|
||||
public static String L5_S1_Item = "";
|
||||
public static String L5_S1_Name = "";
|
||||
public static List L5_S1_Lore = Arrays.asList();
|
||||
public static Boolean L5_S1_Cost_Enable = false;
|
||||
public static Double L5_S1_Price = 0.00;
|
||||
public static Boolean L5_S1_Command_Enable = false;
|
||||
public static Boolean L5_S1_CommandAsConsole = false;
|
||||
public static String L5_S1_Command = "";
|
||||
public static Boolean L5_S1_Message_Enable = false;
|
||||
public static List<String> L5_S1_Message;
|
||||
public static Boolean L5_S1_Permission_Enable = false;
|
||||
public static String L5_S1_Permission = "commandgui.use.gui2.line5.slot1";
|
||||
|
||||
public static Boolean L5_S2_Enable = false;
|
||||
public static String L5_S2_Item = "";
|
||||
public static String L5_S2_Name = "";
|
||||
public static List L5_S2_Lore = Arrays.asList();
|
||||
public static Boolean L5_S2_Cost_Enable = false;
|
||||
public static Double L5_S2_Price = 0.00;
|
||||
public static Boolean L5_S2_Command_Enable = false;
|
||||
public static Boolean L5_S2_CommandAsConsole = false;
|
||||
public static String L5_S2_Command = "";
|
||||
public static Boolean L5_S2_Message_Enable = false;
|
||||
public static List<String> L5_S2_Message;
|
||||
public static Boolean L5_S2_Permission_Enable = false;
|
||||
public static String L5_S2_Permission = "commandgui.use.gui2.line5.slot2";
|
||||
|
||||
public static Boolean L5_S3_Enable = false;
|
||||
public static String L5_S3_Item = "";
|
||||
public static String L5_S3_Name = "";
|
||||
public static List L5_S3_Lore = Arrays.asList();
|
||||
public static Boolean L5_S3_Cost_Enable = false;
|
||||
public static Double L5_S3_Price = 0.00;
|
||||
public static Boolean L5_S3_Command_Enable = false;
|
||||
public static Boolean L5_S3_CommandAsConsole = false;
|
||||
public static String L5_S3_Command = "";
|
||||
public static Boolean L5_S3_Message_Enable = false;
|
||||
public static List<String> L5_S3_Message;
|
||||
public static Boolean L5_S3_Permission_Enable = false;
|
||||
public static String L5_S3_Permission = "commandgui.use.gui2.line5.slot3";
|
||||
|
||||
public static Boolean L5_S4_Enable = false;
|
||||
public static String L5_S4_Item = "";
|
||||
public static String L5_S4_Name = "";
|
||||
public static List L5_S4_Lore = Arrays.asList();
|
||||
public static Boolean L5_S4_Cost_Enable = false;
|
||||
public static Double L5_S4_Price = 0.00;
|
||||
public static Boolean L5_S4_Command_Enable = false;
|
||||
public static Boolean L5_S4_CommandAsConsole = false;
|
||||
public static String L5_S4_Command = "";
|
||||
public static Boolean L5_S4_Message_Enable = false;
|
||||
public static List<String> L5_S4_Message;
|
||||
public static Boolean L5_S4_Permission_Enable = false;
|
||||
public static String L5_S4_Permission = "commandgui.use.gui2.line5.slot4";
|
||||
|
||||
public static Boolean L5_S5_Enable = false;
|
||||
public static String L5_S5_Item = "";
|
||||
public static String L5_S5_Name = "";
|
||||
public static List L5_S5_Lore = Arrays.asList();
|
||||
public static Boolean L5_S5_Cost_Enable = false;
|
||||
public static Double L5_S5_Price = 0.00;
|
||||
public static Boolean L5_S5_Command_Enable = false;
|
||||
public static Boolean L5_S5_CommandAsConsole = false;
|
||||
public static String L5_S5_Command = "";
|
||||
public static Boolean L5_S5_Message_Enable = false;
|
||||
public static List<String> L5_S5_Message;
|
||||
public static Boolean L5_S5_Permission_Enable = false;
|
||||
public static String L5_S5_Permission = "commandgui.use.gui2.line5.slot5";
|
||||
|
||||
public static Boolean L5_S6_Enable = false;
|
||||
public static String L5_S6_Item = "";
|
||||
public static String L5_S6_Name = "";
|
||||
public static List L5_S6_Lore = Arrays.asList();
|
||||
public static Boolean L5_S6_Cost_Enable = false;
|
||||
public static Double L5_S6_Price = 0.00;
|
||||
public static Boolean L5_S6_Command_Enable = false;
|
||||
public static Boolean L5_S6_CommandAsConsole = false;
|
||||
public static String L5_S6_Command = "";
|
||||
public static Boolean L5_S6_Message_Enable = false;
|
||||
public static List<String> L5_S6_Message;
|
||||
public static Boolean L5_S6_Permission_Enable = false;
|
||||
public static String L5_S6_Permission = "commandgui.use.gui2.line5.slot6";
|
||||
|
||||
public static Boolean L5_S7_Enable = false;
|
||||
public static String L5_S7_Item = "";
|
||||
public static String L5_S7_Name = "";
|
||||
public static List L5_S7_Lore = Arrays.asList();
|
||||
public static Boolean L5_S7_Cost_Enable = false;
|
||||
public static Double L5_S7_Price = 0.00;
|
||||
public static Boolean L5_S7_Command_Enable = false;
|
||||
public static Boolean L5_S7_CommandAsConsole = false;
|
||||
public static String L5_S7_Command = "";
|
||||
public static Boolean L5_S7_Message_Enable = false;
|
||||
public static List<String> L5_S7_Message;
|
||||
public static Boolean L5_S7_Permission_Enable = false;
|
||||
public static String L5_S7_Permission = "commandgui.use.gui2.line5.slot7";
|
||||
|
||||
public static Boolean L5_S8_Enable = false;
|
||||
public static String L5_S8_Item = "";
|
||||
public static String L5_S8_Name = "";
|
||||
public static List L5_S8_Lore = Arrays.asList();
|
||||
public static Boolean L5_S8_Cost_Enable = false;
|
||||
public static Double L5_S8_Price = 0.00;
|
||||
public static Boolean L5_S8_Command_Enable = false;
|
||||
public static Boolean L5_S8_CommandAsConsole = false;
|
||||
public static String L5_S8_Command = "";
|
||||
public static Boolean L5_S8_Message_Enable = false;
|
||||
public static List<String> L5_S8_Message;
|
||||
public static Boolean L5_S8_Permission_Enable = false;
|
||||
public static String L5_S8_Permission = "commandgui.use.gui2.line5.slot8";
|
||||
|
||||
public static Boolean L5_S9_Enable = false;
|
||||
public static String L5_S9_Item = "";
|
||||
public static String L5_S9_Name = "";
|
||||
public static List L5_S9_Lore = Arrays.asList();
|
||||
public static Boolean L5_S9_Cost_Enable = false;
|
||||
public static Double L5_S9_Price = 0.00;
|
||||
public static Boolean L5_S9_Command_Enable = false;
|
||||
public static Boolean L5_S9_CommandAsConsole = false;
|
||||
public static String L5_S9_Command = "";
|
||||
public static Boolean L5_S9_Message_Enable = false;
|
||||
public static List<String> L5_S9_Message;
|
||||
public static Boolean L5_S9_Permission_Enable = false;
|
||||
public static String L5_S9_Permission = "commandgui.use.gui2.line5.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line6
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L6_S1_Enable = false;
|
||||
public static String L6_S1_Item = "";
|
||||
public static String L6_S1_Name = "";
|
||||
public static List L6_S1_Lore = Arrays.asList();
|
||||
public static Boolean L6_S1_Cost_Enable = false;
|
||||
public static Double L6_S1_Price = 0.00;
|
||||
public static Boolean L6_S1_Command_Enable = false;
|
||||
public static Boolean L6_S1_CommandAsConsole = false;
|
||||
public static String L6_S1_Command = "";
|
||||
public static Boolean L6_S1_Message_Enable = false;
|
||||
public static List<String> L6_S1_Message;
|
||||
public static Boolean L6_S1_Permission_Enable = false;
|
||||
public static String L6_S1_Permission = "commandgui.use.gui2.line6.slot1";
|
||||
|
||||
public static Boolean L6_S2_Enable = false;
|
||||
public static String L6_S2_Item = "";
|
||||
public static String L6_S2_Name = "";
|
||||
public static List L6_S2_Lore = Arrays.asList();
|
||||
public static Boolean L6_S2_Cost_Enable = false;
|
||||
public static Double L6_S2_Price = 0.00;
|
||||
public static Boolean L6_S2_Command_Enable = false;
|
||||
public static Boolean L6_S2_CommandAsConsole = false;
|
||||
public static String L6_S2_Command = "";
|
||||
public static Boolean L6_S2_Message_Enable = false;
|
||||
public static List<String> L6_S2_Message;
|
||||
public static Boolean L6_S2_Permission_Enable = false;
|
||||
public static String L6_S2_Permission = "commandgui.use.gui2.line6.slot2";
|
||||
|
||||
public static Boolean L6_S3_Enable = false;
|
||||
public static String L6_S3_Item = "";
|
||||
public static String L6_S3_Name = "";
|
||||
public static List L6_S3_Lore = Arrays.asList();
|
||||
public static Boolean L6_S3_Cost_Enable = false;
|
||||
public static Double L6_S3_Price = 0.00;
|
||||
public static Boolean L6_S3_Command_Enable = false;
|
||||
public static Boolean L6_S3_CommandAsConsole = false;
|
||||
public static String L6_S3_Command = "";
|
||||
public static Boolean L6_S3_Message_Enable = false;
|
||||
public static List<String> L6_S3_Message;
|
||||
public static Boolean L6_S3_Permission_Enable = false;
|
||||
public static String L6_S3_Permission = "commandgui.use.gui2.line6.slot3";
|
||||
|
||||
public static Boolean L6_S4_Enable = false;
|
||||
public static String L6_S4_Item = "";
|
||||
public static String L6_S4_Name = "";
|
||||
public static List L6_S4_Lore = Arrays.asList();
|
||||
public static Boolean L6_S4_Cost_Enable = false;
|
||||
public static Double L6_S4_Price = 0.00;
|
||||
public static Boolean L6_S4_Command_Enable = false;
|
||||
public static Boolean L6_S4_CommandAsConsole = false;
|
||||
public static String L6_S4_Command = "";
|
||||
public static Boolean L6_S4_Message_Enable = false;
|
||||
public static List<String> L6_S4_Message;
|
||||
public static Boolean L6_S4_Permission_Enable = false;
|
||||
public static String L6_S4_Permission = "commandgui.use.gui2.line6.slot4";
|
||||
|
||||
public static Boolean L6_S5_Enable = false;
|
||||
public static String L6_S5_Item = "";
|
||||
public static String L6_S5_Name = "";
|
||||
public static List L6_S5_Lore = Arrays.asList();
|
||||
public static Boolean L6_S5_Cost_Enable = false;
|
||||
public static Double L6_S5_Price = 0.00;
|
||||
public static Boolean L6_S5_Command_Enable = false;
|
||||
public static Boolean L6_S5_CommandAsConsole = false;
|
||||
public static String L6_S5_Command = "";
|
||||
public static Boolean L6_S5_Message_Enable = false;
|
||||
public static List<String> L6_S5_Message;
|
||||
public static Boolean L6_S5_Permission_Enable = false;
|
||||
public static String L6_S5_Permission = "commandgui.use.gui2.line6.slot5";
|
||||
|
||||
public static Boolean L6_S6_Enable = false;
|
||||
public static String L6_S6_Item = "";
|
||||
public static String L6_S6_Name = "";
|
||||
public static List L6_S6_Lore = Arrays.asList();
|
||||
public static Boolean L6_S6_Cost_Enable = false;
|
||||
public static Double L6_S6_Price = 0.00;
|
||||
public static Boolean L6_S6_Command_Enable = false;
|
||||
public static Boolean L6_S6_CommandAsConsole = false;
|
||||
public static String L6_S6_Command = "";
|
||||
public static Boolean L6_S6_Message_Enable = false;
|
||||
public static List<String> L6_S6_Message;
|
||||
public static Boolean L6_S6_Permission_Enable = false;
|
||||
public static String L6_S6_Permission = "commandgui.use.gui2.line6.slot6";
|
||||
|
||||
public static Boolean L6_S7_Enable = false;
|
||||
public static String L6_S7_Item = "";
|
||||
public static String L6_S7_Name = "";
|
||||
public static List L6_S7_Lore = Arrays.asList();
|
||||
public static Boolean L6_S7_Cost_Enable = false;
|
||||
public static Double L6_S7_Price = 0.00;
|
||||
public static Boolean L6_S7_Command_Enable = false;
|
||||
public static Boolean L6_S7_CommandAsConsole = false;
|
||||
public static String L6_S7_Command = "";
|
||||
public static Boolean L6_S7_Message_Enable = false;
|
||||
public static List<String> L6_S7_Message;
|
||||
public static Boolean L6_S7_Permission_Enable = false;
|
||||
public static String L6_S7_Permission = "commandgui.use.gui2.line6.slot7";
|
||||
|
||||
public static Boolean L6_S8_Enable = false;
|
||||
public static String L6_S8_Item = "";
|
||||
public static String L6_S8_Name = "";
|
||||
public static List L6_S8_Lore = Arrays.asList();
|
||||
public static Boolean L6_S8_Cost_Enable = false;
|
||||
public static Double L6_S8_Price = 0.00;
|
||||
public static Boolean L6_S8_Command_Enable = false;
|
||||
public static Boolean L6_S8_CommandAsConsole = false;
|
||||
public static String L6_S8_Command = "";
|
||||
public static Boolean L6_S8_Message_Enable = false;
|
||||
public static List<String> L6_S8_Message;
|
||||
public static Boolean L6_S8_Permission_Enable = false;
|
||||
public static String L6_S8_Permission = "commandgui.use.gui2.line6.slot8";
|
||||
|
||||
public static Boolean L6_S9_Enable = false;
|
||||
public static String L6_S9_Item = "";
|
||||
public static String L6_S9_Name = "";
|
||||
public static List L6_S9_Lore = Arrays.asList();
|
||||
public static Boolean L6_S9_Cost_Enable = false;
|
||||
public static Double L6_S9_Price = 0.00;
|
||||
public static Boolean L6_S9_Command_Enable = false;
|
||||
public static Boolean L6_S9_CommandAsConsole = false;
|
||||
public static String L6_S9_Command = "";
|
||||
public static Boolean L6_S9_Message_Enable = false;
|
||||
public static List<String> L6_S9_Message;
|
||||
public static Boolean L6_S9_Permission_Enable = false;
|
||||
public static String L6_S9_Permission = "commandgui.use.gui2.line6.slot9";
|
||||
}
|
@@ -0,0 +1,834 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
// -----------------------------
|
||||
// _____ _____ _ _ _____
|
||||
// / ____/ ____| | | |_ _|
|
||||
// | | | | __| | | | | |
|
||||
// | | | | |_ | | | | | |
|
||||
// | |___| |__| | |__| |_| |_
|
||||
// \_____\_____|\____/|_____|
|
||||
// -----------------------------
|
||||
|
||||
package de.jatitv.commandgui.defaultValue;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class DefaultValue_GUI_3 {
|
||||
|
||||
public static Boolean GiveUseItemOnFirstJoin = false;
|
||||
public static Boolean GiveUseItemOnFirstJoin_Permission_Enable = false;
|
||||
|
||||
public static Boolean GUI_Enable = false;
|
||||
|
||||
public static String GiveUseItemOnFirstJoin_Permission = "commandgui.giveuseitemonfirstjoin.gui3";
|
||||
public static String UseItem_Item = "PAPER";
|
||||
public static String UseItem_Name = "§7Open the: [guiname]";
|
||||
public static List UseItem_Lore = Arrays.asList();
|
||||
|
||||
public static String Command = "GUI3";
|
||||
public static Boolean Command_Permission_Enable = true;
|
||||
|
||||
public static String GUIName = "§9GUI §53";
|
||||
public static Boolean FillItem_Enable = true;
|
||||
public static String FillItem = "BLACK_STAINED_GLASS_PANE";
|
||||
public static short FillItem_1_8 = 15;
|
||||
public static Integer GUILines = 1;
|
||||
|
||||
public static Boolean Permission_Enable = false;
|
||||
public static String Permission = "commandgui.use.gui3";
|
||||
|
||||
|
||||
/**
|
||||
* line1
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L1_S1_Enable = false;
|
||||
public static Boolean L1_S1_Playerhead = true;
|
||||
public static String L1_S1_Item = "";
|
||||
public static String L1_S1_Name = "";
|
||||
public static List L1_S1_Lore = Arrays.asList();
|
||||
public static Boolean L1_S1_Cost_Enable = false;
|
||||
public static Double L1_S1_Price = 0.00;
|
||||
public static Boolean L1_S1_Command_Enable = false;
|
||||
public static Boolean L1_S1_CommandAsConsole = false;
|
||||
public static String L1_S1_Command = "";
|
||||
public static Boolean L1_S1_Message_Enable = false;
|
||||
public static List<String> L1_S1_Message;
|
||||
public static Boolean L1_S1_Permission_Enable = false;
|
||||
public static String L1_S1_Permission = "commandgui.use.gui3.line1.slot1";
|
||||
|
||||
public static Boolean L1_S2_Enable = false;
|
||||
public static String L1_S2_Item = "";
|
||||
public static String L1_S2_Name = "";
|
||||
public static List L1_S2_Lore = Arrays.asList();
|
||||
public static Boolean L1_S2_Cost_Enable = false;
|
||||
public static Double L1_S2_Price = 0.00;
|
||||
public static Boolean L1_S2_Command_Enable = false;
|
||||
public static Boolean L1_S2_CommandAsConsole = false;
|
||||
public static String L1_S2_Command = "";
|
||||
public static Boolean L1_S2_Message_Enable = false;
|
||||
public static List<String> L1_S2_Message;
|
||||
public static Boolean L1_S2_Permission_Enable = false;
|
||||
public static String L1_S2_Permission = "commandgui.use.gui3.line1.slot2";
|
||||
|
||||
public static Boolean L1_S3_Enable = false;
|
||||
public static String L1_S3_Item = "";
|
||||
public static String L1_S3_Name = "";
|
||||
public static List L1_S3_Lore = Arrays.asList();
|
||||
public static Boolean L1_S3_Cost_Enable = false;
|
||||
public static Double L1_S3_Price = 0.00;
|
||||
public static Boolean L1_S3_Command_Enable = false;
|
||||
public static Boolean L1_S3_CommandAsConsole = false;
|
||||
public static String L1_S3_Command = "";
|
||||
public static Boolean L1_S3_Message_Enable = false;
|
||||
public static List<String> L1_S3_Message;
|
||||
public static Boolean L1_S3_Permission_Enable = false;
|
||||
public static String L1_S3_Permission = "commandgui.use.gui3.line1.slot3";
|
||||
|
||||
public static Boolean L1_S4_Enable = false;
|
||||
public static String L1_S4_Item = "";
|
||||
public static String L1_S4_Name = "";
|
||||
public static List L1_S4_Lore = Arrays.asList();
|
||||
public static Boolean L1_S4_Cost_Enable = false;
|
||||
public static Double L1_S4_Price = 0.00;
|
||||
public static Boolean L1_S4_Command_Enable = false;
|
||||
public static Boolean L1_S4_CommandAsConsole = false;
|
||||
public static String L1_S4_Command = "";
|
||||
public static Boolean L1_S4_Message_Enable = false;
|
||||
public static List<String> L1_S4_Message;
|
||||
public static Boolean L1_S4_Permission_Enable = false;
|
||||
public static String L1_S4_Permission = "commandgui.use.gui3.line1.slot4";
|
||||
|
||||
public static Boolean L1_S5_Enable = false;
|
||||
public static String L1_S5_Item = "";
|
||||
public static String L1_S5_Name = "";
|
||||
public static List L1_S5_Lore = Arrays.asList();
|
||||
public static Boolean L1_S5_Cost_Enable = false;
|
||||
public static Double L1_S5_Price = 0.00;
|
||||
public static Boolean L1_S5_Command_Enable = false;
|
||||
public static Boolean L1_S5_CommandAsConsole = false;
|
||||
public static String L1_S5_Command = "";
|
||||
public static Boolean L1_S5_Message_Enable = false;
|
||||
public static List<String> L1_S5_Message;
|
||||
public static Boolean L1_S5_Permission_Enable = false;
|
||||
public static String L1_S5_Permission = "commandgui.use.gui3.line1.slot5";
|
||||
|
||||
public static Boolean L1_S6_Enable = false;
|
||||
public static String L1_S6_Item = "";
|
||||
public static String L1_S6_Name = "";
|
||||
public static List L1_S6_Lore = Arrays.asList();
|
||||
public static Boolean L1_S6_Cost_Enable = false;
|
||||
public static Double L1_S6_Price = 0.00;
|
||||
public static Boolean L1_S6_Command_Enable = false;
|
||||
public static Boolean L1_S6_CommandAsConsole = false;
|
||||
public static String L1_S6_Command = "";
|
||||
public static Boolean L1_S6_Message_Enable = false;
|
||||
public static List<String> L1_S6_Message;
|
||||
public static Boolean L1_S6_Permission_Enable = false;
|
||||
public static String L1_S6_Permission = "commandgui.use.gui3.line1.slot6";
|
||||
|
||||
public static Boolean L1_S7_Enable = false;
|
||||
public static String L1_S7_Item = "";
|
||||
public static String L1_S7_Name = "";
|
||||
public static List L1_S7_Lore = Arrays.asList();
|
||||
public static Boolean L1_S7_Cost_Enable = false;
|
||||
public static Double L1_S7_Price = 0.00;
|
||||
public static Boolean L1_S7_Command_Enable = false;
|
||||
public static Boolean L1_S7_CommandAsConsole = false;
|
||||
public static String L1_S7_Command = "";
|
||||
public static Boolean L1_S7_Message_Enable = false;
|
||||
public static List<String> L1_S7_Message;
|
||||
public static Boolean L1_S7_Permission_Enable = false;
|
||||
public static String L1_S7_Permission = "commandgui.use.gui3.line1.slot7";
|
||||
|
||||
public static Boolean L1_S8_Enable = false;
|
||||
public static String L1_S8_Item = "";
|
||||
public static String L1_S8_Name = "";
|
||||
public static List L1_S8_Lore = Arrays.asList();
|
||||
public static Boolean L1_S8_Cost_Enable = false;
|
||||
public static Double L1_S8_Price = 0.00;
|
||||
public static Boolean L1_S8_Command_Enable = false;
|
||||
public static Boolean L1_S8_CommandAsConsole = false;
|
||||
public static String L1_S8_Command = "";
|
||||
public static Boolean L1_S8_Message_Enable = false;
|
||||
public static List<String> L1_S8_Message;
|
||||
public static Boolean L1_S8_Permission_Enable = false;
|
||||
public static String L1_S8_Permission = "commandgui.use.gui3.line1.slot8";
|
||||
|
||||
public static Boolean L1_S9_Enable = false;
|
||||
public static String L1_S9_Item = "";
|
||||
public static String L1_S9_Name = "";
|
||||
public static List L1_S9_Lore = Arrays.asList();
|
||||
public static Boolean L1_S9_Cost_Enable = false;
|
||||
public static Double L1_S9_Price = 0.00;
|
||||
public static Boolean L1_S9_Command_Enable = false;
|
||||
public static Boolean L1_S9_CommandAsConsole = false;
|
||||
public static String L1_S9_Command = "";
|
||||
public static Boolean L1_S9_Message_Enable = false;
|
||||
public static List<String> L1_S9_Message;
|
||||
public static Boolean L1_S9_Permission_Enable = false;
|
||||
public static String L1_S9_Permission = "commandgui.use.gui3.line1.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line2
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L2_S1_Enable = false;
|
||||
public static String L2_S1_Item = "";
|
||||
public static String L2_S1_Name = "";
|
||||
public static List L2_S1_Lore = Arrays.asList();
|
||||
public static Boolean L2_S1_Cost_Enable = false;
|
||||
public static Double L2_S1_Price = 0.00;
|
||||
public static Boolean L2_S1_Command_Enable = false;
|
||||
public static Boolean L2_S1_CommandAsConsole = false;
|
||||
public static String L2_S1_Command = "";
|
||||
public static Boolean L2_S1_Message_Enable = false;
|
||||
public static List<String> L2_S1_Message;
|
||||
public static Boolean L2_S1_Permission_Enable = false;
|
||||
public static String L2_S1_Permission = "commandgui.use.gui3.line2.slot1";
|
||||
|
||||
public static Boolean L2_S2_Enable = false;
|
||||
public static String L2_S2_Item = "";
|
||||
public static String L2_S2_Name = "";
|
||||
public static List L2_S2_Lore = Arrays.asList();
|
||||
public static Boolean L2_S2_Cost_Enable = false;
|
||||
public static Double L2_S2_Price = 0.00;
|
||||
public static Boolean L2_S2_Command_Enable = false;
|
||||
public static Boolean L2_S2_CommandAsConsole = false;
|
||||
public static String L2_S2_Command = "";
|
||||
public static Boolean L2_S2_Message_Enable = false;
|
||||
public static List<String> L2_S2_Message;
|
||||
public static Boolean L2_S2_Permission_Enable = false;
|
||||
public static String L2_S2_Permission = "commandgui.use.gui3.line2.slot2";
|
||||
|
||||
public static Boolean L2_S3_Enable = false;
|
||||
public static String L2_S3_Item = "";
|
||||
public static String L2_S3_Name = "";
|
||||
public static List L2_S3_Lore = Arrays.asList();
|
||||
public static Boolean L2_S3_Cost_Enable = false;
|
||||
public static Double L2_S3_Price = 0.00;
|
||||
public static Boolean L2_S3_Command_Enable = false;
|
||||
public static Boolean L2_S3_CommandAsConsole = false;
|
||||
public static String L2_S3_Command = "";
|
||||
public static Boolean L2_S3_Message_Enable = false;
|
||||
public static List<String> L2_S3_Message;
|
||||
public static Boolean L2_S3_Permission_Enable = false;
|
||||
public static String L2_S3_Permission = "commandgui.use.gui3.line2.slot3";
|
||||
|
||||
public static Boolean L2_S4_Enable = false;
|
||||
public static String L2_S4_Item = "";
|
||||
public static String L2_S4_Name = "";
|
||||
public static List L2_S4_Lore = Arrays.asList();
|
||||
public static Boolean L2_S4_Cost_Enable = false;
|
||||
public static Double L2_S4_Price = 0.00;
|
||||
public static Boolean L2_S4_Command_Enable = false;
|
||||
public static Boolean L2_S4_CommandAsConsole = false;
|
||||
public static String L2_S4_Command = "";
|
||||
public static Boolean L2_S4_Message_Enable = false;
|
||||
public static List<String> L2_S4_Message;
|
||||
public static Boolean L2_S4_Permission_Enable = false;
|
||||
public static String L2_S4_Permission = "commandgui.use.gui3.line2.slot4";
|
||||
|
||||
public static Boolean L2_S5_Enable = false;
|
||||
public static String L2_S5_Item = "";
|
||||
public static String L2_S5_Name = "";
|
||||
public static List L2_S5_Lore = Arrays.asList();
|
||||
public static Boolean L2_S5_Cost_Enable = false;
|
||||
public static Double L2_S5_Price = 0.00;
|
||||
public static Boolean L2_S5_Command_Enable = false;
|
||||
public static Boolean L2_S5_CommandAsConsole = false;
|
||||
public static String L2_S5_Command = "";
|
||||
public static Boolean L2_S5_Message_Enable = false;
|
||||
public static List<String> L2_S5_Message;
|
||||
public static Boolean L2_S5_Permission_Enable = false;
|
||||
public static String L2_S5_Permission = "commandgui.use.gui3.line2.slot5";
|
||||
|
||||
public static Boolean L2_S6_Enable = false;
|
||||
public static String L2_S6_Item = "";
|
||||
public static String L2_S6_Name = "";
|
||||
public static List L2_S6_Lore = Arrays.asList();
|
||||
public static Boolean L2_S6_Cost_Enable = false;
|
||||
public static Double L2_S6_Price = 0.00;
|
||||
public static Boolean L2_S6_Command_Enable = false;
|
||||
public static Boolean L2_S6_CommandAsConsole = false;
|
||||
public static String L2_S6_Command = "";
|
||||
public static Boolean L2_S6_Message_Enable = false;
|
||||
public static List<String> L2_S6_Message;
|
||||
public static Boolean L2_S6_Permission_Enable = false;
|
||||
public static String L2_S6_Permission = "commandgui.use.gui3.line2.slot6";
|
||||
|
||||
public static Boolean L2_S7_Enable = false;
|
||||
public static String L2_S7_Item = "";
|
||||
public static String L2_S7_Name = "";
|
||||
public static List L2_S7_Lore = Arrays.asList();
|
||||
public static Boolean L2_S7_Cost_Enable = false;
|
||||
public static Double L2_S7_Price = 0.00;
|
||||
public static Boolean L2_S7_Command_Enable = false;
|
||||
public static Boolean L2_S7_CommandAsConsole = false;
|
||||
public static String L2_S7_Command = "";
|
||||
public static Boolean L2_S7_Message_Enable = false;
|
||||
public static List<String> L2_S7_Message;
|
||||
public static Boolean L2_S7_Permission_Enable = false;
|
||||
public static String L2_S7_Permission = "commandgui.use.gui3.line2.slot7";
|
||||
|
||||
public static Boolean L2_S8_Enable = false;
|
||||
public static String L2_S8_Item = "";
|
||||
public static String L2_S8_Name = "";
|
||||
public static List L2_S8_Lore = Arrays.asList();
|
||||
public static Boolean L2_S8_Cost_Enable = false;
|
||||
public static Double L2_S8_Price = 0.00;
|
||||
public static Boolean L2_S8_Command_Enable = false;
|
||||
public static Boolean L2_S8_CommandAsConsole = false;
|
||||
public static String L2_S8_Command = "";
|
||||
public static Boolean L2_S8_Message_Enable = false;
|
||||
public static List<String> L2_S8_Message;
|
||||
public static Boolean L2_S8_Permission_Enable = false;
|
||||
public static String L2_S8_Permission = "commandgui.use.gui3.line2.slot8";
|
||||
|
||||
public static Boolean L2_S9_Enable = false;
|
||||
public static String L2_S9_Item = "";
|
||||
public static String L2_S9_Name = "";
|
||||
public static List L2_S9_Lore = Arrays.asList();
|
||||
public static Boolean L2_S9_Cost_Enable = false;
|
||||
public static Double L2_S9_Price = 0.00;
|
||||
public static Boolean L2_S9_Command_Enable = false;
|
||||
public static Boolean L2_S9_CommandAsConsole = false;
|
||||
public static String L2_S9_Command = "";
|
||||
public static Boolean L2_S9_Message_Enable = false;
|
||||
public static List<String> L2_S9_Message;
|
||||
public static Boolean L2_S9_Permission_Enable = false;
|
||||
public static String L2_S9_Permission = "commandgui.use.gui3.line2.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line3
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L3_S1_Enable = false;
|
||||
public static String L3_S1_Item = "";
|
||||
public static String L3_S1_Name = "";
|
||||
public static List L3_S1_Lore = Arrays.asList();
|
||||
public static Boolean L3_S1_Cost_Enable = false;
|
||||
public static Double L3_S1_Price = 0.00;
|
||||
public static Boolean L3_S1_Command_Enable = false;
|
||||
public static Boolean L3_S1_CommandAsConsole = false;
|
||||
public static String L3_S1_Command = "";
|
||||
public static Boolean L3_S1_Message_Enable = false;
|
||||
public static List<String> L3_S1_Message;
|
||||
public static Boolean L3_S1_Permission_Enable = false;
|
||||
public static String L3_S1_Permission = "commandgui.use.gui3.line3.slot1";
|
||||
|
||||
public static Boolean L3_S2_Enable = false;
|
||||
public static String L3_S2_Item = "";
|
||||
public static String L3_S2_Name = "";
|
||||
public static List L3_S2_Lore = Arrays.asList();
|
||||
public static Boolean L3_S2_Cost_Enable = false;
|
||||
public static Double L3_S2_Price = 0.00;
|
||||
public static Boolean L3_S2_Command_Enable = false;
|
||||
public static Boolean L3_S2_CommandAsConsole = false;
|
||||
public static String L3_S2_Command = "";
|
||||
public static Boolean L3_S2_Message_Enable = false;
|
||||
public static List<String> L3_S2_Message;
|
||||
public static Boolean L3_S2_Permission_Enable = false;
|
||||
public static String L3_S2_Permission = "commandgui.use.gui3.line3.slot2";
|
||||
|
||||
public static Boolean L3_S3_Enable = false;
|
||||
public static String L3_S3_Item = "";
|
||||
public static String L3_S3_Name = "";
|
||||
public static List L3_S3_Lore = Arrays.asList();
|
||||
public static Boolean L3_S3_Cost_Enable = false;
|
||||
public static Double L3_S3_Price = 0.00;
|
||||
public static Boolean L3_S3_Command_Enable = false;
|
||||
public static Boolean L3_S3_CommandAsConsole = false;
|
||||
public static String L3_S3_Command = "";
|
||||
public static Boolean L3_S3_Message_Enable = false;
|
||||
public static List<String> L3_S3_Message;
|
||||
public static Boolean L3_S3_Permission_Enable = false;
|
||||
public static String L3_S3_Permission = "commandgui.use.gui3.line3.slot3";
|
||||
|
||||
public static Boolean L3_S4_Enable = false;
|
||||
public static String L3_S4_Item = "";
|
||||
public static String L3_S4_Name = "";
|
||||
public static List L3_S4_Lore = Arrays.asList();
|
||||
public static Boolean L3_S4_Cost_Enable = false;
|
||||
public static Double L3_S4_Price = 0.00;
|
||||
public static Boolean L3_S4_Command_Enable = false;
|
||||
public static Boolean L3_S4_CommandAsConsole = false;
|
||||
public static String L3_S4_Command = "";
|
||||
public static Boolean L3_S4_Message_Enable = false;
|
||||
public static List<String> L3_S4_Message;
|
||||
public static Boolean L3_S4_Permission_Enable = false;
|
||||
public static String L3_S4_Permission = "commandgui.use.gui3.line3.slot4";
|
||||
|
||||
public static Boolean L3_S5_Enable = false;
|
||||
public static String L3_S5_Item = "";
|
||||
public static String L3_S5_Name = "";
|
||||
public static List L3_S5_Lore = Arrays.asList();
|
||||
public static Boolean L3_S5_Cost_Enable = false;
|
||||
public static Double L3_S5_Price = 0.00;
|
||||
public static Boolean L3_S5_Command_Enable = false;
|
||||
public static Boolean L3_S5_CommandAsConsole = false;
|
||||
public static String L3_S5_Command = "";
|
||||
public static Boolean L3_S5_Message_Enable = false;
|
||||
public static List<String> L3_S5_Message;
|
||||
public static Boolean L3_S5_Permission_Enable = false;
|
||||
public static String L3_S5_Permission = "commandgui.use.gui3.line3.slot5";
|
||||
|
||||
public static Boolean L3_S6_Enable = false;
|
||||
public static String L3_S6_Item = "";
|
||||
public static String L3_S6_Name = "";
|
||||
public static List L3_S6_Lore = Arrays.asList();
|
||||
public static Boolean L3_S6_Cost_Enable = false;
|
||||
public static Double L3_S6_Price = 0.00;
|
||||
public static Boolean L3_S6_Command_Enable = false;
|
||||
public static Boolean L3_S6_CommandAsConsole = false;
|
||||
public static String L3_S6_Command = "";
|
||||
public static Boolean L3_S6_Message_Enable = false;
|
||||
public static List<String> L3_S6_Message;
|
||||
public static Boolean L3_S6_Permission_Enable = false;
|
||||
public static String L3_S6_Permission = "commandgui.use.gui3.line3.slot6";
|
||||
|
||||
public static Boolean L3_S7_Enable = false;
|
||||
public static String L3_S7_Item = "";
|
||||
public static String L3_S7_Name = "";
|
||||
public static List L3_S7_Lore = Arrays.asList();
|
||||
public static Boolean L3_S7_Cost_Enable = false;
|
||||
public static Double L3_S7_Price = 0.00;
|
||||
public static Boolean L3_S7_Command_Enable = false;
|
||||
public static Boolean L3_S7_CommandAsConsole = false;
|
||||
public static String L3_S7_Command = "";
|
||||
public static Boolean L3_S7_Message_Enable = false;
|
||||
public static List<String> L3_S7_Message;
|
||||
public static Boolean L3_S7_Permission_Enable = false;
|
||||
public static String L3_S7_Permission = "commandgui.use.gui3.line3.slot7";
|
||||
|
||||
public static Boolean L3_S8_Enable = false;
|
||||
public static String L3_S8_Item = "";
|
||||
public static String L3_S8_Name = "";
|
||||
public static List L3_S8_Lore = Arrays.asList();
|
||||
public static Boolean L3_S8_Cost_Enable = false;
|
||||
public static Double L3_S8_Price = 0.00;
|
||||
public static Boolean L3_S8_Command_Enable = false;
|
||||
public static Boolean L3_S8_CommandAsConsole = false;
|
||||
public static String L3_S8_Command = "";
|
||||
public static Boolean L3_S8_Message_Enable = false;
|
||||
public static List<String> L3_S8_Message;
|
||||
public static Boolean L3_S8_Permission_Enable = false;
|
||||
public static String L3_S8_Permission = "commandgui.use.gui3.line3.slot8";
|
||||
|
||||
public static Boolean L3_S9_Enable = false;
|
||||
public static String L3_S9_Item = "";
|
||||
public static String L3_S9_Name = "";
|
||||
public static List L3_S9_Lore = Arrays.asList();
|
||||
public static Boolean L3_S9_Cost_Enable = false;
|
||||
public static Double L3_S9_Price = 0.00;
|
||||
public static Boolean L3_S9_Command_Enable = false;
|
||||
public static Boolean L3_S9_CommandAsConsole = false;
|
||||
public static String L3_S9_Command = "";
|
||||
public static Boolean L3_S9_Message_Enable = false;
|
||||
public static List<String> L3_S9_Message;
|
||||
public static Boolean L3_S9_Permission_Enable = false;
|
||||
public static String L3_S9_Permission = "commandgui.use.gui3.line3.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line4
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L4_S1_Enable = false;
|
||||
public static String L4_S1_Item = "";
|
||||
public static String L4_S1_Name = "";
|
||||
public static List L4_S1_Lore = Arrays.asList();
|
||||
public static Boolean L4_S1_Cost_Enable = false;
|
||||
public static Double L4_S1_Price = 0.00;
|
||||
public static Boolean L4_S1_Command_Enable = false;
|
||||
public static Boolean L4_S1_CommandAsConsole = false;
|
||||
public static String L4_S1_Command = "";
|
||||
public static Boolean L4_S1_Message_Enable = false;
|
||||
public static List<String> L4_S1_Message;
|
||||
public static Boolean L4_S1_Permission_Enable = false;
|
||||
public static String L4_S1_Permission = "commandgui.use.gui3.line4.slot1";
|
||||
|
||||
public static Boolean L4_S2_Enable = false;
|
||||
public static String L4_S2_Item = "";
|
||||
public static String L4_S2_Name = "";
|
||||
public static List L4_S2_Lore = Arrays.asList();
|
||||
public static Boolean L4_S2_Cost_Enable = false;
|
||||
public static Double L4_S2_Price = 0.00;
|
||||
public static Boolean L4_S2_Command_Enable = false;
|
||||
public static Boolean L4_S2_CommandAsConsole = false;
|
||||
public static String L4_S2_Command = "";
|
||||
public static Boolean L4_S2_Message_Enable = false;
|
||||
public static List<String> L4_S2_Message;
|
||||
public static Boolean L4_S2_Permission_Enable = false;
|
||||
public static String L4_S2_Permission = "commandgui.use.gui3.line4.slot2";
|
||||
|
||||
public static Boolean L4_S3_Enable = false;
|
||||
public static String L4_S3_Item = "";
|
||||
public static String L4_S3_Name = "";
|
||||
public static List L4_S3_Lore = Arrays.asList();
|
||||
public static Boolean L4_S3_Cost_Enable = false;
|
||||
public static Double L4_S3_Price = 0.00;
|
||||
public static Boolean L4_S3_Command_Enable = false;
|
||||
public static Boolean L4_S3_CommandAsConsole = false;
|
||||
public static String L4_S3_Command = "";
|
||||
public static Boolean L4_S3_Message_Enable = false;
|
||||
public static List<String> L4_S3_Message;
|
||||
public static Boolean L4_S3_Permission_Enable = false;
|
||||
public static String L4_S3_Permission = "commandgui.use.gui3.line4.slot3";
|
||||
|
||||
public static Boolean L4_S4_Enable = false;
|
||||
public static String L4_S4_Item = "";
|
||||
public static String L4_S4_Name = "";
|
||||
public static List L4_S4_Lore = Arrays.asList();
|
||||
public static Boolean L4_S4_Cost_Enable = false;
|
||||
public static Double L4_S4_Price = 0.00;
|
||||
public static Boolean L4_S4_Command_Enable = false;
|
||||
public static Boolean L4_S4_CommandAsConsole = false;
|
||||
public static String L4_S4_Command = "";
|
||||
public static Boolean L4_S4_Message_Enable = false;
|
||||
public static List<String> L4_S4_Message;
|
||||
public static Boolean L4_S4_Permission_Enable = false;
|
||||
public static String L4_S4_Permission = "commandgui.use.gui3.line4.slot4";
|
||||
|
||||
public static Boolean L4_S5_Enable = false;
|
||||
public static String L4_S5_Item = "";
|
||||
public static String L4_S5_Name = "";
|
||||
public static List L4_S5_Lore = Arrays.asList();
|
||||
public static Boolean L4_S5_Cost_Enable = false;
|
||||
public static Double L4_S5_Price = 0.00;
|
||||
public static Boolean L4_S5_Command_Enable = false;
|
||||
public static Boolean L4_S5_CommandAsConsole = false;
|
||||
public static String L4_S5_Command = "";
|
||||
public static Boolean L4_S5_Message_Enable = false;
|
||||
public static List<String> L4_S5_Message;
|
||||
public static Boolean L4_S5_Permission_Enable = false;
|
||||
public static String L4_S5_Permission = "commandgui.use.gui3.line4.slot5";
|
||||
|
||||
public static Boolean L4_S6_Enable = false;
|
||||
public static String L4_S6_Item = "";
|
||||
public static String L4_S6_Name = "";
|
||||
public static List L4_S6_Lore = Arrays.asList();
|
||||
public static Boolean L4_S6_Cost_Enable = false;
|
||||
public static Double L4_S6_Price = 0.00;
|
||||
public static Boolean L4_S6_Command_Enable = false;
|
||||
public static Boolean L4_S6_CommandAsConsole = false;
|
||||
public static String L4_S6_Command = "";
|
||||
public static Boolean L4_S6_Message_Enable = false;
|
||||
public static List<String> L4_S6_Message;
|
||||
public static Boolean L4_S6_Permission_Enable = false;
|
||||
public static String L4_S6_Permission = "commandgui.use.gui3.line4.slot6";
|
||||
|
||||
public static Boolean L4_S7_Enable = false;
|
||||
public static String L4_S7_Item = "";
|
||||
public static String L4_S7_Name = "";
|
||||
public static List L4_S7_Lore = Arrays.asList();
|
||||
public static Boolean L4_S7_Cost_Enable = false;
|
||||
public static Double L4_S7_Price = 0.00;
|
||||
public static Boolean L4_S7_Command_Enable = false;
|
||||
public static Boolean L4_S7_CommandAsConsole = false;
|
||||
public static String L4_S7_Command = "";
|
||||
public static Boolean L4_S7_Message_Enable = false;
|
||||
public static List<String> L4_S7_Message;
|
||||
public static Boolean L4_S7_Permission_Enable = false;
|
||||
public static String L4_S7_Permission = "commandgui.use.gui3.line4.slot7";
|
||||
|
||||
public static Boolean L4_S8_Enable = false;
|
||||
public static String L4_S8_Item = "";
|
||||
public static String L4_S8_Name = "";
|
||||
public static List L4_S8_Lore = Arrays.asList();
|
||||
public static Boolean L4_S8_Cost_Enable = false;
|
||||
public static Double L4_S8_Price = 0.00;
|
||||
public static Boolean L4_S8_Command_Enable = false;
|
||||
public static Boolean L4_S8_CommandAsConsole = false;
|
||||
public static String L4_S8_Command = "";
|
||||
public static Boolean L4_S8_Message_Enable = false;
|
||||
public static List<String> L4_S8_Message;
|
||||
public static Boolean L4_S8_Permission_Enable = false;
|
||||
public static String L4_S8_Permission = "commandgui.use.gui3.line4.slot8";
|
||||
|
||||
public static Boolean L4_S9_Enable = false;
|
||||
public static String L4_S9_Item = "";
|
||||
public static String L4_S9_Name = "";
|
||||
public static List L4_S9_Lore = Arrays.asList();
|
||||
public static Boolean L4_S9_Cost_Enable = false;
|
||||
public static Double L4_S9_Price = 0.00;
|
||||
public static Boolean L4_S9_Command_Enable = false;
|
||||
public static Boolean L4_S9_CommandAsConsole = false;
|
||||
public static String L4_S9_Command = "";
|
||||
public static Boolean L4_S9_Message_Enable = false;
|
||||
public static List<String> L4_S9_Message;
|
||||
public static Boolean L4_S9_Permission_Enable = false;
|
||||
public static String L4_S9_Permission = "commandgui.use.gui3.line4.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line5
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L5_S1_Enable = false;
|
||||
public static String L5_S1_Item = "";
|
||||
public static String L5_S1_Name = "";
|
||||
public static List L5_S1_Lore = Arrays.asList();
|
||||
public static Boolean L5_S1_Cost_Enable = false;
|
||||
public static Double L5_S1_Price = 0.00;
|
||||
public static Boolean L5_S1_Command_Enable = false;
|
||||
public static Boolean L5_S1_CommandAsConsole = false;
|
||||
public static String L5_S1_Command = "";
|
||||
public static Boolean L5_S1_Message_Enable = false;
|
||||
public static List<String> L5_S1_Message;
|
||||
public static Boolean L5_S1_Permission_Enable = false;
|
||||
public static String L5_S1_Permission = "commandgui.use.gui3.line5.slot1";
|
||||
|
||||
public static Boolean L5_S2_Enable = false;
|
||||
public static String L5_S2_Item = "";
|
||||
public static String L5_S2_Name = "";
|
||||
public static List L5_S2_Lore = Arrays.asList();
|
||||
public static Boolean L5_S2_Cost_Enable = false;
|
||||
public static Double L5_S2_Price = 0.00;
|
||||
public static Boolean L5_S2_Command_Enable = false;
|
||||
public static Boolean L5_S2_CommandAsConsole = false;
|
||||
public static String L5_S2_Command = "";
|
||||
public static Boolean L5_S2_Message_Enable = false;
|
||||
public static List<String> L5_S2_Message;
|
||||
public static Boolean L5_S2_Permission_Enable = false;
|
||||
public static String L5_S2_Permission = "commandgui.use.gui3.line5.slot2";
|
||||
|
||||
public static Boolean L5_S3_Enable = false;
|
||||
public static String L5_S3_Item = "";
|
||||
public static String L5_S3_Name = "";
|
||||
public static List L5_S3_Lore = Arrays.asList();
|
||||
public static Boolean L5_S3_Cost_Enable = false;
|
||||
public static Double L5_S3_Price = 0.00;
|
||||
public static Boolean L5_S3_Command_Enable = false;
|
||||
public static Boolean L5_S3_CommandAsConsole = false;
|
||||
public static String L5_S3_Command = "";
|
||||
public static Boolean L5_S3_Message_Enable = false;
|
||||
public static List<String> L5_S3_Message;
|
||||
public static Boolean L5_S3_Permission_Enable = false;
|
||||
public static String L5_S3_Permission = "commandgui.use.gui3.line5.slot3";
|
||||
|
||||
public static Boolean L5_S4_Enable = false;
|
||||
public static String L5_S4_Item = "";
|
||||
public static String L5_S4_Name = "";
|
||||
public static List L5_S4_Lore = Arrays.asList();
|
||||
public static Boolean L5_S4_Cost_Enable = false;
|
||||
public static Double L5_S4_Price = 0.00;
|
||||
public static Boolean L5_S4_Command_Enable = false;
|
||||
public static Boolean L5_S4_CommandAsConsole = false;
|
||||
public static String L5_S4_Command = "";
|
||||
public static Boolean L5_S4_Message_Enable = false;
|
||||
public static List<String> L5_S4_Message;
|
||||
public static Boolean L5_S4_Permission_Enable = false;
|
||||
public static String L5_S4_Permission = "commandgui.use.gui3.line5.slot4";
|
||||
|
||||
public static Boolean L5_S5_Enable = false;
|
||||
public static String L5_S5_Item = "";
|
||||
public static String L5_S5_Name = "";
|
||||
public static List L5_S5_Lore = Arrays.asList();
|
||||
public static Boolean L5_S5_Cost_Enable = false;
|
||||
public static Double L5_S5_Price = 0.00;
|
||||
public static Boolean L5_S5_Command_Enable = false;
|
||||
public static Boolean L5_S5_CommandAsConsole = false;
|
||||
public static String L5_S5_Command = "";
|
||||
public static Boolean L5_S5_Message_Enable = false;
|
||||
public static List<String> L5_S5_Message;
|
||||
public static Boolean L5_S5_Permission_Enable = false;
|
||||
public static String L5_S5_Permission = "commandgui.use.gui3.line5.slot5";
|
||||
|
||||
public static Boolean L5_S6_Enable = false;
|
||||
public static String L5_S6_Item = "";
|
||||
public static String L5_S6_Name = "";
|
||||
public static List L5_S6_Lore = Arrays.asList();
|
||||
public static Boolean L5_S6_Cost_Enable = false;
|
||||
public static Double L5_S6_Price = 0.00;
|
||||
public static Boolean L5_S6_Command_Enable = false;
|
||||
public static Boolean L5_S6_CommandAsConsole = false;
|
||||
public static String L5_S6_Command = "";
|
||||
public static Boolean L5_S6_Message_Enable = false;
|
||||
public static List<String> L5_S6_Message;
|
||||
public static Boolean L5_S6_Permission_Enable = false;
|
||||
public static String L5_S6_Permission = "commandgui.use.gui3.line5.slot6";
|
||||
|
||||
public static Boolean L5_S7_Enable = false;
|
||||
public static String L5_S7_Item = "";
|
||||
public static String L5_S7_Name = "";
|
||||
public static List L5_S7_Lore = Arrays.asList();
|
||||
public static Boolean L5_S7_Cost_Enable = false;
|
||||
public static Double L5_S7_Price = 0.00;
|
||||
public static Boolean L5_S7_Command_Enable = false;
|
||||
public static Boolean L5_S7_CommandAsConsole = false;
|
||||
public static String L5_S7_Command = "";
|
||||
public static Boolean L5_S7_Message_Enable = false;
|
||||
public static List<String> L5_S7_Message;
|
||||
public static Boolean L5_S7_Permission_Enable = false;
|
||||
public static String L5_S7_Permission = "commandgui.use.gui3.line5.slot7";
|
||||
|
||||
public static Boolean L5_S8_Enable = false;
|
||||
public static String L5_S8_Item = "";
|
||||
public static String L5_S8_Name = "";
|
||||
public static List L5_S8_Lore = Arrays.asList();
|
||||
public static Boolean L5_S8_Cost_Enable = false;
|
||||
public static Double L5_S8_Price = 0.00;
|
||||
public static Boolean L5_S8_Command_Enable = false;
|
||||
public static Boolean L5_S8_CommandAsConsole = false;
|
||||
public static String L5_S8_Command = "";
|
||||
public static Boolean L5_S8_Message_Enable = false;
|
||||
public static List<String> L5_S8_Message;
|
||||
public static Boolean L5_S8_Permission_Enable = false;
|
||||
public static String L5_S8_Permission = "commandgui.use.gui3.line5.slot8";
|
||||
|
||||
public static Boolean L5_S9_Enable = false;
|
||||
public static String L5_S9_Item = "";
|
||||
public static String L5_S9_Name = "";
|
||||
public static List L5_S9_Lore = Arrays.asList();
|
||||
public static Boolean L5_S9_Cost_Enable = false;
|
||||
public static Double L5_S9_Price = 0.00;
|
||||
public static Boolean L5_S9_Command_Enable = false;
|
||||
public static Boolean L5_S9_CommandAsConsole = false;
|
||||
public static String L5_S9_Command = "";
|
||||
public static Boolean L5_S9_Message_Enable = false;
|
||||
public static List<String> L5_S9_Message;
|
||||
public static Boolean L5_S9_Permission_Enable = false;
|
||||
public static String L5_S9_Permission = "commandgui.use.gui3.line5.slot9";
|
||||
|
||||
|
||||
/**
|
||||
* line6
|
||||
*/
|
||||
|
||||
|
||||
public static Boolean L6_S1_Enable = false;
|
||||
public static String L6_S1_Item = "";
|
||||
public static String L6_S1_Name = "";
|
||||
public static List L6_S1_Lore = Arrays.asList();
|
||||
public static Boolean L6_S1_Cost_Enable = false;
|
||||
public static Double L6_S1_Price = 0.00;
|
||||
public static Boolean L6_S1_Command_Enable = false;
|
||||
public static Boolean L6_S1_CommandAsConsole = false;
|
||||
public static String L6_S1_Command = "";
|
||||
public static Boolean L6_S1_Message_Enable = false;
|
||||
public static List<String> L6_S1_Message;
|
||||
public static Boolean L6_S1_Permission_Enable = false;
|
||||
public static String L6_S1_Permission = "commandgui.use.gui3.line6.slot1";
|
||||
|
||||
public static Boolean L6_S2_Enable = false;
|
||||
public static String L6_S2_Item = "";
|
||||
public static String L6_S2_Name = "";
|
||||
public static List L6_S2_Lore = Arrays.asList();
|
||||
public static Boolean L6_S2_Cost_Enable = false;
|
||||
public static Double L6_S2_Price = 0.00;
|
||||
public static Boolean L6_S2_Command_Enable = false;
|
||||
public static Boolean L6_S2_CommandAsConsole = false;
|
||||
public static String L6_S2_Command = "";
|
||||
public static Boolean L6_S2_Message_Enable = false;
|
||||
public static List<String> L6_S2_Message;
|
||||
public static Boolean L6_S2_Permission_Enable = false;
|
||||
public static String L6_S2_Permission = "commandgui.use.gui3.line6.slot2";
|
||||
|
||||
public static Boolean L6_S3_Enable = false;
|
||||
public static String L6_S3_Item = "";
|
||||
public static String L6_S3_Name = "";
|
||||
public static List L6_S3_Lore = Arrays.asList();
|
||||
public static Boolean L6_S3_Cost_Enable = false;
|
||||
public static Double L6_S3_Price = 0.00;
|
||||
public static Boolean L6_S3_Command_Enable = false;
|
||||
public static Boolean L6_S3_CommandAsConsole = false;
|
||||
public static String L6_S3_Command = "";
|
||||
public static Boolean L6_S3_Message_Enable = false;
|
||||
public static List<String> L6_S3_Message;
|
||||
public static Boolean L6_S3_Permission_Enable = false;
|
||||
public static String L6_S3_Permission = "commandgui.use.gui3.line6.slot3";
|
||||
|
||||
public static Boolean L6_S4_Enable = false;
|
||||
public static String L6_S4_Item = "";
|
||||
public static String L6_S4_Name = "";
|
||||
public static List L6_S4_Lore = Arrays.asList();
|
||||
public static Boolean L6_S4_Cost_Enable = false;
|
||||
public static Double L6_S4_Price = 0.00;
|
||||
public static Boolean L6_S4_Command_Enable = false;
|
||||
public static Boolean L6_S4_CommandAsConsole = false;
|
||||
public static String L6_S4_Command = "";
|
||||
public static Boolean L6_S4_Message_Enable = false;
|
||||
public static List<String> L6_S4_Message;
|
||||
public static Boolean L6_S4_Permission_Enable = false;
|
||||
public static String L6_S4_Permission = "commandgui.use.gui3.line6.slot4";
|
||||
|
||||
public static Boolean L6_S5_Enable = false;
|
||||
public static String L6_S5_Item = "";
|
||||
public static String L6_S5_Name = "";
|
||||
public static List L6_S5_Lore = Arrays.asList();
|
||||
public static Boolean L6_S5_Cost_Enable = false;
|
||||
public static Double L6_S5_Price = 0.00;
|
||||
public static Boolean L6_S5_Command_Enable = false;
|
||||
public static Boolean L6_S5_CommandAsConsole = false;
|
||||
public static String L6_S5_Command = "";
|
||||
public static Boolean L6_S5_Message_Enable = false;
|
||||
public static List<String> L6_S5_Message;
|
||||
public static Boolean L6_S5_Permission_Enable = false;
|
||||
public static String L6_S5_Permission = "commandgui.use.gui3.line6.slot5";
|
||||
|
||||
public static Boolean L6_S6_Enable = false;
|
||||
public static String L6_S6_Item = "";
|
||||
public static String L6_S6_Name = "";
|
||||
public static List L6_S6_Lore = Arrays.asList();
|
||||
public static Boolean L6_S6_Cost_Enable = false;
|
||||
public static Double L6_S6_Price = 0.00;
|
||||
public static Boolean L6_S6_Command_Enable = false;
|
||||
public static Boolean L6_S6_CommandAsConsole = false;
|
||||
public static String L6_S6_Command = "";
|
||||
public static Boolean L6_S6_Message_Enable = false;
|
||||
public static List<String> L6_S6_Message;
|
||||
public static Boolean L6_S6_Permission_Enable = false;
|
||||
public static String L6_S6_Permission = "commandgui.use.gui3.line6.slot6";
|
||||
|
||||
public static Boolean L6_S7_Enable = false;
|
||||
public static String L6_S7_Item = "";
|
||||
public static String L6_S7_Name = "";
|
||||
public static List L6_S7_Lore = Arrays.asList();
|
||||
public static Boolean L6_S7_Cost_Enable = false;
|
||||
public static Double L6_S7_Price = 0.00;
|
||||
public static Boolean L6_S7_Command_Enable = false;
|
||||
public static Boolean L6_S7_CommandAsConsole = false;
|
||||
public static String L6_S7_Command = "";
|
||||
public static Boolean L6_S7_Message_Enable = false;
|
||||
public static List<String> L6_S7_Message;
|
||||
public static Boolean L6_S7_Permission_Enable = false;
|
||||
public static String L6_S7_Permission = "commandgui.use.gui3.line6.slot7";
|
||||
|
||||
public static Boolean L6_S8_Enable = false;
|
||||
public static String L6_S8_Item = "";
|
||||
public static String L6_S8_Name = "";
|
||||
public static List L6_S8_Lore = Arrays.asList();
|
||||
public static Boolean L6_S8_Cost_Enable = false;
|
||||
public static Double L6_S8_Price = 0.00;
|
||||
public static Boolean L6_S8_Command_Enable = false;
|
||||
public static Boolean L6_S8_CommandAsConsole = false;
|
||||
public static String L6_S8_Command = "";
|
||||
public static Boolean L6_S8_Message_Enable = false;
|
||||
public static List<String> L6_S8_Message;
|
||||
public static Boolean L6_S8_Permission_Enable = false;
|
||||
public static String L6_S8_Permission = "commandgui.use.gui3.line6.slot8";
|
||||
|
||||
public static Boolean L6_S9_Enable = false;
|
||||
public static String L6_S9_Item = "";
|
||||
public static String L6_S9_Name = "";
|
||||
public static List L6_S9_Lore = Arrays.asList();
|
||||
public static Boolean L6_S9_Cost_Enable = false;
|
||||
public static Double L6_S9_Price = 0.00;
|
||||
public static Boolean L6_S9_Command_Enable = false;
|
||||
public static Boolean L6_S9_CommandAsConsole = false;
|
||||
public static String L6_S9_Command = "";
|
||||
public static Boolean L6_S9_Message_Enable = false;
|
||||
public static List<String> L6_S9_Message;
|
||||
public static Boolean L6_S9_Permission_Enable = false;
|
||||
public static String L6_S9_Permission = "commandgui.use.gui3.line6.slot9";
|
||||
|
||||
}
|
3642
CommandGUI V1/src/main/java/de/jatitv/commandgui/listener/GUI_1.java
Normal file
3642
CommandGUI V1/src/main/java/de/jatitv/commandgui/listener/GUI_1.java
Normal file
File diff suppressed because it is too large
Load Diff
3642
CommandGUI V1/src/main/java/de/jatitv/commandgui/listener/GUI_2.java
Normal file
3642
CommandGUI V1/src/main/java/de/jatitv/commandgui/listener/GUI_2.java
Normal file
File diff suppressed because it is too large
Load Diff
3642
CommandGUI V1/src/main/java/de/jatitv/commandgui/listener/GUI_3.java
Normal file
3642
CommandGUI V1/src/main/java/de/jatitv/commandgui/listener/GUI_3.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,80 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
// ___________________________________________________________________________________
|
||||
// __ __ _ ____ _____ _
|
||||
// \ \ / / | | | _ \ / ____| |
|
||||
// \ \ /\ / /__ _ __ __| | ___ _ __| |_) | __ _ __ _| (___ | |__ ___ _ __
|
||||
// \ \/ \/ / _ \| '_ \ / _` |/ _ \ '__| _ < / _` |/ _` |\___ \| '_ \ / _ \| '_ \
|
||||
// \ /\ / (_) | | | | (_| | __/ | | |_) | (_| | (_| |____) | | | | (_) | |_) |
|
||||
// \/ \/ \___/|_| |_|\__,_|\___|_| |____/ \__,_|\__, |_____/|_| |_|\___/| .__/
|
||||
// __/ | | |
|
||||
// |___/ |_|
|
||||
// ___________________________________________________________________________________
|
||||
|
||||
package de.jatitv.commandgui.listener;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.system.Main;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
public class JoinEvent implements Listener {
|
||||
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onJoinEvent(PlayerJoinEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
String foundVersion = Main.getPlugin().getDescription().getVersion();
|
||||
if (player.hasPermission("commandgui.admin") || player.isOp()) {
|
||||
if (!foundVersion.equals(Main.update_version)) {
|
||||
String updateFound = (DefaultValue.PrefixHC + "§6A new version of §8[§4Command§9GUI§8]§6 was found!");
|
||||
String yourVersion = (DefaultValue.PrefixHC + "§6Your version §c" + foundVersion);
|
||||
String currentVersion = (DefaultValue.PrefixHC + "§6Current version: §a" + Main.update_version);
|
||||
String downloadVersion = (DefaultValue.PrefixHC + "§6You can download it here: §e" + Main.Spigot);
|
||||
String discord = (DefaultValue.PrefixHC + "§6You can find more information about §8[§4Command§9GUI§8]§6 on Discord: §e" + Main.DiscordLink);
|
||||
String Snapshot = (DefaultValue.PrefixHC + "§4Please note!" +
|
||||
"\n" + DefaultValue.PrefixHC + "§cYou are using the §6" + foundVersion + " §cof §4Command§9GUI!" +
|
||||
"\n" + DefaultValue.PrefixHC + "§cThere may be errors and it is possible that not all functions work as they should!" +
|
||||
"\n" + DefaultValue.PrefixHC + "§2If there are any bugs, please report them to me via Discord so I can fix them." +
|
||||
"\n" + DefaultValue.PrefixHC + "§7" + Main.DiscordLink);
|
||||
if (Main.Snapshot) {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
player.sendMessage("\n \n \n \n \n \n" + Snapshot);
|
||||
}
|
||||
}.runTaskLater(Main.getPlugin(), 100L);
|
||||
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
player.sendMessage("\n ");
|
||||
player.sendMessage(updateFound);
|
||||
player.sendMessage(yourVersion);
|
||||
player.sendMessage(currentVersion);
|
||||
player.sendMessage(downloadVersion);
|
||||
player.sendMessage(discord);
|
||||
}
|
||||
}.runTaskLater(Main.getPlugin(), 200L);
|
||||
}
|
||||
if (DefaultValue.UpdateCheckOnJoin && !Main.Snapshot) {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
player.sendMessage("\n ");
|
||||
player.sendMessage(updateFound);
|
||||
player.sendMessage(yourVersion);
|
||||
player.sendMessage(currentVersion);
|
||||
player.sendMessage(downloadVersion);
|
||||
player.sendMessage(discord);
|
||||
}
|
||||
}.runTaskLater(Main.getPlugin(), 200L);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_1;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_2;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_3;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.craftbukkit.v1_13_R1.CraftServer;
|
||||
|
||||
public class CmdRegister_13 {
|
||||
public static void onregister(){
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_1.Command, new RegisterCommands_GUI_1(DefaultValue_GUI_1.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_2.Command, new RegisterCommands_GUI_2(DefaultValue_GUI_2.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_3.Command, new RegisterCommands_GUI_3(DefaultValue_GUI_3.Command));
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_1;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_2;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_3;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.craftbukkit.v1_14_R1.CraftServer;
|
||||
|
||||
public class CmdRegister_14 {
|
||||
public static void onregister(){
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_1.Command, new RegisterCommands_GUI_1(DefaultValue_GUI_1.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_2.Command, new RegisterCommands_GUI_2(DefaultValue_GUI_2.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_3.Command, new RegisterCommands_GUI_3(DefaultValue_GUI_3.Command));
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_1;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_2;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_3;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.craftbukkit.v1_15_R1.CraftServer;
|
||||
|
||||
public class CmdRegister_15 {
|
||||
public static void onregister(){
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_1.Command, new RegisterCommands_GUI_1(DefaultValue_GUI_1.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_2.Command, new RegisterCommands_GUI_2(DefaultValue_GUI_2.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_3.Command, new RegisterCommands_GUI_3(DefaultValue_GUI_3.Command));
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_1;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_2;
|
||||
import de.jatitv.commandgui.commands.cmdManagement.RegisterCommands_GUI_3;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.craftbukkit.v1_16_R3.CraftServer;
|
||||
|
||||
public class CmdRegister_16 {
|
||||
public static void onregister(){
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_1.Command, new RegisterCommands_GUI_1(DefaultValue_GUI_1.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_2.Command, new RegisterCommands_GUI_2(DefaultValue_GUI_2.Command));
|
||||
((CraftServer) Main.plugin.getServer()).getCommandMap().register(DefaultValue_GUI_3.Command, new RegisterCommands_GUI_3(DefaultValue_GUI_3.Command));
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
public class Disable {
|
||||
|
||||
public static void disableSend(String version){
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4-----------------------------------------------------------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4 _____ §9_____ _ _ _____");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4 / ____§9/ ____| | | |_ _|");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4| | §9| | __| | | | | |");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4| | §9| | |_ | | | | | |");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4| |___§9| |__| | |__| |_| |_");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4 \\_____§9\\_____|\\____/|_____|");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Autor: §6JaTiTV");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Version: §6" + version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Plugin successfully disabled.");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4-----------------------------------------------------------------------------------");
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,112 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.config.*;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Load {
|
||||
|
||||
public static void LoadSend(String version) throws InterruptedException {
|
||||
File configYML = new File(Main.thisp().getDataFolder().getPath(), "Config.yml");
|
||||
YamlConfiguration yamlConfiguration_config = YamlConfiguration.loadConfiguration(configYML);
|
||||
|
||||
if (yamlConfiguration_config.getInt("Plugin.Debug.DebugStage_(1-3)") > 3) {
|
||||
yamlConfiguration_config.set("Plugin.Debug.DebugStage_(1-3)", 3);
|
||||
}
|
||||
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2-----------------------------------------------------------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4 _____ §9_____ _ _ _____");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4 / ____§9/ ____| | | |_ _|");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4| | §9| | __| | | | | |");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4| | §9| | |_ | | | | | |");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4| |___§9| |__| | |__| |_| |_");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2 §4 \\_____§9\\_____|\\____/|_____|");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Autor: §6JaTiTV");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Version: §6" + version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Spigot: §6" + Main.Spigot);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Discord: §6" + Main.DiscordLoad);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
/*
|
||||
if (yamlConfiguration_config.getBoolean("Plugin.Debug.Enable")) {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Debugmodus is enable!!!");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Thread.sleep(5000);
|
||||
}
|
||||
|
||||
*/
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Plugin load...");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
if (Main.UpdateMSG) {
|
||||
String ver = (String) yamlConfiguration_config.get("Do_not_remove_or_change.Version");
|
||||
if (configYML.isFile()) {
|
||||
if (ver == null || !ver.equals(Main.getPlugin().getDescription().getVersion())) {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(Main.UpdateInfo);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2");
|
||||
Thread.sleep(20000);
|
||||
}
|
||||
} else {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§6Thanks for downloading and installing CommandGUI");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Thread.sleep(3000);
|
||||
}
|
||||
}
|
||||
|
||||
Config.configCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Messages_EN.messagesCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Messages_DE.messagesCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Messages_FR.messagesCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Messages_NO.messagesCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
GUI_1.configCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
GUI_2.configCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
GUI_3.configCreate(version);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Messages_Select.selectCreate();
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Vault.loadVault();
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
if (Main.PaPi){
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2PlaceholderAPI successfully connected!");
|
||||
}else{
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4PlaceholderAPI could not be connected / found!");
|
||||
}
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§8-------------------------------");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Plugin loaded successfully.");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2-----------------------------------------------------------------------------------");
|
||||
}
|
||||
}
|
@@ -0,0 +1,205 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
// -----------------------------
|
||||
// _____ _____ _ _ _____
|
||||
// / ____/ ____| | | |_ _|
|
||||
// | | | | __| | | | | |
|
||||
// | | | | |_ | | | | | |
|
||||
// | |___| |__| | |__| |_| |_
|
||||
// \_____\_____|\____/|_____|
|
||||
// -----------------------------
|
||||
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.commands.cmdManagement.*;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import de.jatitv.commandgui.listener.GUI_1;
|
||||
import de.jatitv.commandgui.listener.GUI_2;
|
||||
import de.jatitv.commandgui.listener.GUI_3;
|
||||
import net.milkbowl.vault.economy.Economy;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
import org.bukkit.craftbukkit.v1_16_R3.CraftServer;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public final class Main extends JavaPlugin {
|
||||
|
||||
// Debug Settings
|
||||
|
||||
public static Boolean Bstats = true;
|
||||
|
||||
public static Boolean Snapshot = false;
|
||||
|
||||
public static Boolean UpdateMSG = false;
|
||||
public static String UpdateInfo = DefaultValue.PrefixHC + "";
|
||||
|
||||
public static String Autor = "JaTiTV";
|
||||
public static String Spigot = "https://www.spigotmc.org/resources/commandgui-cgui.90671/";
|
||||
public static String DiscordLink = "https://discord.gg/vRyXFFterJ";
|
||||
public static String DiscordMSG = "You want to discuss and decide about current bugs, planned updates, new features?\n" +
|
||||
"Then come to our Discord ➙ " + DiscordLink;
|
||||
public static String DiscordLoad = "https://discord.gg/vRyXFFterJ";
|
||||
|
||||
// ---------------------------------------------
|
||||
|
||||
public static Main plugin;
|
||||
public static Plugin a;
|
||||
public static Economy eco = null;
|
||||
public static String update_version = null;
|
||||
public static Boolean PaPi = false;
|
||||
public static boolean minecraft1_8;
|
||||
public static boolean minecraft1_9;
|
||||
public static boolean minecraft1_10;
|
||||
public static boolean minecraft1_11;
|
||||
public static boolean minecraft1_12;
|
||||
public static boolean minecraft1_13;
|
||||
public static boolean minecraft1_14;
|
||||
public static boolean minecraft1_15;
|
||||
public static boolean minecraft1_16;
|
||||
|
||||
public static Main getPlugin() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
public static Plugin thisp() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
|
||||
// Plugin startup logic
|
||||
Logger logger = this.getLogger();
|
||||
plugin = this;
|
||||
a = this;
|
||||
minecraft1_8 = Bukkit.getServer().getClass().getPackage().getName().contains("1_8");
|
||||
minecraft1_9 = Bukkit.getServer().getClass().getPackage().getName().contains("1_9");
|
||||
minecraft1_10 = Bukkit.getServer().getClass().getPackage().getName().contains("1_10");
|
||||
minecraft1_11 = Bukkit.getServer().getClass().getPackage().getName().contains("1_11");
|
||||
minecraft1_12 = Bukkit.getServer().getClass().getPackage().getName().contains("1_12");
|
||||
minecraft1_13 = Bukkit.getServer().getClass().getPackage().getName().contains("1_13");
|
||||
minecraft1_14 = Bukkit.getServer().getClass().getPackage().getName().contains("1_14");
|
||||
minecraft1_15 = Bukkit.getServer().getClass().getPackage().getName().contains("1_15");
|
||||
minecraft1_16 = Bukkit.getServer().getClass().getPackage().getName().contains("1_16");
|
||||
|
||||
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
|
||||
PaPi = true;
|
||||
}
|
||||
|
||||
try {
|
||||
Load.LoadSend(getDescription().getVersion());
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
getCommand("commandgui").setExecutor(new CmdExecuter());
|
||||
getCommand("commandgui").setTabCompleter(new TabComplete());
|
||||
if (minecraft1_13) {
|
||||
CmdRegister_13.onregister();
|
||||
} else if (minecraft1_14) {
|
||||
CmdRegister_14.onregister();
|
||||
} else if (minecraft1_15) {
|
||||
CmdRegister_15.onregister();
|
||||
} else if (minecraft1_16) {
|
||||
CmdRegister_16.onregister();
|
||||
}
|
||||
|
||||
|
||||
Permissions.addPermission();
|
||||
Bukkit.getServer().getPluginManager().registerEvents(new GUI_1(), this);
|
||||
Bukkit.getServer().getPluginManager().registerEvents(new GUI_2(), this);
|
||||
Bukkit.getServer().getPluginManager().registerEvents(new GUI_3(), this);
|
||||
|
||||
if (Main.Bstats) {
|
||||
int pluginId = 10840; // <-- Replace with the id of your plugin!
|
||||
Metrics metrics = new Metrics(this, pluginId);
|
||||
metrics.addCustomChart(new Metrics.SimplePie("updatecheckonjoin", () -> String.valueOf(DefaultValue.UpdateCheckOnJoin)));
|
||||
} else {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4\n" + DefaultValue.PrefixHC + "§4Bstats is disabled!");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
}
|
||||
}.runTaskLater(Main.getPlugin(), 200L);
|
||||
}
|
||||
|
||||
// Optional: Add custom charts
|
||||
// metrics.addCustomChart(new Metrics.SimplePie("chart_id", () -> "My value"));
|
||||
|
||||
int taskID = Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
|
||||
public void run() {
|
||||
(new UpdateChecker((JavaPlugin) Main.thisp(), 90671)).getVersion((version) -> {
|
||||
String foundVersion = Main.thisp().getDescription().getVersion();
|
||||
update_version = version;
|
||||
if (!foundVersion.equalsIgnoreCase(version)) {
|
||||
String updateFound = (DefaultValue.PrefixHC + "§6A new version of §8[§4Command§9GUI§8]§6 was found!");
|
||||
String yourVersion = (DefaultValue.PrefixHC + "§6Your version §c" + foundVersion);
|
||||
String currentVersion = (DefaultValue.PrefixHC + "§6Current version: §a" + version);
|
||||
String downloadVersion = (DefaultValue.PrefixHC + "§6You can download it here: §e" + Spigot);
|
||||
String discord = (DefaultValue.PrefixHC + "§6You can find more information about §8[§4Command§9GUI§8]§6 on Discord: §e" + DiscordLink);
|
||||
String SnapshotConsole = (DefaultValue.PrefixHC + "§6" +
|
||||
"\n" + DefaultValue.PrefixHC + "§4Please note!§6" +
|
||||
"\n" + DefaultValue.PrefixHC + "§4You are using the §6" + foundVersion + " §4of §4Command§9GUI!§6" +
|
||||
"\n" + DefaultValue.PrefixHC + "§4There may be errors and it is possible that not all functions work as they should!§6" +
|
||||
"\n" + DefaultValue.PrefixHC + "§2If there are any bugs, please report them to me via Discord so I can fix them!§6" +
|
||||
"\n" + DefaultValue.PrefixHC + "§7" + DiscordLink);
|
||||
|
||||
if (Main.Snapshot) {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(SnapshotConsole);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
}
|
||||
}.runTaskLater(Main.getPlugin(), 300L);
|
||||
}
|
||||
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
Bukkit.getConsoleSender().sendMessage(updateFound);
|
||||
Bukkit.getConsoleSender().sendMessage(yourVersion);
|
||||
Bukkit.getConsoleSender().sendMessage(currentVersion);
|
||||
Bukkit.getConsoleSender().sendMessage(downloadVersion);
|
||||
Bukkit.getConsoleSender().sendMessage(discord);
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + " ");
|
||||
}
|
||||
}.runTaskLater(Main.getPlugin(), 600L);
|
||||
} else {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2No update found");
|
||||
}
|
||||
}.runTaskLater(Main.getPlugin(), 120L);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}, 0L, 20 * 60 * 60L);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
// Plugin shutdown logic
|
||||
Disable.disableSend(getDescription().getVersion());
|
||||
}
|
||||
}
|
@@ -0,0 +1,852 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.lang.reflect.Method;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.logging.Level;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.zip.GZIPOutputStream;
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class Metrics {
|
||||
|
||||
private final Plugin plugin;
|
||||
|
||||
private final MetricsBase metricsBase;
|
||||
|
||||
/**
|
||||
* Creates a new Metrics instance.
|
||||
*
|
||||
* @param plugin Your plugin instance.
|
||||
* @param serviceId The id of the service. It can be found at <a
|
||||
* href="https://bstats.org/what-is-my-plugin-id">What is my plugin id?</a>
|
||||
*/
|
||||
public Metrics(JavaPlugin plugin, int serviceId) {
|
||||
this.plugin = plugin;
|
||||
// Get the config file
|
||||
File bStatsFolder = new File(plugin.getDataFolder().getParentFile(), "bStats");
|
||||
File configFile = new File(bStatsFolder, "config.yml");
|
||||
YamlConfiguration config = YamlConfiguration.loadConfiguration(configFile);
|
||||
if (!config.isSet("serverUuid")) {
|
||||
config.addDefault("enabled", true);
|
||||
config.addDefault("serverUuid", UUID.randomUUID().toString());
|
||||
config.addDefault("logFailedRequests", false);
|
||||
config.addDefault("logSentData", false);
|
||||
config.addDefault("logResponseStatusText", false);
|
||||
// Inform the server owners about bStats
|
||||
config
|
||||
.options()
|
||||
.header(
|
||||
"bStats (https://bStats.org) collects some basic information for plugin authors, like how\n"
|
||||
+ "many people use their plugin and their total player count. It's recommended to keep bStats\n"
|
||||
+ "enabled, but if you're not comfortable with this, you can turn this setting off. There is no\n"
|
||||
+ "performance penalty associated with having metrics enabled, and data sent to bStats is fully\n"
|
||||
+ "anonymous.")
|
||||
.copyDefaults(true);
|
||||
try {
|
||||
config.save(configFile);
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
}
|
||||
// Load the data
|
||||
boolean enabled = config.getBoolean("enabled", true);
|
||||
String serverUUID = config.getString("serverUuid");
|
||||
boolean logErrors = config.getBoolean("logFailedRequests", false);
|
||||
boolean logSentData = config.getBoolean("logSentData", false);
|
||||
boolean logResponseStatusText = config.getBoolean("logResponseStatusText", false);
|
||||
metricsBase =
|
||||
new MetricsBase(
|
||||
"bukkit",
|
||||
serverUUID,
|
||||
serviceId,
|
||||
enabled,
|
||||
this::appendPlatformData,
|
||||
this::appendServiceData,
|
||||
submitDataTask -> Bukkit.getScheduler().runTask(plugin, submitDataTask),
|
||||
plugin::isEnabled,
|
||||
(message, error) -> this.plugin.getLogger().log(Level.WARNING, message, error),
|
||||
(message) -> this.plugin.getLogger().log(Level.INFO, message),
|
||||
logErrors,
|
||||
logSentData,
|
||||
logResponseStatusText);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a custom chart.
|
||||
*
|
||||
* @param chart The chart to add.
|
||||
*/
|
||||
public void addCustomChart(CustomChart chart) {
|
||||
metricsBase.addCustomChart(chart);
|
||||
}
|
||||
|
||||
private void appendPlatformData(JsonObjectBuilder builder) {
|
||||
builder.appendField("playerAmount", getPlayerAmount());
|
||||
builder.appendField("onlineMode", Bukkit.getOnlineMode() ? 1 : 0);
|
||||
builder.appendField("bukkitVersion", Bukkit.getVersion());
|
||||
builder.appendField("bukkitName", Bukkit.getName());
|
||||
builder.appendField("javaVersion", System.getProperty("java.version"));
|
||||
builder.appendField("osName", System.getProperty("os.name"));
|
||||
builder.appendField("osArch", System.getProperty("os.arch"));
|
||||
builder.appendField("osVersion", System.getProperty("os.version"));
|
||||
builder.appendField("coreCount", Runtime.getRuntime().availableProcessors());
|
||||
}
|
||||
|
||||
private void appendServiceData(JsonObjectBuilder builder) {
|
||||
builder.appendField("pluginVersion", plugin.getDescription().getVersion());
|
||||
}
|
||||
|
||||
private int getPlayerAmount() {
|
||||
try {
|
||||
// Around MC 1.8 the return type was changed from an array to a collection,
|
||||
// This fixes java.lang.NoSuchMethodError:
|
||||
// org.bukkit.Bukkit.getOnlinePlayers()Ljava/util/Collection;
|
||||
Method onlinePlayersMethod = Class.forName("org.bukkit.Server").getMethod("getOnlinePlayers");
|
||||
return onlinePlayersMethod.getReturnType().equals(Collection.class)
|
||||
? ((Collection<?>) onlinePlayersMethod.invoke(Bukkit.getServer())).size()
|
||||
: ((Player[]) onlinePlayersMethod.invoke(Bukkit.getServer())).length;
|
||||
} catch (Exception e) {
|
||||
// Just use the new method if the reflection failed
|
||||
return Bukkit.getOnlinePlayers().size();
|
||||
}
|
||||
}
|
||||
|
||||
public static class MetricsBase {
|
||||
|
||||
/** The version of the Metrics class. */
|
||||
public static final String METRICS_VERSION = "2.2.1";
|
||||
|
||||
private static final ScheduledExecutorService scheduler =
|
||||
Executors.newScheduledThreadPool(1, task -> new Thread(task, "bStats-Metrics"));
|
||||
|
||||
private static final String REPORT_URL = "https://bStats.org/api/v2/data/%s";
|
||||
|
||||
private final String platform;
|
||||
|
||||
private final String serverUuid;
|
||||
|
||||
private final int serviceId;
|
||||
|
||||
private final Consumer<JsonObjectBuilder> appendPlatformDataConsumer;
|
||||
|
||||
private final Consumer<JsonObjectBuilder> appendServiceDataConsumer;
|
||||
|
||||
private final Consumer<Runnable> submitTaskConsumer;
|
||||
|
||||
private final Supplier<Boolean> checkServiceEnabledSupplier;
|
||||
|
||||
private final BiConsumer<String, Throwable> errorLogger;
|
||||
|
||||
private final Consumer<String> infoLogger;
|
||||
|
||||
private final boolean logErrors;
|
||||
|
||||
private final boolean logSentData;
|
||||
|
||||
private final boolean logResponseStatusText;
|
||||
|
||||
private final Set<CustomChart> customCharts = new HashSet<>();
|
||||
|
||||
private final boolean enabled;
|
||||
|
||||
/**
|
||||
* Creates a new MetricsBase class instance.
|
||||
*
|
||||
* @param platform The platform of the service.
|
||||
* @param serviceId The id of the service.
|
||||
* @param serverUuid The server uuid.
|
||||
* @param enabled Whether or not data sending is enabled.
|
||||
* @param appendPlatformDataConsumer A consumer that receives a {@code JsonObjectBuilder} and
|
||||
* appends all platform-specific data.
|
||||
* @param appendServiceDataConsumer A consumer that receives a {@code JsonObjectBuilder} and
|
||||
* appends all service-specific data.
|
||||
* @param submitTaskConsumer A consumer that takes a runnable with the submit task. This can be
|
||||
* used to delegate the data collection to a another thread to prevent errors caused by
|
||||
* concurrency. Can be {@code null}.
|
||||
* @param checkServiceEnabledSupplier A supplier to check if the service is still enabled.
|
||||
* @param errorLogger A consumer that accepts log message and an error.
|
||||
* @param infoLogger A consumer that accepts info log messages.
|
||||
* @param logErrors Whether or not errors should be logged.
|
||||
* @param logSentData Whether or not the sent data should be logged.
|
||||
* @param logResponseStatusText Whether or not the response status text should be logged.
|
||||
*/
|
||||
public MetricsBase(
|
||||
String platform,
|
||||
String serverUuid,
|
||||
int serviceId,
|
||||
boolean enabled,
|
||||
Consumer<JsonObjectBuilder> appendPlatformDataConsumer,
|
||||
Consumer<JsonObjectBuilder> appendServiceDataConsumer,
|
||||
Consumer<Runnable> submitTaskConsumer,
|
||||
Supplier<Boolean> checkServiceEnabledSupplier,
|
||||
BiConsumer<String, Throwable> errorLogger,
|
||||
Consumer<String> infoLogger,
|
||||
boolean logErrors,
|
||||
boolean logSentData,
|
||||
boolean logResponseStatusText) {
|
||||
this.platform = platform;
|
||||
this.serverUuid = serverUuid;
|
||||
this.serviceId = serviceId;
|
||||
this.enabled = enabled;
|
||||
this.appendPlatformDataConsumer = appendPlatformDataConsumer;
|
||||
this.appendServiceDataConsumer = appendServiceDataConsumer;
|
||||
this.submitTaskConsumer = submitTaskConsumer;
|
||||
this.checkServiceEnabledSupplier = checkServiceEnabledSupplier;
|
||||
this.errorLogger = errorLogger;
|
||||
this.infoLogger = infoLogger;
|
||||
this.logErrors = logErrors;
|
||||
this.logSentData = logSentData;
|
||||
this.logResponseStatusText = logResponseStatusText;
|
||||
checkRelocation();
|
||||
if (enabled) {
|
||||
startSubmitting();
|
||||
}
|
||||
}
|
||||
|
||||
public void addCustomChart(CustomChart chart) {
|
||||
this.customCharts.add(chart);
|
||||
}
|
||||
|
||||
private void startSubmitting() {
|
||||
final Runnable submitTask =
|
||||
() -> {
|
||||
if (!enabled || !checkServiceEnabledSupplier.get()) {
|
||||
// Submitting data or service is disabled
|
||||
scheduler.shutdown();
|
||||
return;
|
||||
}
|
||||
if (submitTaskConsumer != null) {
|
||||
submitTaskConsumer.accept(this::submitData);
|
||||
} else {
|
||||
this.submitData();
|
||||
}
|
||||
};
|
||||
// Many servers tend to restart at a fixed time at xx:00 which causes an uneven distribution
|
||||
// of requests on the
|
||||
// bStats backend. To circumvent this problem, we introduce some randomness into the initial
|
||||
// and second delay.
|
||||
// WARNING: You must not modify and part of this Metrics class, including the submit delay or
|
||||
// frequency!
|
||||
// WARNING: Modifying this code will get your plugin banned on bStats. Just don't do it!
|
||||
long initialDelay = (long) (1000 * 60 * (3 + Math.random() * 3));
|
||||
long secondDelay = (long) (1000 * 60 * (Math.random() * 30));
|
||||
scheduler.schedule(submitTask, initialDelay, TimeUnit.MILLISECONDS);
|
||||
scheduler.scheduleAtFixedRate(
|
||||
submitTask, initialDelay + secondDelay, 1000 * 60 * 30, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
private void submitData() {
|
||||
final JsonObjectBuilder baseJsonBuilder = new JsonObjectBuilder();
|
||||
appendPlatformDataConsumer.accept(baseJsonBuilder);
|
||||
final JsonObjectBuilder serviceJsonBuilder = new JsonObjectBuilder();
|
||||
appendServiceDataConsumer.accept(serviceJsonBuilder);
|
||||
JsonObjectBuilder.JsonObject[] chartData =
|
||||
customCharts.stream()
|
||||
.map(customChart -> customChart.getRequestJsonObject(errorLogger, logErrors))
|
||||
.filter(Objects::nonNull)
|
||||
.toArray(JsonObjectBuilder.JsonObject[]::new);
|
||||
serviceJsonBuilder.appendField("id", serviceId);
|
||||
serviceJsonBuilder.appendField("customCharts", chartData);
|
||||
baseJsonBuilder.appendField("service", serviceJsonBuilder.build());
|
||||
baseJsonBuilder.appendField("serverUUID", serverUuid);
|
||||
baseJsonBuilder.appendField("metricsVersion", METRICS_VERSION);
|
||||
JsonObjectBuilder.JsonObject data = baseJsonBuilder.build();
|
||||
scheduler.execute(
|
||||
() -> {
|
||||
try {
|
||||
// Send the data
|
||||
sendData(data);
|
||||
} catch (Exception e) {
|
||||
// Something went wrong! :(
|
||||
if (logErrors) {
|
||||
errorLogger.accept("Could not submit bStats metrics data", e);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void sendData(JsonObjectBuilder.JsonObject data) throws Exception {
|
||||
if (logSentData) {
|
||||
infoLogger.accept("Sent bStats metrics data: " + data.toString());
|
||||
}
|
||||
String url = String.format(REPORT_URL, platform);
|
||||
HttpsURLConnection connection = (HttpsURLConnection) new URL(url).openConnection();
|
||||
// Compress the data to save bandwidth
|
||||
byte[] compressedData = compress(data.toString());
|
||||
connection.setRequestMethod("POST");
|
||||
connection.addRequestProperty("Accept", "application/json");
|
||||
connection.addRequestProperty("Connection", "close");
|
||||
connection.addRequestProperty("Content-Encoding", "gzip");
|
||||
connection.addRequestProperty("Content-Length", String.valueOf(compressedData.length));
|
||||
connection.setRequestProperty("Content-Type", "application/json");
|
||||
connection.setRequestProperty("User-Agent", "Metrics-Service/1");
|
||||
connection.setDoOutput(true);
|
||||
try (DataOutputStream outputStream = new DataOutputStream(connection.getOutputStream())) {
|
||||
outputStream.write(compressedData);
|
||||
}
|
||||
StringBuilder builder = new StringBuilder();
|
||||
try (BufferedReader bufferedReader =
|
||||
new BufferedReader(new InputStreamReader(connection.getInputStream()))) {
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
builder.append(line);
|
||||
}
|
||||
}
|
||||
if (logResponseStatusText) {
|
||||
infoLogger.accept("Sent data to bStats and received response: " + builder);
|
||||
}
|
||||
}
|
||||
|
||||
/** Checks that the class was properly relocated. */
|
||||
private void checkRelocation() {
|
||||
// You can use the property to disable the check in your test environment
|
||||
if (System.getProperty("bstats.relocatecheck") == null
|
||||
|| !System.getProperty("bstats.relocatecheck").equals("false")) {
|
||||
// Maven's Relocate is clever and changes strings, too. So we have to use this little
|
||||
// "trick" ... :D
|
||||
final String defaultPackage =
|
||||
new String(new byte[] {'o', 'r', 'g', '.', 'b', 's', 't', 'a', 't', 's'});
|
||||
final String examplePackage =
|
||||
new String(new byte[] {'y', 'o', 'u', 'r', '.', 'p', 'a', 'c', 'k', 'a', 'g', 'e'});
|
||||
// We want to make sure no one just copy & pastes the example and uses the wrong package
|
||||
// names
|
||||
if (MetricsBase.class.getPackage().getName().startsWith(defaultPackage)
|
||||
|| MetricsBase.class.getPackage().getName().startsWith(examplePackage)) {
|
||||
throw new IllegalStateException("bStats Metrics class has not been relocated correctly!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gzips the given string.
|
||||
*
|
||||
* @param str The string to gzip.
|
||||
* @return The gzipped string.
|
||||
*/
|
||||
private static byte[] compress(final String str) throws IOException {
|
||||
if (str == null) {
|
||||
return null;
|
||||
}
|
||||
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
||||
try (GZIPOutputStream gzip = new GZIPOutputStream(outputStream)) {
|
||||
gzip.write(str.getBytes(StandardCharsets.UTF_8));
|
||||
}
|
||||
return outputStream.toByteArray();
|
||||
}
|
||||
}
|
||||
|
||||
public static class AdvancedBarChart extends CustomChart {
|
||||
|
||||
private final Callable<Map<String, int[]>> callable;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param chartId The id of the chart.
|
||||
* @param callable The callable which is used to request the chart data.
|
||||
*/
|
||||
public AdvancedBarChart(String chartId, Callable<Map<String, int[]>> callable) {
|
||||
super(chartId);
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected JsonObjectBuilder.JsonObject getChartData() throws Exception {
|
||||
JsonObjectBuilder valuesBuilder = new JsonObjectBuilder();
|
||||
Map<String, int[]> map = callable.call();
|
||||
if (map == null || map.isEmpty()) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
boolean allSkipped = true;
|
||||
for (Map.Entry<String, int[]> entry : map.entrySet()) {
|
||||
if (entry.getValue().length == 0) {
|
||||
// Skip this invalid
|
||||
continue;
|
||||
}
|
||||
allSkipped = false;
|
||||
valuesBuilder.appendField(entry.getKey(), entry.getValue());
|
||||
}
|
||||
if (allSkipped) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
return new JsonObjectBuilder().appendField("values", valuesBuilder.build()).build();
|
||||
}
|
||||
}
|
||||
|
||||
public static class SimpleBarChart extends CustomChart {
|
||||
|
||||
private final Callable<Map<String, Integer>> callable;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param chartId The id of the chart.
|
||||
* @param callable The callable which is used to request the chart data.
|
||||
*/
|
||||
public SimpleBarChart(String chartId, Callable<Map<String, Integer>> callable) {
|
||||
super(chartId);
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected JsonObjectBuilder.JsonObject getChartData() throws Exception {
|
||||
JsonObjectBuilder valuesBuilder = new JsonObjectBuilder();
|
||||
Map<String, Integer> map = callable.call();
|
||||
if (map == null || map.isEmpty()) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
for (Map.Entry<String, Integer> entry : map.entrySet()) {
|
||||
valuesBuilder.appendField(entry.getKey(), new int[] {entry.getValue()});
|
||||
}
|
||||
return new JsonObjectBuilder().appendField("values", valuesBuilder.build()).build();
|
||||
}
|
||||
}
|
||||
|
||||
public static class MultiLineChart extends CustomChart {
|
||||
|
||||
private final Callable<Map<String, Integer>> callable;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param chartId The id of the chart.
|
||||
* @param callable The callable which is used to request the chart data.
|
||||
*/
|
||||
public MultiLineChart(String chartId, Callable<Map<String, Integer>> callable) {
|
||||
super(chartId);
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected JsonObjectBuilder.JsonObject getChartData() throws Exception {
|
||||
JsonObjectBuilder valuesBuilder = new JsonObjectBuilder();
|
||||
Map<String, Integer> map = callable.call();
|
||||
if (map == null || map.isEmpty()) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
boolean allSkipped = true;
|
||||
for (Map.Entry<String, Integer> entry : map.entrySet()) {
|
||||
if (entry.getValue() == 0) {
|
||||
// Skip this invalid
|
||||
continue;
|
||||
}
|
||||
allSkipped = false;
|
||||
valuesBuilder.appendField(entry.getKey(), entry.getValue());
|
||||
}
|
||||
if (allSkipped) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
return new JsonObjectBuilder().appendField("values", valuesBuilder.build()).build();
|
||||
}
|
||||
}
|
||||
|
||||
public static class AdvancedPie extends CustomChart {
|
||||
|
||||
private final Callable<Map<String, Integer>> callable;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param chartId The id of the chart.
|
||||
* @param callable The callable which is used to request the chart data.
|
||||
*/
|
||||
public AdvancedPie(String chartId, Callable<Map<String, Integer>> callable) {
|
||||
super(chartId);
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected JsonObjectBuilder.JsonObject getChartData() throws Exception {
|
||||
JsonObjectBuilder valuesBuilder = new JsonObjectBuilder();
|
||||
Map<String, Integer> map = callable.call();
|
||||
if (map == null || map.isEmpty()) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
boolean allSkipped = true;
|
||||
for (Map.Entry<String, Integer> entry : map.entrySet()) {
|
||||
if (entry.getValue() == 0) {
|
||||
// Skip this invalid
|
||||
continue;
|
||||
}
|
||||
allSkipped = false;
|
||||
valuesBuilder.appendField(entry.getKey(), entry.getValue());
|
||||
}
|
||||
if (allSkipped) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
return new JsonObjectBuilder().appendField("values", valuesBuilder.build()).build();
|
||||
}
|
||||
}
|
||||
|
||||
public abstract static class CustomChart {
|
||||
|
||||
private final String chartId;
|
||||
|
||||
protected CustomChart(String chartId) {
|
||||
if (chartId == null) {
|
||||
throw new IllegalArgumentException("chartId must not be null");
|
||||
}
|
||||
this.chartId = chartId;
|
||||
}
|
||||
|
||||
public JsonObjectBuilder.JsonObject getRequestJsonObject(
|
||||
BiConsumer<String, Throwable> errorLogger, boolean logErrors) {
|
||||
JsonObjectBuilder builder = new JsonObjectBuilder();
|
||||
builder.appendField("chartId", chartId);
|
||||
try {
|
||||
JsonObjectBuilder.JsonObject data = getChartData();
|
||||
if (data == null) {
|
||||
// If the data is null we don't send the chart.
|
||||
return null;
|
||||
}
|
||||
builder.appendField("data", data);
|
||||
} catch (Throwable t) {
|
||||
if (logErrors) {
|
||||
errorLogger.accept("Failed to get data for custom chart with id " + chartId, t);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
protected abstract JsonObjectBuilder.JsonObject getChartData() throws Exception;
|
||||
}
|
||||
|
||||
public static class SingleLineChart extends CustomChart {
|
||||
|
||||
private final Callable<Integer> callable;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param chartId The id of the chart.
|
||||
* @param callable The callable which is used to request the chart data.
|
||||
*/
|
||||
public SingleLineChart(String chartId, Callable<Integer> callable) {
|
||||
super(chartId);
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected JsonObjectBuilder.JsonObject getChartData() throws Exception {
|
||||
int value = callable.call();
|
||||
if (value == 0) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
return new JsonObjectBuilder().appendField("value", value).build();
|
||||
}
|
||||
}
|
||||
|
||||
public static class SimplePie extends CustomChart {
|
||||
|
||||
private final Callable<String> callable;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param chartId The id of the chart.
|
||||
* @param callable The callable which is used to request the chart data.
|
||||
*/
|
||||
public SimplePie(String chartId, Callable<String> callable) {
|
||||
super(chartId);
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected JsonObjectBuilder.JsonObject getChartData() throws Exception {
|
||||
String value = callable.call();
|
||||
if (value == null || value.isEmpty()) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
return new JsonObjectBuilder().appendField("value", value).build();
|
||||
}
|
||||
}
|
||||
|
||||
public static class DrilldownPie extends CustomChart {
|
||||
|
||||
private final Callable<Map<String, Map<String, Integer>>> callable;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param chartId The id of the chart.
|
||||
* @param callable The callable which is used to request the chart data.
|
||||
*/
|
||||
public DrilldownPie(String chartId, Callable<Map<String, Map<String, Integer>>> callable) {
|
||||
super(chartId);
|
||||
this.callable = callable;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonObjectBuilder.JsonObject getChartData() throws Exception {
|
||||
JsonObjectBuilder valuesBuilder = new JsonObjectBuilder();
|
||||
Map<String, Map<String, Integer>> map = callable.call();
|
||||
if (map == null || map.isEmpty()) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
boolean reallyAllSkipped = true;
|
||||
for (Map.Entry<String, Map<String, Integer>> entryValues : map.entrySet()) {
|
||||
JsonObjectBuilder valueBuilder = new JsonObjectBuilder();
|
||||
boolean allSkipped = true;
|
||||
for (Map.Entry<String, Integer> valueEntry : map.get(entryValues.getKey()).entrySet()) {
|
||||
valueBuilder.appendField(valueEntry.getKey(), valueEntry.getValue());
|
||||
allSkipped = false;
|
||||
}
|
||||
if (!allSkipped) {
|
||||
reallyAllSkipped = false;
|
||||
valuesBuilder.appendField(entryValues.getKey(), valueBuilder.build());
|
||||
}
|
||||
}
|
||||
if (reallyAllSkipped) {
|
||||
// Null = skip the chart
|
||||
return null;
|
||||
}
|
||||
return new JsonObjectBuilder().appendField("values", valuesBuilder.build()).build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* An extremely simple JSON builder.
|
||||
*
|
||||
* <p>While this class is neither feature-rich nor the most performant one, it's sufficient enough
|
||||
* for its use-case.
|
||||
*/
|
||||
public static class JsonObjectBuilder {
|
||||
|
||||
private StringBuilder builder = new StringBuilder();
|
||||
|
||||
private boolean hasAtLeastOneField = false;
|
||||
|
||||
public JsonObjectBuilder() {
|
||||
builder.append("{");
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends a null field to the JSON.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
public JsonObjectBuilder appendNull(String key) {
|
||||
appendFieldUnescaped(key, "null");
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends a string field to the JSON.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @param value The value of the field.
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
public JsonObjectBuilder appendField(String key, String value) {
|
||||
if (value == null) {
|
||||
throw new IllegalArgumentException("JSON value must not be null");
|
||||
}
|
||||
appendFieldUnescaped(key, "\"" + escape(value) + "\"");
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends an integer field to the JSON.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @param value The value of the field.
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
public JsonObjectBuilder appendField(String key, int value) {
|
||||
appendFieldUnescaped(key, String.valueOf(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends an object to the JSON.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @param object The object.
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
public JsonObjectBuilder appendField(String key, JsonObject object) {
|
||||
if (object == null) {
|
||||
throw new IllegalArgumentException("JSON object must not be null");
|
||||
}
|
||||
appendFieldUnescaped(key, object.toString());
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends a string array to the JSON.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @param values The string array.
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
public JsonObjectBuilder appendField(String key, String[] values) {
|
||||
if (values == null) {
|
||||
throw new IllegalArgumentException("JSON values must not be null");
|
||||
}
|
||||
String escapedValues =
|
||||
Arrays.stream(values)
|
||||
.map(value -> "\"" + escape(value) + "\"")
|
||||
.collect(Collectors.joining(","));
|
||||
appendFieldUnescaped(key, "[" + escapedValues + "]");
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends an integer array to the JSON.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @param values The integer array.
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
public JsonObjectBuilder appendField(String key, int[] values) {
|
||||
if (values == null) {
|
||||
throw new IllegalArgumentException("JSON values must not be null");
|
||||
}
|
||||
String escapedValues =
|
||||
Arrays.stream(values).mapToObj(String::valueOf).collect(Collectors.joining(","));
|
||||
appendFieldUnescaped(key, "[" + escapedValues + "]");
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends an object array to the JSON.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @param values The integer array.
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
public JsonObjectBuilder appendField(String key, JsonObject[] values) {
|
||||
if (values == null) {
|
||||
throw new IllegalArgumentException("JSON values must not be null");
|
||||
}
|
||||
String escapedValues =
|
||||
Arrays.stream(values).map(JsonObject::toString).collect(Collectors.joining(","));
|
||||
appendFieldUnescaped(key, "[" + escapedValues + "]");
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends a field to the object.
|
||||
*
|
||||
* @param key The key of the field.
|
||||
* @param escapedValue The escaped value of the field.
|
||||
*/
|
||||
private void appendFieldUnescaped(String key, String escapedValue) {
|
||||
if (builder == null) {
|
||||
throw new IllegalStateException("JSON has already been built");
|
||||
}
|
||||
if (key == null) {
|
||||
throw new IllegalArgumentException("JSON key must not be null");
|
||||
}
|
||||
if (hasAtLeastOneField) {
|
||||
builder.append(",");
|
||||
}
|
||||
builder.append("\"").append(escape(key)).append("\":").append(escapedValue);
|
||||
hasAtLeastOneField = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the JSON string and invalidates this builder.
|
||||
*
|
||||
* @return The built JSON string.
|
||||
*/
|
||||
public JsonObject build() {
|
||||
if (builder == null) {
|
||||
throw new IllegalStateException("JSON has already been built");
|
||||
}
|
||||
JsonObject object = new JsonObject(builder.append("}").toString());
|
||||
builder = null;
|
||||
return object;
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes the given string like stated in https://www.ietf.org/rfc/rfc4627.txt.
|
||||
*
|
||||
* <p>This method escapes only the necessary characters '"', '\'. and '\u0000' - '\u001F'.
|
||||
* Compact escapes are not used (e.g., '\n' is escaped as "\u000a" and not as "\n").
|
||||
*
|
||||
* @param value The value to escape.
|
||||
* @return The escaped value.
|
||||
*/
|
||||
private static String escape(String value) {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
for (int i = 0; i < value.length(); i++) {
|
||||
char c = value.charAt(i);
|
||||
if (c == '"') {
|
||||
builder.append("\\\"");
|
||||
} else if (c == '\\') {
|
||||
builder.append("\\\\");
|
||||
} else if (c <= '\u000F') {
|
||||
builder.append("\\u000").append(Integer.toHexString(c));
|
||||
} else if (c <= '\u001F') {
|
||||
builder.append("\\u00").append(Integer.toHexString(c));
|
||||
} else {
|
||||
builder.append(c);
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* A super simple representation of a JSON object.
|
||||
*
|
||||
* <p>This class only exists to make methods of the {@link JsonObjectBuilder} type-safe and not
|
||||
* allow a raw string inputs for methods like {@link JsonObjectBuilder#appendField(String,
|
||||
* JsonObject)}.
|
||||
*/
|
||||
public static class JsonObject {
|
||||
|
||||
private final String value;
|
||||
|
||||
private JsonObject(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,221 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_1;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_2;
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue_GUI_3;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.permissions.Permission;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class Permissions extends JavaPlugin {
|
||||
|
||||
public static void addPermission(){
|
||||
|
||||
if (DefaultValue_GUI_1.Command_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.command.gui1"));
|
||||
if (DefaultValue_GUI_2.Command_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.command.gui2"));
|
||||
if (DefaultValue_GUI_3.Command_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.command.gui3"));
|
||||
|
||||
if (DefaultValue_GUI_1.GiveUseItemOnFirstJoin_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.giveuseitemonfirstjoin.gui1"));
|
||||
if (DefaultValue_GUI_2.GiveUseItemOnFirstJoin_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.giveuseitemonfirstjoin.gui2"));
|
||||
if (DefaultValue_GUI_3.GiveUseItemOnFirstJoin_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.giveuseitemonfirstjoin.gui3"));
|
||||
|
||||
if (DefaultValue_GUI_1.Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1"));
|
||||
if (DefaultValue_GUI_2.Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2"));
|
||||
if (DefaultValue_GUI_3.Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3"));
|
||||
|
||||
if (DefaultValue_GUI_1.L1_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot1"));
|
||||
if (DefaultValue_GUI_1.L1_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot2"));
|
||||
if (DefaultValue_GUI_1.L1_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot3"));
|
||||
if (DefaultValue_GUI_1.L1_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot4"));
|
||||
if (DefaultValue_GUI_1.L1_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot5"));
|
||||
if (DefaultValue_GUI_1.L1_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot6"));
|
||||
if (DefaultValue_GUI_1.L1_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot7"));
|
||||
if (DefaultValue_GUI_1.L1_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot8"));
|
||||
if (DefaultValue_GUI_1.L1_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line1.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_1.L2_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot1"));
|
||||
if (DefaultValue_GUI_1.L2_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot2"));
|
||||
if (DefaultValue_GUI_1.L2_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot3"));
|
||||
if (DefaultValue_GUI_1.L2_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot4"));
|
||||
if (DefaultValue_GUI_1.L2_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot5"));
|
||||
if (DefaultValue_GUI_1.L2_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot6"));
|
||||
if (DefaultValue_GUI_1.L2_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot7"));
|
||||
if (DefaultValue_GUI_1.L2_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot8"));
|
||||
if (DefaultValue_GUI_1.L2_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line2.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_1.L3_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot1"));
|
||||
if (DefaultValue_GUI_1.L3_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot2"));
|
||||
if (DefaultValue_GUI_1.L3_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot3"));
|
||||
if (DefaultValue_GUI_1.L3_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot4"));
|
||||
if (DefaultValue_GUI_1.L3_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot5"));
|
||||
if (DefaultValue_GUI_1.L3_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot6"));
|
||||
if (DefaultValue_GUI_1.L3_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot7"));
|
||||
if (DefaultValue_GUI_1.L3_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot8"));
|
||||
if (DefaultValue_GUI_1.L3_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line3.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_1.L4_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot1"));
|
||||
if (DefaultValue_GUI_1.L4_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot2"));
|
||||
if (DefaultValue_GUI_1.L4_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot3"));
|
||||
if (DefaultValue_GUI_1.L4_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot4"));
|
||||
if (DefaultValue_GUI_1.L4_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot5"));
|
||||
if (DefaultValue_GUI_1.L4_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot6"));
|
||||
if (DefaultValue_GUI_1.L4_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot7"));
|
||||
if (DefaultValue_GUI_1.L4_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot8"));
|
||||
if (DefaultValue_GUI_1.L4_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line4.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_1.L5_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot1"));
|
||||
if (DefaultValue_GUI_1.L5_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot2"));
|
||||
if (DefaultValue_GUI_1.L5_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot3"));
|
||||
if (DefaultValue_GUI_1.L5_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot4"));
|
||||
if (DefaultValue_GUI_1.L5_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot5"));
|
||||
if (DefaultValue_GUI_1.L5_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot6"));
|
||||
if (DefaultValue_GUI_1.L5_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot7"));
|
||||
if (DefaultValue_GUI_1.L5_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot8"));
|
||||
if (DefaultValue_GUI_1.L5_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line5.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_1.L6_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot1"));
|
||||
if (DefaultValue_GUI_1.L6_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot2"));
|
||||
if (DefaultValue_GUI_1.L6_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot3"));
|
||||
if (DefaultValue_GUI_1.L6_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot4"));
|
||||
if (DefaultValue_GUI_1.L6_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot5"));
|
||||
if (DefaultValue_GUI_1.L6_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot6"));
|
||||
if (DefaultValue_GUI_1.L6_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot7"));
|
||||
if (DefaultValue_GUI_1.L6_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot8"));
|
||||
if (DefaultValue_GUI_1.L6_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui1.line6.slot9"));
|
||||
|
||||
|
||||
/**
|
||||
* GUI2
|
||||
*/
|
||||
|
||||
if (DefaultValue_GUI_2.L1_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot1"));
|
||||
if (DefaultValue_GUI_2.L1_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot2"));
|
||||
if (DefaultValue_GUI_2.L1_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot3"));
|
||||
if (DefaultValue_GUI_2.L1_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot4"));
|
||||
if (DefaultValue_GUI_2.L1_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot5"));
|
||||
if (DefaultValue_GUI_2.L1_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot6"));
|
||||
if (DefaultValue_GUI_2.L1_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot7"));
|
||||
if (DefaultValue_GUI_2.L1_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot8"));
|
||||
if (DefaultValue_GUI_2.L1_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line1.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_2.L2_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot1"));
|
||||
if (DefaultValue_GUI_2.L2_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot2"));
|
||||
if (DefaultValue_GUI_2.L2_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot3"));
|
||||
if (DefaultValue_GUI_2.L2_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot4"));
|
||||
if (DefaultValue_GUI_2.L2_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot5"));
|
||||
if (DefaultValue_GUI_2.L2_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot6"));
|
||||
if (DefaultValue_GUI_2.L2_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot7"));
|
||||
if (DefaultValue_GUI_2.L2_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot8"));
|
||||
if (DefaultValue_GUI_2.L2_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line2.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_2.L3_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot1"));
|
||||
if (DefaultValue_GUI_2.L3_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot2"));
|
||||
if (DefaultValue_GUI_2.L3_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot3"));
|
||||
if (DefaultValue_GUI_2.L3_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot4"));
|
||||
if (DefaultValue_GUI_2.L3_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot5"));
|
||||
if (DefaultValue_GUI_2.L3_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot6"));
|
||||
if (DefaultValue_GUI_2.L3_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot7"));
|
||||
if (DefaultValue_GUI_2.L3_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot8"));
|
||||
if (DefaultValue_GUI_2.L3_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line3.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_2.L4_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot1"));
|
||||
if (DefaultValue_GUI_2.L4_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot2"));
|
||||
if (DefaultValue_GUI_2.L4_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot3"));
|
||||
if (DefaultValue_GUI_2.L4_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot4"));
|
||||
if (DefaultValue_GUI_2.L4_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot5"));
|
||||
if (DefaultValue_GUI_2.L4_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot6"));
|
||||
if (DefaultValue_GUI_2.L4_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot7"));
|
||||
if (DefaultValue_GUI_2.L4_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot8"));
|
||||
if (DefaultValue_GUI_2.L4_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line4.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_2.L5_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot1"));
|
||||
if (DefaultValue_GUI_2.L5_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot2"));
|
||||
if (DefaultValue_GUI_2.L5_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot3"));
|
||||
if (DefaultValue_GUI_2.L5_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot4"));
|
||||
if (DefaultValue_GUI_2.L5_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot5"));
|
||||
if (DefaultValue_GUI_2.L5_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot6"));
|
||||
if (DefaultValue_GUI_2.L5_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot7"));
|
||||
if (DefaultValue_GUI_2.L5_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot8"));
|
||||
if (DefaultValue_GUI_2.L5_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line5.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_2.L6_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot1"));
|
||||
if (DefaultValue_GUI_2.L6_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot2"));
|
||||
if (DefaultValue_GUI_2.L6_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot3"));
|
||||
if (DefaultValue_GUI_2.L6_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot4"));
|
||||
if (DefaultValue_GUI_2.L6_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot5"));
|
||||
if (DefaultValue_GUI_2.L6_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot6"));
|
||||
if (DefaultValue_GUI_2.L6_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot7"));
|
||||
if (DefaultValue_GUI_2.L6_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot8"));
|
||||
if (DefaultValue_GUI_2.L6_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui2.line6.slot9"));
|
||||
|
||||
|
||||
/**
|
||||
* GUI3
|
||||
*/
|
||||
|
||||
if (DefaultValue_GUI_3.L1_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot1"));
|
||||
if (DefaultValue_GUI_3.L1_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot2"));
|
||||
if (DefaultValue_GUI_3.L1_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot3"));
|
||||
if (DefaultValue_GUI_3.L1_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot4"));
|
||||
if (DefaultValue_GUI_3.L1_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot5"));
|
||||
if (DefaultValue_GUI_3.L1_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot6"));
|
||||
if (DefaultValue_GUI_3.L1_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot7"));
|
||||
if (DefaultValue_GUI_3.L1_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot8"));
|
||||
if (DefaultValue_GUI_3.L1_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line1.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_3.L2_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot1"));
|
||||
if (DefaultValue_GUI_3.L2_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot2"));
|
||||
if (DefaultValue_GUI_3.L2_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot3"));
|
||||
if (DefaultValue_GUI_3.L2_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot4"));
|
||||
if (DefaultValue_GUI_3.L2_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot5"));
|
||||
if (DefaultValue_GUI_3.L2_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot6"));
|
||||
if (DefaultValue_GUI_3.L2_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot7"));
|
||||
if (DefaultValue_GUI_3.L2_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot8"));
|
||||
if (DefaultValue_GUI_3.L2_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line2.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_3.L3_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot1"));
|
||||
if (DefaultValue_GUI_3.L3_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot2"));
|
||||
if (DefaultValue_GUI_3.L3_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot3"));
|
||||
if (DefaultValue_GUI_3.L3_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot4"));
|
||||
if (DefaultValue_GUI_3.L3_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot5"));
|
||||
if (DefaultValue_GUI_3.L3_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot6"));
|
||||
if (DefaultValue_GUI_3.L3_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot7"));
|
||||
if (DefaultValue_GUI_3.L3_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot8"));
|
||||
if (DefaultValue_GUI_3.L3_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line3.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_3.L4_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot1"));
|
||||
if (DefaultValue_GUI_3.L4_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot2"));
|
||||
if (DefaultValue_GUI_3.L4_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot3"));
|
||||
if (DefaultValue_GUI_3.L4_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot4"));
|
||||
if (DefaultValue_GUI_3.L4_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot5"));
|
||||
if (DefaultValue_GUI_3.L4_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot6"));
|
||||
if (DefaultValue_GUI_3.L4_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot7"));
|
||||
if (DefaultValue_GUI_3.L4_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot8"));
|
||||
if (DefaultValue_GUI_3.L4_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line4.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_3.L5_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot1"));
|
||||
if (DefaultValue_GUI_3.L5_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot2"));
|
||||
if (DefaultValue_GUI_3.L5_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot3"));
|
||||
if (DefaultValue_GUI_3.L5_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot4"));
|
||||
if (DefaultValue_GUI_3.L5_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot5"));
|
||||
if (DefaultValue_GUI_3.L5_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot6"));
|
||||
if (DefaultValue_GUI_3.L5_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot7"));
|
||||
if (DefaultValue_GUI_3.L5_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot8"));
|
||||
if (DefaultValue_GUI_3.L5_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line5.slot9"));
|
||||
|
||||
if (DefaultValue_GUI_3.L6_S1_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot1"));
|
||||
if (DefaultValue_GUI_3.L6_S2_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot2"));
|
||||
if (DefaultValue_GUI_3.L6_S3_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot3"));
|
||||
if (DefaultValue_GUI_3.L6_S4_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot4"));
|
||||
if (DefaultValue_GUI_3.L6_S5_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot5"));
|
||||
if (DefaultValue_GUI_3.L6_S6_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot6"));
|
||||
if (DefaultValue_GUI_3.L6_S7_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot7"));
|
||||
if (DefaultValue_GUI_3.L6_S8_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot8"));
|
||||
if (DefaultValue_GUI_3.L6_S9_Permission_Enable) Bukkit.getPluginManager().addPermission(new Permission("commandgui.use.gui3.line6.slot9"));
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,72 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
// -----------------------------
|
||||
// _____ _____ _ _ _____
|
||||
// / ____/ ____| | | |_ _|
|
||||
// | | | | __| | | | | |
|
||||
// | | | | |_ | | | | | |
|
||||
// | |___| |__| | |__| |_| |_
|
||||
// \_____\_____|\____/|_____|
|
||||
// -----------------------------
|
||||
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.util.Scanner;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public class UpdateChecker {
|
||||
|
||||
private JavaPlugin plugin;
|
||||
private int resourceId;
|
||||
|
||||
public UpdateChecker(JavaPlugin plugin, int resourceId) {
|
||||
this.plugin = plugin;
|
||||
this.resourceId = resourceId;
|
||||
}
|
||||
|
||||
public void getVersion(Consumer<String> consumer) {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(this.plugin, () -> {
|
||||
try {
|
||||
InputStream inputStream = (new URL("https://api.spigotmc.org/legacy/update.php?resource=" + this.resourceId)).openStream();
|
||||
try {
|
||||
Scanner scanner = new Scanner(inputStream);
|
||||
|
||||
try {
|
||||
if (scanner.hasNext()) {
|
||||
consumer.accept(scanner.next());
|
||||
}
|
||||
} catch (Throwable var8) {
|
||||
try {
|
||||
scanner.close();
|
||||
} catch (Throwable var7) {
|
||||
var8.addSuppressed(var7);
|
||||
}
|
||||
throw var8;
|
||||
}
|
||||
scanner.close();
|
||||
} catch (Throwable var9) {
|
||||
if (inputStream != null) {
|
||||
try {
|
||||
inputStream.close();
|
||||
} catch (Throwable var6) {
|
||||
var9.addSuppressed(var6);
|
||||
}
|
||||
}
|
||||
throw var9;
|
||||
}
|
||||
if (inputStream != null) {
|
||||
inputStream.close();
|
||||
}
|
||||
} catch (IOException var10) {
|
||||
this.plugin.getLogger().severe(DefaultValue.PrefixHC + "§4 Cannot look for updates: " + var10.getMessage());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
// This claas was created by JaTiTV
|
||||
|
||||
|
||||
package de.jatitv.commandgui.system;
|
||||
|
||||
import de.jatitv.commandgui.defaultValue.DefaultValue;
|
||||
import net.milkbowl.vault.economy.Economy;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||
|
||||
public class Vault {
|
||||
|
||||
public static void loadVault() throws InterruptedException {
|
||||
if(Main.a.getServer().getPluginManager().getPlugin("Vault") != null){
|
||||
RegisteredServiceProvider<Economy> rsp = Main.a.getServer().getServicesManager().getRegistration(Economy.class);
|
||||
if(rsp != null){
|
||||
Main.eco = rsp.getProvider();
|
||||
if(Main.eco != null){
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§2Vault / Economy successfully connected!");
|
||||
}else{
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Economy could not be connected / found!");
|
||||
}
|
||||
}else{
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Economy could not be connected / found!");
|
||||
}
|
||||
}else{
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Vault / Economy could not be connected / found!");
|
||||
}
|
||||
}
|
||||
public static void vaultDisable(){
|
||||
Bukkit.getConsoleSender().sendMessage(DefaultValue.PrefixHC + "§4Vault / Economy successfully deactivated.");
|
||||
}
|
||||
}
|
25
CommandGUI V1/src/main/resources/plugin.yml
Normal file
25
CommandGUI V1/src/main/resources/plugin.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: CommandGUI
|
||||
version: 1.2.2
|
||||
api-version: 1.13
|
||||
main: de.jatitv.commandgui.system.Main
|
||||
authors: [ JaTiTV ]
|
||||
softdepend:
|
||||
- Vault
|
||||
- Economy
|
||||
- EssentialsX
|
||||
- CMI
|
||||
- PlaceholderAPI
|
||||
commands:
|
||||
commandgui:
|
||||
description: Open the CGUI
|
||||
aliases: [cgui]
|
||||
|
||||
permissions:
|
||||
commandgui.command:
|
||||
default: op
|
||||
commandgui.command.info:
|
||||
default: op
|
||||
commandgui.command.give:
|
||||
default: op
|
||||
commandgui.admin:
|
||||
default: op
|
Reference in New Issue
Block a user