Minor code changes
This commit is contained in:
parent
a50f779b16
commit
8debd90a6c
@ -1,7 +1,7 @@
|
|||||||
<component name="ArtifactManager">
|
<component name="ArtifactManager">
|
||||||
<artifact type="jar" name="T2CodeLib_10.4">
|
<artifact type="jar" name="T2CodeLib_10.5">
|
||||||
<output-path>$PROJECT_DIR$/../../Plugins/T2CodeLib/.jar</output-path>
|
<output-path>$PROJECT_DIR$/../../Plugins/T2CodeLib/.jar</output-path>
|
||||||
<root id="archive" name="T2CodeLib_10.4.jar">
|
<root id="archive" name="T2CodeLib_10.5.jar">
|
||||||
<element id="module-output" name="T2CodeLib" />
|
<element id="module-output" name="T2CodeLib" />
|
||||||
</root>
|
</root>
|
||||||
</artifact>
|
</artifact>
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>10.4</version>
|
<version>10.5</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>T2CodeLib</name>
|
<name>T2CodeLib</name>
|
||||||
|
@ -4,21 +4,20 @@ import net.md_5.bungee.api.chat.ClickEvent;
|
|||||||
import net.md_5.bungee.api.chat.TextComponent;
|
import net.md_5.bungee.api.chat.TextComponent;
|
||||||
import net.t2code.lib.Spigot.Lib.replace.Replace;
|
import net.t2code.lib.Spigot.Lib.replace.Replace;
|
||||||
import net.t2code.lib.Spigot.Lib.update.UpdateAPI;
|
import net.t2code.lib.Spigot.Lib.update.UpdateAPI;
|
||||||
import net.t2code.lib.Spigot.system.Main;
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.Plugin;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
public class T2CodeTemplate {
|
public class T2CodeTemplate {
|
||||||
public static Long onLoadHeader(String prefix, List<String> autor, String version, String spigot, String discord) {
|
public static Long onLoadHeader(String prefix, List<String> autor, String version, String spigot, String discord) {
|
||||||
return onLoadHeader(prefix, autor, version, spigot, discord, null);
|
return onLoadHeader(prefix, autor, version, spigot, discord, null, null);
|
||||||
|
}
|
||||||
|
public static Long onLoadHeader(String prefix, List<String> autor, String version, String spigot, String discord, Boolean isPremium) {
|
||||||
|
return onLoadHeader(prefix, autor, version, spigot, discord, isPremium, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Long onLoadHeader(String prefix, List<String> autor, String version, String spigot, String discord, Boolean isPremium) {
|
public static Long onLoadHeader(String prefix, List<String> autor, String version, String spigot, String discord, Boolean isPremium, Boolean isVerify) {
|
||||||
Long long_ = System.currentTimeMillis();
|
Long long_ = System.currentTimeMillis();
|
||||||
// send.console(prefix +" §4===================== " + prefix + " §4=====================");
|
// send.console(prefix +" §4===================== " + prefix + " §4=====================");
|
||||||
send.console(prefix + " §4 _______ §7___ §4_____ ");
|
send.console(prefix + " §4 _______ §7___ §4_____ ");
|
||||||
@ -37,6 +36,11 @@ public class T2CodeTemplate {
|
|||||||
send.console(prefix + " §4 §e| §6Premium: §2true");
|
send.console(prefix + " §4 §e| §6Premium: §2true");
|
||||||
} else send.console(prefix + " §4 §e| §6Premium: §4false");
|
} else send.console(prefix + " §4 §e| §6Premium: §4false");
|
||||||
}
|
}
|
||||||
|
if (isVerify != null) {
|
||||||
|
if (isVerify) {
|
||||||
|
send.console(prefix + " §4 §e| §6Verify: §2true");
|
||||||
|
} else send.console(prefix + " §4 §e| §6Verify: §4false");
|
||||||
|
}
|
||||||
send.console(prefix + " §4 §e-------------------");
|
send.console(prefix + " §4 §e-------------------");
|
||||||
if (version.toLowerCase().contains("dev") || version.toLowerCase().contains("snapshot") || version.toLowerCase().contains("beta")) {
|
if (version.toLowerCase().contains("dev") || version.toLowerCase().contains("snapshot") || version.toLowerCase().contains("beta")) {
|
||||||
send.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! Some features may not be working as expected. Please report all bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!");
|
send.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! Some features may not be working as expected. Please report all bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: T2CodeLib
|
name: T2CodeLib
|
||||||
version: 10.4
|
version: 10.5
|
||||||
main: net.t2code.lib.Bungee.BMain
|
main: net.t2code.lib.Bungee.BMain
|
||||||
author: JaTiTV, Jkobs
|
author: JaTiTV, Jkobs
|
||||||
description: Libarie from T2Code Plugins
|
description: Libarie from T2Code Plugins
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
name: T2CodeLib
|
name: T2CodeLib
|
||||||
version: 10.4
|
version: 10.5
|
||||||
main: net.t2code.lib.Spigot.system.Main
|
main: net.t2code.lib.Spigot.system.Main
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
prefix: T2CodeLib
|
prefix: T2CodeLib
|
||||||
|
Loading…
Reference in New Issue
Block a user