mirror of
https://github.com/JH3Y50N/JH_AuthMeBridge.git
synced 2025-01-31 21:51:19 +01:00
Native support to AuthMe Legacy (BETA) NOT TESTED.
This commit is contained in:
parent
9ac67f158a
commit
403025afe7
@ -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.
@ -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
|
||||
|
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user