Skip to content

Commit

Permalink
fucking events ain't working
Browse files Browse the repository at this point in the history
  • Loading branch information
Spigey committed May 2, 2024
1 parent 040ec7a commit 18ef1b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings=1.20.4+build.2
loader_version=0.15.1

# Mod Properties
mod_version=0.1.4
mod_version=0.1.5
maven_group=spigey.asteroide
archives_base_name=asteroide

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/spigey/asteroide/AsteroideAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void onInitialize() {
addModule(new BanStuffs());
addModule(new AutoSlotSwitchModule());
// addModule(new WordFilterModule());
// addModule(new AutoEz());
addModule(new AutoEz());


// Commands
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/spigey/asteroide/modules/AutoEz.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@ public AutoEz() {
@Override
public void onActivate() {
banstuff();
info("yes you activated");
if(active){return;}
info("omg!!! it's activating now");
MeteorClient.EVENT_BUS.subscribe(this);
active = true;
}

@EventHandler
private void onPlayerDeath(PlayerDeathEvent event){
info("yes uwu someone died");
if(!isActive()){return;}
info("daddy");
if(!event.isTarget()){return;}
info("look someone else died");
PlayerEntity victim = event.getPlayer();
msg(messages.get().get(randomNum(0,messages.get().size() - 1))
.replace("{player}", victim.getGameProfile().getName())
Expand Down

0 comments on commit 18ef1b2

Please sign in to comment.