Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support advancements #2

Merged
merged 8 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ bin/
# fabric

run/

# java

hs_err_*.log
replay_*.log
*.hprof
*.jfr
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# yep-paper
# yep

Companion fabric mod for VelocityDiscord
Companion Fabric mod for VelocityDiscord

Allows VelocityDiscord to send death/advancement messages by sending them on the plugin channel velocity:yep
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ version = project.mod_version
group = project.maven_group

repositories {
maven {
url 'https://maven.bymartrixx.me'
}
}

dependencies {
Expand All @@ -22,8 +19,6 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation "me.bymartrixx.player-events:api:${project.player_events_api_version}"
}

processResources {
Expand Down
7 changes: 3 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.8
loader_version=0.14.9
yarn_mappings=1.19.2+build.28
loader_version=0.14.11

# Mod Properties
mod_version = 0.1.0
maven_group = ooo.foooooooooooo
archives_base_name = yep-fabric

# Dependencies
fabric_version=0.60.0+1.19.2
player_events_api_version = 2.4.1
fabric_version=0.69.0+1.19.2
2 changes: 1 addition & 1 deletion src/main/java/ooo/foooooooooooo/yep/PluginMessenger.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void sendMessage(ServerPlayerEntity player, IYepMessage message) {

Yep.LOGGER.trace("sent `" + msg + "` for player `" + name + "` of type `" + type + "` with message `" + message + "`");

// wrappedBuffer instead of copiedBuffer is best here?
// TODO: wrappedBuffer instead of copiedBuffer is best here?
var byteBuf = new PacketByteBuf(Unpooled.wrappedBuffer(msg.getBytes(StandardCharsets.UTF_8)));

ServerPlayNetworking.send(player, Yep.PLUGIN_CHANNEL, byteBuf);
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/ooo/foooooooooooo/yep/Yep.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public Yep() {
public void onInitialize() {
EventListener.initialize();

System.out.println("SHITFUCK SHIT FUCK SHIT FUCK");

LOGGER.info("Yep is enabled!");
}
}
Binary file added src/main/resources/assets/yep/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "${version}",

"name": "Yep",
"description": "Plugin that forwards death messages and similar events to Velocity proxy plugins",
"description": "Forwards death messages and similar events to Velocity proxy plugins",
"authors": [
"fooooooooooooooo"
],
Expand All @@ -14,7 +14,7 @@
},

"license": "MIT",
"icon": "assets/modid/icon.png",
"icon": "assets/yep/icon.png",

"environment": "server",
"entrypoints": {
Expand All @@ -27,9 +27,9 @@
],

"depends": {
"fabricloader": ">=0.14.9",
"fabricloader": ">=0.14.11",
"fabric-api": "*",
"minecraft": "~1.19",
"minecraft": ">=1.19.2",
"java": ">=17"
}
}