dev.the_fireplace.grandeconomy.mixin.ServerWorldMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of GrandEconomy Show documentation
Show all versions of GrandEconomy Show documentation
A server-side economy mod/api for Minecraft.
package dev.the_fireplace.grandeconomy.mixin;
import dev.the_fireplace.grandeconomy.events.NetworkEvents;
import net.minecraft.class_3218;
import net.minecraft.class_3222;
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;
@SuppressWarnings("unused")
@Mixin(class_3218.class)
public class ServerWorldMixin {
@Inject(at = @At("RETURN"), method = "method_18213")
public void onPlayerConnected(class_3222 player, CallbackInfo info) {
NetworkEvents.onPlayerJoinServer(player);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy