mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 02:19:05 +00:00
Changed sync delay to 10 ticks to improve reliability.
This commit is contained in:
parent
7c307fa71b
commit
61d54ed9af
@ -707,7 +707,7 @@ public class MineverseChat extends JavaPlugin implements PluginMessageListener {
|
|||||||
p.getPlayer().sendPluginMessage(this, "VentureChat", outstream.toByteArray());
|
p.getPlayer().sendPluginMessage(this, "VentureChat", outstream.toByteArray());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// System.out.println("Sync start bottom...");
|
//System.out.println("Sync start bottom...");
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
catch(IOException e) {
|
catch(IOException e) {
|
||||||
@ -798,6 +798,7 @@ public class MineverseChat extends JavaPlugin implements PluginMessageListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(subchannel.equals("Sync")) {
|
if(subchannel.equals("Sync")) {
|
||||||
|
//System.out.println("Received update...");
|
||||||
String uuid = msgin.readUTF();
|
String uuid = msgin.readUTF();
|
||||||
MineverseChatPlayer p = MineverseChatAPI.getMineverseChatPlayer(UUID.fromString(uuid));
|
MineverseChatPlayer p = MineverseChatAPI.getMineverseChatPlayer(UUID.fromString(uuid));
|
||||||
for(Object ch : p.getListening().toArray()) {
|
for(Object ch : p.getListening().toArray()) {
|
||||||
|
@ -345,6 +345,7 @@ public class MineverseChatBungee extends Plugin implements Listener {
|
|||||||
//System.out.println("Sync received...");
|
//System.out.println("Sync received...");
|
||||||
String identifier = in.readUTF();
|
String identifier = in.readUTF();
|
||||||
if(identifier.equals("Receive")) {
|
if(identifier.equals("Receive")) {
|
||||||
|
//System.out.println("Sending update...");
|
||||||
String server = ser.getInfo().getName();
|
String server = ser.getInfo().getName();
|
||||||
UUID uuid = UUID.fromString(in.readUTF());
|
UUID uuid = UUID.fromString(in.readUTF());
|
||||||
SynchronizedMineverseChatPlayer smcp = MineverseChatAPI.getSynchronizedMineverseChatPlayer(uuid);
|
SynchronizedMineverseChatPlayer smcp = MineverseChatAPI.getSynchronizedMineverseChatPlayer(uuid);
|
||||||
|
@ -118,7 +118,7 @@ public class LoginListener implements Listener {
|
|||||||
public void run() {
|
public void run() {
|
||||||
plugin.synchronize(sync, false);
|
plugin.synchronize(sync, false);
|
||||||
}
|
}
|
||||||
}, 1L);
|
}, 10L);
|
||||||
if(!plugin.getConfig().getConfigurationSection("login").getString("message", "Default").equalsIgnoreCase("Default")) {
|
if(!plugin.getConfig().getConfigurationSection("login").getString("message", "Default").equalsIgnoreCase("Default")) {
|
||||||
event.setJoinMessage(Format.FormatStringAll(plugin.getConfig().getConfigurationSection("login").getString("message", "Default").replace("{player}", event.getPlayer().getName())));
|
event.setJoinMessage(Format.FormatStringAll(plugin.getConfig().getConfigurationSection("login").getString("message", "Default").replace("{player}", event.getPlayer().getName())));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user