This commit is contained in:
rockyhawk64 2023-03-23 15:33:10 +11:00
parent 781c771827
commit ac50e7976e
26 changed files with 246 additions and 103 deletions

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.bencodez:advancedcore:3.6.4">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/advancedcore/3.6.4/advancedcore-3.6.4.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/advancedcore/3.6.4/advancedcore-3.6.4-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/advancedcore/3.6.4/advancedcore-3.6.4-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -1,13 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.bencodez:votingplugin:6.11.2">
<library name="Maven: com.bencodez:votingplugin:6.11.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/votingplugin/6.11.2/votingplugin-6.11.2.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/votingplugin/6.11.3/votingplugin-6.11.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/votingplugin/6.11.2/votingplugin-6.11.2-javadoc.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/votingplugin/6.11.3/votingplugin-6.11.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/votingplugin/6.11.2/votingplugin-6.11.2-sources.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/com/bencodez/votingplugin/6.11.3/votingplugin-6.11.3-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -1,13 +0,0 @@
<component name="libraryTable">
<library name="Maven: com.github.bencodez:advancedcore:master-e8f50514b7-1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/bencodez/advancedcore/master-e8f50514b7-1/advancedcore-master-e8f50514b7-1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/github/bencodez/advancedcore/master-e8f50514b7-1/advancedcore-master-e8f50514b7-1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/bencodez/advancedcore/master-e8f50514b7-1/advancedcore-master-e8f50514b7-1-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -1,13 +0,0 @@
<component name="libraryTable">
<library name="Maven: io.lumine:MythicLib:1.5.1-SNAPSHOT">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/io/lumine/MythicLib/1.5.1-SNAPSHOT/MythicLib-1.5.1-20230311.184631-1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/io/lumine/MythicLib/1.5.1-SNAPSHOT/MythicLib-1.5.1-20230311.184631-1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/io/lumine/MythicLib/1.5.1-SNAPSHOT/MythicLib-1.5.1-20230311.184631-1-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: io.lumine:MythicLib-dist:1.5.1-SNAPSHOT">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/io/lumine/MythicLib-dist/1.5.1-SNAPSHOT/MythicLib-dist-1.5.1-20230321.140549-5.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/io/lumine/MythicLib-dist/1.5.1-SNAPSHOT/MythicLib-dist-1.5.1-20230321.140549-5-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/io/lumine/MythicLib-dist/1.5.1-SNAPSHOT/MythicLib-dist-1.5.1-20230321.140549-5-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -1,13 +1,13 @@
<component name="libraryTable">
<library name="Maven: me.clip:placeholderapi:2.11.2">
<library name="Maven: me.clip:placeholderapi:2.11.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/me/clip/placeholderapi/2.11.2/placeholderapi-2.11.2.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/me/clip/placeholderapi/2.11.3/placeholderapi-2.11.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/me/clip/placeholderapi/2.11.2/placeholderapi-2.11.2-javadoc.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/me/clip/placeholderapi/2.11.3/placeholderapi-2.11.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/me/clip/placeholderapi/2.11.2/placeholderapi-2.11.2-sources.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/me/clip/placeholderapi/2.11.3/placeholderapi-2.11.3-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -1,13 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.Indyuce:MMOItems-API:6.9.2-SNAPSHOT">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/Indyuce/MMOItems-API/6.9.2-SNAPSHOT/MMOItems-API-6.9.2-20230316.215227-8.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/net/Indyuce/MMOItems-API/6.9.2-SNAPSHOT/MMOItems-API-6.9.2-20230319.132511-1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/Indyuce/MMOItems-API/6.9.2-SNAPSHOT/MMOItems-API-6.9.2-20230316.215227-8-javadoc.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/net/Indyuce/MMOItems-API/6.9.2-SNAPSHOT/MMOItems-API-6.9.2-20230319.132511-1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/Indyuce/MMOItems-API/6.9.2-SNAPSHOT/MMOItems-API-6.9.2-20230316.215227-8-sources.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/net/Indyuce/MMOItems-API/6.9.2-SNAPSHOT/MMOItems-API-6.9.2-20230319.132511-1-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-nbt:4.13.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-nbt/4.13.0/adventure-nbt-4.13.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-nbt/4.13.0/adventure-nbt-4.13.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-nbt/4.13.0/adventure-nbt-4.13.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-platform-api:4.3.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-api/4.3.0/adventure-platform-api-4.3.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-api/4.3.0/adventure-platform-api-4.3.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-api/4.3.0/adventure-platform-api-4.3.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-platform-bukkit:4.3.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-bukkit/4.3.0/adventure-platform-bukkit-4.3.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-bukkit/4.3.0/adventure-platform-bukkit-4.3.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-bukkit/4.3.0/adventure-platform-bukkit-4.3.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-platform-facet:4.3.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-facet/4.3.0/adventure-platform-facet-4.3.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-facet/4.3.0/adventure-platform-facet-4.3.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-facet/4.3.0/adventure-platform-facet-4.3.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-platform-viaversion:4.3.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-viaversion/4.3.0/adventure-platform-viaversion-4.3.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-viaversion/4.3.0/adventure-platform-viaversion-4.3.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-platform-viaversion/4.3.0/adventure-platform-viaversion-4.3.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-text-serializer-bungeecord:4.3.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-bungeecord/4.3.0/adventure-text-serializer-bungeecord-4.3.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-bungeecord/4.3.0/adventure-text-serializer-bungeecord-4.3.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-bungeecord/4.3.0/adventure-text-serializer-bungeecord-4.3.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-text-serializer-gson:4.13.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-gson/4.13.0/adventure-text-serializer-gson-4.13.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-gson/4.13.0/adventure-text-serializer-gson-4.13.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-gson/4.13.0/adventure-text-serializer-gson-4.13.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-text-serializer-gson-legacy-impl:4.13.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-gson-legacy-impl/4.13.0/adventure-text-serializer-gson-legacy-impl-4.13.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-gson-legacy-impl/4.13.0/adventure-text-serializer-gson-legacy-impl-4.13.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-gson-legacy-impl/4.13.0/adventure-text-serializer-gson-legacy-impl-4.13.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.kyori:adventure-text-serializer-legacy:4.13.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-legacy/4.13.0/adventure-text-serializer-legacy-4.13.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-legacy/4.13.0/adventure-text-serializer-legacy-4.13.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/net/kyori/adventure-text-serializer-legacy/4.13.0/adventure-text-serializer-legacy-4.13.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.bstats:bstats-bukkit:3.0.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/bstats/bstats-bukkit/3.0.1/bstats-bukkit-3.0.1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/bstats/bstats-bukkit/3.0.1/bstats-bukkit-3.0.1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/bstats/bstats-bukkit/3.0.1/bstats-bukkit-3.0.1-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -13,13 +13,13 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="spigot" level="project" />
<orderEntry type="library" name="Maven: net.kyori:adventure-text-minimessage:4.11.0" level="project" />
<orderEntry type="library" name="Maven: net.kyori:adventure-api:4.11.0" level="project" />
<orderEntry type="library" name="Maven: net.kyori:adventure-key:4.11.0" level="project" />
<orderEntry type="library" name="Maven: net.kyori:examination-api:1.3.0" level="project" />
<orderEntry type="library" name="Maven: net.kyori:examination-string:1.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-text-minimessage:4.11.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-api:4.11.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-key:4.11.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:examination-api:1.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:examination-string:1.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: de.jeff_media:ChestSortAPI:13.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: org.jetbrains:annotations:19.0.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.jetbrains:annotations:19.0.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.guava:guava:31.1-jre" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.guava:failureaccess:1.0.1" level="project" />
@ -37,15 +37,25 @@
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.logging.log4j:log4j-api:2.0-beta9" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.code.findbugs:jsr305:2.0.1" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.11.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.bencodez:votingplugin:6.11.2" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.bencodez:votingplugin:6.11.3" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.bstats:bstats-velocity:2.2.1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.bstats:bstats-base:2.2.1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.github.bencodez:advancedcore:master-e8f50514b7-1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.bencodez:advancedcore:3.6.4" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.zaxxer:HikariCP:3.4.1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.slf4j:slf4j-simple:1.7.5" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: xyz.upperlevel.spigot.book:spigot-book-api:1.6" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: me.clip:placeholderapi:2.11.2" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: me.clip:placeholderapi:2.11.3" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.bstats:bstats-bukkit:3.0.1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-platform-bukkit:4.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-platform-api:4.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-text-serializer-bungeecord:4.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-text-serializer-legacy:4.13.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-nbt:4.13.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-text-serializer-gson:4.13.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-text-serializer-gson-legacy-impl:4.13.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-platform-facet:4.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.kyori:adventure-platform-viaversion:4.3.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.github.MilkBowl:VaultAPI:1.7" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.bukkit:bukkit:1.13.1-R0.1-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: commons-lang:commons-lang:2.6" level="project" />
@ -53,7 +63,7 @@
<orderEntry type="library" scope="PROVIDED" name="Maven: junit:junit:4.10" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.hamcrest:hamcrest-core:1.1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.Indyuce:MMOItems-API:6.9.2-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: io.lumine:MythicLib:1.5.1-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: io.lumine:MythicLib-dist:1.5.1-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.github.Realizedd:TokenManager:3.2.4" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.arcaniax:HeadDatabase-API:1.3.1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.github.Ssomar-Developement:SCore:3.9.43" level="project" />

