Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Commit

Permalink
Remove old useless Profile wrapping parts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikroskeem committed Apr 4, 2018
1 parent 050f56a commit 3ded2cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
8 changes: 0 additions & 8 deletions api/src/main/java/eu/mikroskeem/helios/api/entity/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

package eu.mikroskeem.helios.api.entity;

import eu.mikroskeem.helios.api.profile.Profile;
import org.jetbrains.annotations.Contract;


Expand Down Expand Up @@ -57,11 +56,4 @@ public interface Player extends org.bukkit.entity.Player {
*/
@Contract("null -> fail")
void sendJsonMessage(String jsonMessage);

/**
* Returns {@link Profile} associated with given player
*
* @return {@link Profile} instance
*/
Profile getGameProfile();
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import eu.mikroskeem.helios.api.entity.Player;
import eu.mikroskeem.helios.api.events.player.chat.PlayerPluginSendMessageEvent;
import eu.mikroskeem.helios.api.profile.Profile;
import eu.mikroskeem.helios.mod.HeliosMod;
import eu.mikroskeem.shuriken.common.Ensure;
import net.minecraft.server.v1_12_R1.EntityPlayer;
Expand All @@ -36,7 +35,11 @@
import net.minecraft.server.v1_12_R1.PacketPlayOutChat;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer;
import org.spongepowered.asm.mixin.*;
import org.spongepowered.asm.mixin.Implements;
import org.spongepowered.asm.mixin.Interface;
import org.spongepowered.asm.mixin.Intrinsic;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;


/**
Expand Down Expand Up @@ -79,9 +82,4 @@ public void sendJsonMessage(String jsonMessage) {
PacketPlayOutChat packet = new PacketPlayOutChat(nmsChatComponent);
getHandle().playerConnection.sendPacket(packet);
}

@Override
public Profile getGameProfile() {
return (Profile) getHandle().getProfile();
}
}

0 comments on commit 3ded2cf

Please sign in to comment.