-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 919b403
Showing
90 changed files
with
7,469 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# User-specific stuff | ||
.idea/ | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
target/ | ||
|
||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
|
||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
.mvn/wrapper/maven-wrapper.jar | ||
.flattened-pom.xml | ||
|
||
# Common working directory | ||
run/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
<?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>dev.qv7_</groupId> | ||
<artifactId>SnakeHub</artifactId> | ||
<version>1.2.0-HOTFIX</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>SnakeHub</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>dmulloy2-repo</id> | ||
<url>https://repo.dmulloy2.net/repository/public/</url> | ||
</repository> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io/</url> | ||
</repository> | ||
|
||
<repository> | ||
<id>placeholderapi</id> | ||
<url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url> | ||
</repository> | ||
|
||
<repository> | ||
<id>viaversion-repo</id> | ||
<url>https://repo.viaversion.com/</url> | ||
</repository> | ||
<repository> | ||
<id>sonatype</id> | ||
<url>https://oss.sonatype.org/content/groups/public/</url> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<version>1.18.22</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.spigotmc</groupId> | ||
<artifactId>spigot-api</artifactId> | ||
<version>1.8.8-R0.1-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.viaversion</groupId> | ||
<artifactId>viaversion</artifactId> | ||
<version>4.2.0-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.spigot</groupId> | ||
<artifactId>Spigot</artifactId> | ||
<version>LATEST</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/Spigot1.8.jar</systemPath> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.hylist.spigot</groupId> | ||
<artifactId>Spigot</artifactId> | ||
<version>LATEST</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/spigot.jar</systemPath> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.comphenix.protocol</groupId> | ||
<artifactId>ProtocolLib</artifactId> | ||
<version>4.7.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>dev.alex.net.utilities.command</groupId> | ||
<artifactId>Spigot-Utilities-Command</artifactId> | ||
<version>1.0</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/Spigot-Utilities-Command-1.0.jar</systemPath> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.milkbowl.vault</groupId> | ||
<artifactId>Vault</artifactId> | ||
<version>1.2.27</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/Vault.jar</systemPath> | ||
</dependency> | ||
<dependency> | ||
<groupId>aqua</groupId> | ||
<artifactId>aqua</artifactId> | ||
<version>LATEST</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/DL-AquaCore_2.6.20-Cracked_2.jar</systemPath> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.lunarclient</groupId> | ||
<artifactId>LunarClient</artifactId> | ||
<version>LATEST</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/LunarAPI.jar</systemPath> | ||
</dependency> | ||
<dependency> | ||
<groupId>placeholder</groupId> | ||
<artifactId>Placeholder</artifactId> | ||
<version>LATEST</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/PlaceholderAPI.jar</systemPath> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.luckperms</groupId> | ||
<artifactId>api</artifactId> | ||
<version>5.0</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>me.signatured.ezqueuespigot</groupId> | ||
<artifactId>EzqueueSpigot</artifactId> | ||
<version>1.6.5</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/depends/EzQueueSpigot.jar</systemPath> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package dev.aapy; | ||
|
||
import dev.aapy.file.Config; | ||
import dev.aapy.file.Message; | ||
import dev.aapy.file.Scoreboard; | ||
import dev.aapy.file.Tablist; | ||
import dev.aapy.listeners.hotbar.PvPListener; | ||
import dev.aapy.manager.Manager; | ||
import dev.aapy.manager.managers.PermissionManager; | ||
import dev.aapy.tablist.Tab; | ||
import dev.aapy.tablist.provider.TablistProvider; | ||
import dev.aapy.util.CC; | ||
import lombok.Getter; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.World; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
@Getter | ||
public class SnakeHub extends JavaPlugin { | ||
|
||
private static SnakeHub plugin; | ||
private PermissionManager permission; | ||
private Manager manager; | ||
private PvPListener pvpListener; | ||
|
||
@Override | ||
public void onEnable() { | ||
plugin = this; | ||
|
||
this.manager = new Manager(this); | ||
this.manager.enable(); | ||
CC.log("&cSnakeHub &f" + this.manager.getManagers().size() + " &amanagers have been registered"); | ||
|
||
CC.log("&f"); | ||
this.permission = new PermissionManager(this); | ||
this.permission.loadHook(); | ||
|
||
Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord"); | ||
CC.log("&aBungeeCoord connecting!"); | ||
|
||
Message.getConfig().load(); | ||
Scoreboard.getConfig().load(); | ||
Tablist.getConfig().load(); | ||
Config.getConfig().load(); | ||
|
||
CC.log("&7&m========================="); | ||
CC.log(""); | ||
CC.log("&cPlugin Name: &fSnakeHub"); | ||
CC.log("&cVersion: &f1.2.0-HOTFIX"); | ||
CC.log("&cAuthor: &fAapy#0001"); | ||
CC.log(""); | ||
CC.log("&7&m========================="); | ||
|
||
for (World world : Bukkit.getWorlds()) { | ||
world.setGameRuleValue("doDaylightCycle", "false"); | ||
world.setGameRuleValue("doMobSpawning", "false"); | ||
world.setTime(6000L); | ||
} | ||
|
||
if (Config.getConfig().getBoolean("BOOLEANS.TABLIST")) { | ||
new Tab(this, new TablistProvider()); | ||
} | ||
|
||
Message.getConfig().save(); | ||
Scoreboard.getConfig().save(); | ||
Tablist.getConfig().save(); | ||
Config.getConfig().save(); | ||
} | ||
|
||
@Override | ||
public void onDisable() { | ||
this.manager.disable(); | ||
Message.getConfig().save(); | ||
Scoreboard.getConfig().save(); | ||
Tablist.getConfig().save(); | ||
Config.getConfig().save(); | ||
} | ||
|
||
public static SnakeHub getInst() { | ||
return plugin; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package dev.aapy.commands.plugin; | ||
|
||
import dev.alex.net.utilities.command.command.CommandExecutor; | ||
|
||
/** | ||
* @author 7qv_ and Alexito2060 on 19/2/2022. | ||
* @project SnakeHub | ||
*/ | ||
|
||
public class HubCore extends CommandExecutor { | ||
|
||
public HubCore() { | ||
super("HubCore", "HubCore command"); | ||
registerArgument(new HubInfo()); | ||
registerArgument(new HubReload()); | ||
} | ||
} |
Oops, something went wrong.