-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Girlboss" "Gaslight" were the people who made these mods teenagers? …
…Why would you you want to exploit someone just because you do not agree with their opinion? Those names are so cringe they make me want to throw up! Can we just go back to the old system of chatting and forget chat reporting forever?
- Loading branch information
Showing
10 changed files
with
89 additions
and
85 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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
# Girlboss | ||
|
||
Girlboss is a mod that lets you detect when someone sends a private message to another player and attempts to detect who the receiving player is. | ||
Girlboss is a mod that detects when people are sending private messages, and who has seen them. This is done by detecting acknowledgements of messages you haven't received via the last seen field. | ||
|
||
The detection of someone sending a message is achieved by listening to "header packets" which are sent whenever a private message is sent. | ||
|
||
The detection of who received it is achieved by comparing the "last message" field on the receiver's next chat message. | ||
|
||
[Demo Video](https://www.youtube.com/watch?v=xnvMJV1unEY) | ||
[Demo Video](https://www.youtube.com/watch?v=qnf4P1dGR9g) | ||
|
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
Binary file not shown.
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,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file was deleted.
Oops, something went wrong.
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
47 changes: 0 additions & 47 deletions
47
src/main/java/gg/nodus/girlboss/mixin/MixinClientPlayNetworkHandler.java
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/main/java/gg/nodus/girlboss/mixin/MixinMessageHandler.java
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,31 @@ | ||
package gg.nodus.girlboss.mixin; | ||
|
||
import com.mojang.authlib.GameProfile; | ||
import gg.nodus.girlboss.SignatureTracker; | ||
import net.minecraft.client.network.message.MessageHandler; | ||
import net.minecraft.network.message.MessageSignatureData; | ||
import net.minecraft.network.message.MessageType; | ||
import net.minecraft.network.message.SignedMessage; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
@Mixin(MessageHandler.class) | ||
public class MixinMessageHandler { | ||
|
||
@Inject(method = "onChatMessage", at = @At("HEAD")) | ||
public void onChatMessage(final SignedMessage message, final GameProfile sender, final MessageType.Parameters params, final CallbackInfo ci) { | ||
if (message.signature() == null) { | ||
return; | ||
} | ||
SignatureTracker.receivedMessage(message.signature().toByteBuffer()); | ||
for (final MessageSignatureData lastSeen : message.signedBody().lastSeenMessages().entries()) { | ||
final ByteBuffer signatureByteBuffer = lastSeen.toByteBuffer(); | ||
SignatureTracker.addSeenSignature(sender.getId(), signatureByteBuffer); | ||
} | ||
} | ||
|
||
} |
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
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