View File

@ -102,6 +102,7 @@
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<version>4.11.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.jeff_media</groupId>
@ -152,7 +153,7 @@
</dependency>
<dependency>
<groupId>io.lumine</groupId>
<artifactId>MythicLib</artifactId>
<artifactId>MythicLib-dist</artifactId>
<version>1.5.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
@ -171,7 +172,7 @@
<dependency>
<groupId>com.arcaniax</groupId>
<artifactId>HeadDatabase-API</artifactId>
<version>LATEST</version>
<version>1.3.1</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -17,7 +17,6 @@ config:
server-ping-timeout: 10
stop-sound: true
disabled-world-message: true
update-notifications: true
panel-snooper: false
format:
tag: '&6[&bCommandPanels&6] '

View File

@ -1,10 +1,10 @@
version: 3.18.5.1
version: 3.18.6.0
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk
api-version: '1.13'
description: Fully Custom GUIs. Make your Server Professional.
softdepend: [PlaceholderAPI, Vault, HeadDatabase, TokenManager, VotingPlugin, MMOItems, CustomItems, ChestSort]
softdepend: [PlaceholderAPI, Vault, HeadDatabase, TokenManager, VotingPlugin, MMOItems, ChestSort]
commands:
commandpanel:
description: Open a command panel.

View File

