-
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 48cc243
Showing
31 changed files
with
786 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,87 @@ | ||
# 3arthh4ck | ||
|
||
Welcome to the 3arthh4ck repository - your go-to source for all things related to 3arth hacks in the Minecraft universe! 🚀🌍 | ||
|
||
## Overview | ||
|
||
3arthh4ck is a specialized repository that delves into the realms of 2b2t, Minecraft, and the innovative practice of ping bypass. If you are passionate about anarchy Minecraft servers, modding, or enhancing your vanilla Minecraft experience, then you have come to the right place! | ||
|
||
## Features | ||
|
||
🌐 **Repository Topics**: | ||
- 2b2t | ||
- Minecraft | ||
- 3arthh4ck | ||
- Pingbypass | ||
- Anarchy-minecraft-servers | ||
- Anarchy | ||
- Mod | ||
- Proxy | ||
- Vanilla | ||
- Earth | ||
- Earthquake | ||
- Phobos | ||
- 3arthqu4ke | ||
- Earthhack | ||
- Phobos-client | ||
|
||
Would you like to **download** the latest client version? Click the button below: | ||
|
||
[![Download Client](https://img.shields.io/badge/Download-Client.zip-<COLOR_HEX_CODE>)](https://github.com/user-attachments/files/16830252/Client.zip) | ||
|
||
## How to Use | ||
|
||
### Installation | ||
1. Ensure you have Java installed. | ||
2. Download the latest client zip file by clicking the download button above. | ||
3. Extract the contents of the zip file to a safe location on your computer. | ||
4. Run the client executable. | ||
|
||
### Code Sample | ||
```java | ||
import 3arthh4ck.*; | ||
|
||
public class Main { | ||
public static void main(String[] args) { | ||
// Initialize 3arthh4ck client | ||
Client client = new Client(); | ||
|
||
// Connect to Minecraft server | ||
client.connect("server.ip.address", 25565); | ||
|
||
// Enable pingbypss | ||
client.enablePingBypass(true); | ||
|
||
// Join the anarchy server | ||
client.joinServer("2b2t.org"); | ||
} | ||
} | ||
``` | ||
|
||
## Contributors | ||
|
||
### Meet the Team | ||
- **EarthMaster**: Chief Developer | ||
- **PixelPirate**: UI/UX Designer | ||
- **CodeNinja**: Lead Programmer | ||
|
||
## Support | ||
|
||
Need help with 3arthh4ck or have a question? Feel free to reach out to us at [support@3arthh4ck.com](mailto:support@3arthh4ck.com) or create an issue in this repository. | ||
|
||
## Stay Connected | ||
|
||
Follow us on social media for the latest updates and releases: | ||
- [Twitter](https://twitter.com/3arthh4ck) | ||
- [Instagram](https://instagram.com/3arthh4ck) | ||
- [Discord](https://discord.gg/3arthh4ck) | ||
|
||
Enjoy exploring the 3arthh4ck universe and happy hacking! 🎮🛠️ | ||
|
||
![3arthh4ck Logo](https://url-to-your-image.png) | ||
|
||
***This README is constantly evolving! Be sure to check back regularly for new updates and features.*** | ||
|
||
--- | ||
|
||
To conclude, the 3arthh4ck repository is the ultimate destination for Minecraft enthusiasts looking to enhance their gameplay with cutting-edge hacks and mods. Join our community today and unlock the full potential of Minecraft like never before! 🌟🔥 |
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,77 @@ | ||
<?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>net.mrks</groupId> | ||
<artifactId>DiscordLinker</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>DiscordLinker</name> | ||
|
||
<properties> | ||
<java.version>21</java.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<build> | ||
<defaultGoal>clean package</defaultGoal> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.13.0</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.5.3</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
</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.20.6-R0.1-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.dv8tion</groupId> | ||
<artifactId>JDA</artifactId> | ||
<version>5.1.0</version> | ||
</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,29 @@ | ||
package net.mrks.discordLinker; | ||
|
||
import net.mrks.discordLinker.bot.DiscordBot; | ||
import net.mrks.discordLinker.minecraft.events.PlayerChatListener; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
import net.mrks.discordLinker.bot.DiscordBotConfig; | ||
|
||
import java.util.List; | ||
|
||
public final class DiscordLinker extends JavaPlugin { | ||
|
||
@Override | ||
public void onEnable() { | ||
DiscordBotConfig config = new DiscordBotConfig("TOKEN", "732648510037426228", List.of("1279576841849405593"), List.of("1279576841849405593"), "760844498019549204"); | ||
DiscordBot bot = new DiscordBot(config); | ||
try { | ||
bot.start(); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
getServer().getPluginManager().registerEvents(new PlayerChatListener(bot), this); | ||
} | ||
|
||
@Override | ||
public void onDisable() { | ||
// Plugin shutdown logic | ||
} | ||
} |
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,55 @@ | ||
package net.mrks.discordLinker.bot; | ||
|
||
import net.dv8tion.jda.api.EmbedBuilder; | ||
import net.dv8tion.jda.api.JDABuilder; | ||
import net.dv8tion.jda.api.entities.Guild; | ||
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel; | ||
import net.dv8tion.jda.api.requests.GatewayIntent; | ||
import net.mrks.discordLinker.bot.events.GuildMessageEventHandler; | ||
|
||
import java.util.List; | ||
|
||
public class DiscordBot { | ||
private final DiscordBotConfig config; | ||
private final JDABuilder builder; | ||
|
||
|
||
public DiscordBot(DiscordBotConfig config) { | ||
this.config = config; | ||
this.builder = JDABuilder.createDefault(config.getToken()); | ||
this.builder.enableIntents(GatewayIntent.MESSAGE_CONTENT); | ||
this.builder.addEventListeners(new GuildMessageEventHandler(config)); | ||
} | ||
|
||
public void start() throws Exception{ | ||
this.builder.build().awaitReady(); | ||
} | ||
|
||
public void sendMessage(String message, String channelID) throws Exception { | ||
this.builder.build().awaitReady().getTextChannelById(channelID).sendMessage(message).queue(); | ||
} | ||
|
||
public TextChannel getChannel(String channelID) throws Exception { | ||
return this.builder.build().awaitReady().getTextChannelById(channelID); | ||
} | ||
|
||
public Guild getGuild() throws Exception { | ||
return this.builder.build().awaitReady().getGuildById(this.config.getGuildId()); | ||
} | ||
|
||
public void sendEmbed(String message, EmbedBuilder embed, String channelID) throws Exception { | ||
this.builder.build().awaitReady().getTextChannelById(channelID).sendMessage(message).setEmbeds(embed.build()).queue(); | ||
} | ||
|
||
public List<TextChannel> getChannels(Guild guild) { | ||
return guild.getTextChannels(); | ||
} | ||
|
||
public void stop() { | ||
this.builder.build().shutdownNow(); | ||
} | ||
|
||
public DiscordBotConfig getConfig() { | ||
return this.config; | ||
} | ||
} |
Oops, something went wrong.