Native support to AuthMe Legacy (BETA) NOT TESTED.

This commit is contained in:
JH3Y50N 2020-03-05 22:11:23 -03:00
parent 9ac67f158a
commit 403025afe7
8 changed files with 115 additions and 113 deletions

View File

@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="C:/Users/jheys/Downloads/AuthMe-5.6.0-beta1.jar"/>
<classpathentry kind="lib" path="C:/Users/jheys/Documents/Plugins - APIs/AuthMe-5.5.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="C:/Users/jheys/Documents/bungeecord/bungeecord.jar"/>
<classpathentry kind="lib" path="C:/Users/jheys/Documents/MC - Plugins/PaperSpigot-1.8.8.jar"/>
<classpathentry kind="output" path="bin"/>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
name: JH_AuthMeBridge
main: JH_AuthMeBridge.bungee
version: 1.0
version: 1.0.2
website: www.jhdev.net
author: Jheyson
description: Um plugin para ligaro AuthMe com seu bungeecord

View File

@ -1,6 +1,6 @@
name: JH_AuthMeBridge
main: JH_AuthMeBridge.spigot
version: 1.0.1
version: 1.0.2
website: www.jhdev.net
author: Jheyson
description: Plugin By www.jhdev.xyz Jheyson

View File

@ -54,9 +54,11 @@ public class spigot extends JavaPlugin implements Listener, PluginMessageListene
@Override
public void onPluginMessageReceived(String channel, Player p, byte[] message) {
try {
DataInputStream in = new DataInputStream(new ByteArrayInputStream(message));
String subchannel = in.readUTF();
//System.out.println((p != null ? p.getName() : " not found ") + " received from channel" + channel + " and subchannel " + subchannel);
if(subchannel.equals("JH_AuthMeBridge")){
String input = in.readUTF();
if(isLogged(input))return;
@ -67,7 +69,7 @@ public class spigot extends JavaPlugin implements Listener, PluginMessageListene
public void run()
{
// For older versions of Authme
// fr.xephi.authme.api.API.forceLogin(player);
//fr.xephi.authme.api.API.forceLogin(player);
fr.xephi.authme.api.v3.AuthMeApi.getInstance().forceLogin(player);
logados.add(player.getName());
}