@ -77,7 +77,6 @@ public class CommandPanels extends JavaPlugin{
public String tag = "[CommandPanels]";
public List<Player> generateMode = new ArrayList<>(); //players that are currently in generate mode
public List<String[]> editorInputStrings = new ArrayList<>();
public List<Panel> panelList = new ArrayList<>(); //contains all the panels that are included in the panels folder
//get alternate classes
@ -145,7 +144,7 @@ public class CommandPanels extends JavaPlugin{
//set version to latest version
if (Objects.requireNonNull(this.config.getString("updater.update-checks")).equalsIgnoreCase("true")) {
updater.githubNewUpdate(false);
updater.githubNewUpdate(true);
}
//setup class files
@ -255,10 +254,6 @@ public class CommandPanels extends JavaPlugin{
}
}
if (Objects.requireNonNull(this.config.getString("config.update-notifications")).equalsIgnoreCase("true")) {
updater.githubNewUpdate(true);
}
//load panelFiles
reloadPanelFiles();

View File

@ -35,8 +35,16 @@ public class HasSections {
//ensure the endProcess variable has been reset for another operation
endProcess = true;
//get the values of this statement
String value = ChatColor.stripColor(plugin.tex.placeholders(panel, position, p, cf.getString(setName + ".value" + a)));
String compare = ChatColor.stripColor(plugin.tex.placeholders(panel, position, p, cf.getString(setName + ".compare" + a)));
String value;
String compare;
try {
value = ChatColor.stripColor(plugin.tex.placeholders(panel, position, p, cf.getString(setName + ".value" + a)));
compare = ChatColor.stripColor(plugin.tex.placeholders(panel, position, p, cf.getString(setName + ".compare" + a)));
}catch (Exception e) {
//if errors getting text return
plugin.debug(e,p);
return "";
}
String operator = "AND";
if(compare.endsWith(" OR")){

View File

@ -1,6 +1,5 @@
package me.rockyhawk.commandpanels.classresources;
//import com.jojodmo.customitems.api.CustomItemsAPI;
import me.arcaniax.hdb.api.HeadDatabaseAPI;
import me.rockyhawk.commandpanels.CommandPanels;
import me.rockyhawk.commandpanels.api.Panel;
@ -110,12 +109,6 @@ public class ItemCreation {
normalCreation = false;
}
//creates Custom Items items
/*if(matraw.split("\\s")[0].equalsIgnoreCase("cui=") && plugin.getServer().getPluginManager().isPluginEnabled("CustomItems")){
s = CustomItemsAPI.getCustomItem("cui:" + matraw.split("\\s")[1]);
normalCreation = false;
}*/
//creates a written book item
if(matraw.split("\\s")[0].equalsIgnoreCase("book=")){
s = new ItemStack(Material.WRITTEN_BOOK);

View File

@ -7,6 +7,7 @@ import me.rockyhawk.commandpanels.openpanelsmanager.PanelPosition;
import org.apache.commons.lang.ArrayUtils;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@ -99,32 +100,34 @@ public class SpecialTags implements Listener {
}
if(e.name.equalsIgnoreCase("teleport=")) {
e.commandTagUsed();
if (e.args.length == 5) {
float x, y, z, yaw, pitch; //pitch is the heads Y axis and yaw is the X axis
float x, y, z, yaw = 0, pitch = 0;
Player teleportedPlayer = e.p;
World teleportedWorld = e.p.getWorld();
try {
x = Float.parseFloat(e.args[0]);
y = Float.parseFloat(e.args[1]);
z = Float.parseFloat(e.args[2]);
yaw = Float.parseFloat(e.args[3]);
pitch = Float.parseFloat(e.args[4]);
e.p.teleport(new Location(e.p.getWorld(), x, y, z, yaw, pitch));
} else if (e.args.length <= 3) {
float x, y, z;
x = Float.parseFloat(e.args[0]);
y = Float.parseFloat(e.args[1]);
z = Float.parseFloat(e.args[2]);
e.p.teleport(new Location(e.p.getWorld(), x, y, z));
} else {
try {
Player otherplayer = Bukkit.getPlayer(e.args[3]);
float x, y, z;
x = Float.parseFloat(e.args[0]);
y = Float.parseFloat(e.args[1]);
z = Float.parseFloat(e.args[2]);
assert otherplayer != null;
otherplayer.teleport(new Location(otherplayer.getWorld(), x, y, z));
} catch (Exception tpe) {
plugin.tex.sendMessage(e.p,plugin.config.getString("config.format.notitem"));
for(String val : e.args) {
if(val.startsWith("world:")) {
teleportedWorld = Bukkit.getWorld(val.substring(6));
continue;
}
if(val.startsWith("yaw:")) {
yaw = Float.parseFloat(val.substring(4));
continue;
}
if(val.startsWith("pitch:")) {
pitch = Float.parseFloat(val.substring(6));
continue;
}
if(val.startsWith("player:")) {
teleportedPlayer = Bukkit.getPlayer(val.substring(7));
}
}
teleportedPlayer.teleport(new Location(teleportedWorld, x, y, z, yaw, pitch));
} catch (Exception tpe) {
plugin.debug(tpe,e.p);
}
return;
}

View File

@ -18,7 +18,7 @@ public class Updater implements Listener {
//if this is set to something, it will download that version on restart
//can be a version number, 'latest' or 'cancel'
public String downloadVersionManually = null;
public String catchedLatestVersion = "null";
public String cachedLatestVersion = "null";
CommandPanels plugin;
public Updater(CommandPanels pl) {
@ -37,7 +37,7 @@ public class Updater implements Listener {
plugin.tex.sendString(e.getPlayer(),ChatColor.YELLOW
+ "Current version "
+ ChatColor.RED + plugin.getDescription().getVersion() + ChatColor.YELLOW
+ " Latest version " + ChatColor.GREEN + catchedLatestVersion);
+ " Latest version " + ChatColor.GREEN + cachedLatestVersion);
this.cancel();
}
}.runTaskTimer(plugin, 30, 1); //20 ticks == 1 second
@ -57,13 +57,13 @@ public class Updater implements Listener {
}
//if update is true there is a new update
boolean update = !catchedLatestVersion.equals(plugin.getDescription().getVersion());
boolean update = !cachedLatestVersion.equals(plugin.getDescription().getVersion());
if(update){
if(sendMessages) {
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.GOLD + " ================================================");
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.AQUA + " An update for CommandPanels is available.");
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + " Download CommandPanels " + ChatColor.GOLD + catchedLatestVersion + ChatColor.WHITE + " using the");
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + " Download CommandPanels " + ChatColor.GOLD + cachedLatestVersion + ChatColor.WHITE + " using the");
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.WHITE + " following command:" + ChatColor.AQUA + " /cpv latest" + ChatColor.WHITE + " and restart the server");
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.GOLD + " ================================================");
}
@ -74,8 +74,8 @@ public class Updater implements Listener {
public String getLatestVersion(boolean sendMessages){
//check for null
if(catchedLatestVersion.equals("null")){
catchedLatestVersion = plugin.getDescription().getVersion();
if(cachedLatestVersion.equals("null")){
cachedLatestVersion = plugin.getDescription().getVersion();
}
//using an array allows editing while still being final
@ -85,7 +85,7 @@ public class Updater implements Listener {
try {
connection = (HttpURLConnection) new URL("https://raw.githubusercontent.com/rockyhawk64/CommandPanels/master/resource/plugin.yml").openConnection();
connection.connect();
catchedLatestVersion = new BufferedReader(new InputStreamReader(connection.getInputStream())).readLine().split("\\s")[1];
cachedLatestVersion = new BufferedReader(new InputStreamReader(connection.getInputStream())).readLine().split("\\s")[1];
connection.disconnect();
} catch (IOException ignore) {
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " Could not access github.");
@ -93,12 +93,12 @@ public class Updater implements Listener {
}
}.runTask(plugin);
if(catchedLatestVersion.contains("-")){
if(cachedLatestVersion.contains("-")){
if(sendMessages) {
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " Cannot check for update.");
}
}
return catchedLatestVersion;
return cachedLatestVersion;
}
//the pluginFileName can only be obtained from the main class
@ -107,9 +107,10 @@ public class Updater implements Listener {
return;
}
String latestVersion = catchedLatestVersion;
String latestVersion = cachedLatestVersion;
String thisVersion = plugin.getDescription().getVersion();
//manual download, only if it was requested
if(downloadVersionManually != null) {
if (downloadVersionManually.equals("latest")) {
downloadFile(latestVersion, pluginFileName);
@ -123,8 +124,8 @@ public class Updater implements Listener {
//no need to update or running custom version
return;
}
if (Objects.requireNonNull(plugin.config.getString("updater.auto-update")).equalsIgnoreCase("true")) {
//don't update the plugin automatically if it is disabled
if (Objects.requireNonNull(plugin.config.getString("updater.auto-update")).equalsIgnoreCase("false")) {
//return if auto-update is false
return;
}
if(Objects.equals(plugin.config.getString("updater.minor-updates-only"), "true")){
@ -153,12 +154,15 @@ public class Updater implements Listener {
long downloaded = 0L;
int count;
int lastpercent = 0;
while((count = in.read(data, 0, 1024)) != -1) {
downloaded += count;
fout.write(data, 0, count);
int percent = (int)(downloaded * 100L / (long)fileLength);
if (percent % 10 == 0) {
this.plugin.getLogger().info("Downloading update: " + percent + "% of " + fileLength + " bytes.");
if (percent != lastpercent && percent % 10 == 0) {
//show if the percentage is different from the last percentage and then show the bytes downloaded so far
this.plugin.getLogger().info("Downloading update: " + percent + "% " + downloaded + " of " + fileLength + " bytes.");
lastpercent = percent;
}
}
this.plugin.getLogger().info("Finished updating.");