Compare commits
No commits in common. "d95de86b58b4050c7370ecf911d6fa84a6228b34" and "b7b3fbcb0387ef7211ae313cd6c7df5684bc37e6" have entirely different histories.
d95de86b58
...
b7b3fbcb03
4
pom.xml
4
pom.xml
@ -7,7 +7,7 @@
|
|||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>Alias</artifactId>
|
<artifactId>Alias</artifactId>
|
||||||
|
|
||||||
<version>1.6_DEV-1</version>
|
<version>1.6_DEV</version>
|
||||||
<!--version>VERSION_snapshot-0</version-->
|
<!--version>VERSION_snapshot-0</version-->
|
||||||
<!--version>VERSION_beta-0</version-->
|
<!--version>VERSION_beta-0</version-->
|
||||||
<!--version>VERSION_dev-0</version-->
|
<!--version>VERSION_dev-0</version-->
|
||||||
@ -101,7 +101,7 @@
|
|||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>16.7</version>
|
<version>16.7</version>
|
||||||
<classifier>dev-3</classifier>
|
<classifier>dev-1</classifier>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -9,7 +9,6 @@ import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate;
|
|||||||
import net.t2code.t2codelib.SPIGOT.api.minecraftVersion.T2CmcVersion;
|
import net.t2code.t2codelib.SPIGOT.api.minecraftVersion.T2CmcVersion;
|
||||||
import net.t2code.t2codelib.SPIGOT.system.T2CodeLibMain;
|
import net.t2code.t2codelib.SPIGOT.system.T2CodeLibMain;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.event.Listener;
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -38,6 +37,12 @@ public final class Main extends JavaPlugin {
|
|||||||
public static ArrayList<String> allSubAliases = new ArrayList<>();
|
public static ArrayList<String> allSubAliases = new ArrayList<>();
|
||||||
public static ArrayList<String> allForSubAliases = new ArrayList<>();
|
public static ArrayList<String> allForSubAliases = new ArrayList<>();
|
||||||
|
|
||||||
|
// private BukkitCommandWrap bukkitCommandWrap = null;
|
||||||
|
//
|
||||||
|
// public BukkitCommandWrap getBukkitCommandWrap() {
|
||||||
|
// return this.bukkitCommandWrap;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
@ -45,9 +50,23 @@ public final class Main extends JavaPlugin {
|
|||||||
plugin = this;
|
plugin = this;
|
||||||
autor = plugin.getDescription().getAuthors();
|
autor = plugin.getDescription().getAuthors();
|
||||||
version = plugin.getDescription().getVersion();
|
version = plugin.getDescription().getVersion();
|
||||||
|
if (!Bukkit.getPluginManager().isPluginEnabled("T2CodeLib")) {
|
||||||
|
getLogger().severe("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||||
|
getLogger().severe("+ T2CodeLib ist nicht im plugins Ordner, +");
|
||||||
|
getLogger().severe("+ daher wurde es aus der eigenen Library geladen! +");
|
||||||
|
getLogger().severe("+ Es wird empfohlen die T2CodeLib als eigenes Plugin zu laden, +");
|
||||||
|
getLogger().severe("+ um keine Komplikationen mit anderen Plugins von T2Code zu bekommen! +");
|
||||||
|
getLogger().severe("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||||
|
new T2CodeLibMain().onEnable();
|
||||||
|
}
|
||||||
|
|
||||||
if (pluginNotFound("T2CodeLib", 96388, Util.getRequiredT2CodeLibVersion())) return;
|
// if (pluginNotFound("T2CodeLib", 96388, Util.getRequiredT2CodeLibVersion())) return; todo
|
||||||
|
// try {
|
||||||
|
// Class.forName("com.mojang.brigadier.CommandDispatcher");
|
||||||
|
// this.bukkitCommandWrap = new BukkitCommandWrap();
|
||||||
|
// } catch (ClassNotFoundException | NoClassDefFoundError e) {
|
||||||
|
// this.bukkitCommandWrap = new BukkitCommandWrap_Useless();
|
||||||
|
// }
|
||||||
if (T2CmcVersion.isMc1_13()) {
|
if (T2CmcVersion.isMc1_13()) {
|
||||||
guiCode = "";
|
guiCode = "";
|
||||||
} else guiCode = "§6§8§9§r";
|
} else guiCode = "§6§8§9§r";
|
||||||
|
@ -17,31 +17,28 @@ import java.util.List;
|
|||||||
public class Config {
|
public class Config {
|
||||||
|
|
||||||
public enum VALUES implements T2CconfigItem{
|
public enum VALUES implements T2CconfigItem{
|
||||||
language("plugin.language", "english", true,"In this option you can set the language of the plugin."),
|
language("plugin.language", "english", "In this option you can set the language of the plugin."),
|
||||||
updateCheckOnJoin("plugin.updateCheck.onJoin", true,true,"In this option you can set if players with the permission 't2c.alias.updatemsg' will get an update message on join when an update for the plugin is available."),
|
updateCheckOnJoin("plugin.updateCheck.onJoin", true,"In this option you can set if players with the permission 't2c.alias.updatemsg' will get an update message on join when an update for the plugin is available."),
|
||||||
updateCheckSeePreReleaseUpdates("plugin.updateCheck.seePreReleaseUpdates", true,true,"In this option you can set whether you want to receive and display beta and snapshot versions in the update check."),
|
updateCheckSeePreReleaseUpdates("plugin.updateCheck.seePreReleaseUpdates", true,"In this option you can set whether you want to receive and display beta and snapshot versions in the update check."),
|
||||||
updateCheckTimeInterval("plugin.updateCheck.timeInterval", 60,true,"In this option you can set the time interval in minutes in which updates should be checked."),
|
updateCheckTimeInterval("plugin.updateCheck.timeInterval", 60,"In this option you can set the time interval in minutes in which updates should be checked."),
|
||||||
|
|
||||||
buyMessage("buy.message", true,true,"With this option you can set whether a confirmation should be sent after the payment for an alias for which you have to pay."),
|
buyMessage("buy.message", true,"With this option you can set whether a confirmation should be sent after the payment for an alias for which you have to pay."),
|
||||||
buyCurrency("buy.currency", "$",true,"With this option you set the currency."),
|
buyCurrency("buy.currency", "$","With this option you set the currency."),
|
||||||
buyConfirmDefault("buy.confirm.use", Confirm.COMMAND,true,"Here you can choose which confirmation method you want to use. (COMMAND, CHAT, GUI)"),
|
buyConfirmDefault("buy.confirm.use", Confirm.COMMAND,"Here you can choose which confirmation method you want to use. (COMMAND, CHAT, GUI)"),
|
||||||
buyConfirmGuiFillItemDesc("buy.confirm.gui.fillItem", null,true," ","!! You can change the GUI name and the button texts in the language file !!"," "),
|
buyConfirmGuiFillItemDesc("buy.confirm.gui.fillItem", null," ","!! You can change the GUI name and the button texts in the language file !!"," "),
|
||||||
buyConfirmGuiFillItemEnabled("buy.confirm.gui.fillItem.enabled", true,true,"Here you can set if a fillitem should be used in the Confirm GUI."),
|
buyConfirmGuiFillItemEnabled("buy.confirm.gui.fillItem.enabled", true,"Here you can set if a fillitem should be used in the Confirm GUI."),
|
||||||
buyConfirmGuiFillItem("buy.confirm.gui.fillItem.material", T2CitemVersion.getBlackStainedGlassPane().getType().toString(),true,"Here you can set which fillitem should be used in the Confirm GUI."),
|
buyConfirmGuiFillItem("buy.confirm.gui.fillItem.material", T2CitemVersion.getBlackStainedGlassPane().getType().toString(),"Here you can set which fillitem should be used in the Confirm GUI."),
|
||||||
buyConfirmGuiConfirm("buy.confirm.gui.confirm.material", T2CitemVersion.getGreenWool().getType().toString(),true,"Here you can set the material for the confirmation button."),
|
buyConfirmGuiConfirm("buy.confirm.gui.confirm.material", T2CitemVersion.getGreenWool().getType().toString(),"Here you can set the material for the confirmation button."),
|
||||||
buyConfirmGuiCancel("buy.confirm.gui.cancel.material", T2CitemVersion.getRedWool().getType().toString(),true,"Here you can set the material for the cancel button."),
|
buyConfirmGuiCancel("buy.confirm.gui.cancel.material", T2CitemVersion.getRedWool().getType().toString(),"Here you can set the material for the cancel button."),
|
||||||
subAliasTab("subAlias.tabComplete", true,true,"Here you can set if subcommands should be displayed as tabComplete."),
|
subAliasTab("subAlias.tabComplete", true,"Here you can set if subcommands should be displayed as tabComplete.");
|
||||||
;
|
|
||||||
|
|
||||||
private final String path;
|
private final String path;
|
||||||
private Object value;
|
private Object value;
|
||||||
private final boolean forceSet;
|
|
||||||
private final List<String> comments;
|
private final List<String> comments;
|
||||||
|
|
||||||
VALUES(String path, Object value,boolean forceSet, String... comments) {
|
VALUES(String path, Object value, String... comments) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.value = value;
|
this.value = value;
|
||||||
this.forceSet=forceSet;
|
|
||||||
this.comments = new ArrayList<>(Arrays.asList(comments));
|
this.comments = new ArrayList<>(Arrays.asList(comments));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,11 +52,6 @@ public class Config {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean getForceSet() {
|
|
||||||
return forceSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getComments() {
|
public List<String> getComments() {
|
||||||
return comments;
|
return comments;
|
||||||
@ -75,7 +67,6 @@ public class Config {
|
|||||||
long long_ = System.currentTimeMillis();
|
long long_ = System.currentTimeMillis();
|
||||||
T2CconfigWriter.createConfig(new File(Main.getPath(), "config.yml"), VALUES.values(), Util.getConfigLogo());
|
T2CconfigWriter.createConfig(new File(Main.getPath(), "config.yml"), VALUES.values(), Util.getConfigLogo());
|
||||||
|
|
||||||
|
|
||||||
T2Csend.console(Util.getPrefix() + " §2The config.yml was loaded successfully §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
T2Csend.console(Util.getPrefix() + " §2The config.yml was loaded successfully §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user