mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-01 05:57:51 +01:00
Forge 1.19.2 (#3477)
This commit is contained in:
parent
b1953632c5
commit
6e0e0e8ae9
@ -1,2 +1,2 @@
|
|||||||
minecraftVersion=1.19
|
minecraftVersion=1.19.2
|
||||||
forgeVersion=41.0.19
|
forgeVersion=43.0.3
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
package me.lucko.luckperms.forge;
|
package me.lucko.luckperms.forge;
|
||||||
|
|
||||||
|
import com.mojang.brigadier.ParseResults;
|
||||||
import me.lucko.luckperms.common.cacheddata.result.TristateResult;
|
import me.lucko.luckperms.common.cacheddata.result.TristateResult;
|
||||||
import me.lucko.luckperms.common.locale.TranslationManager;
|
import me.lucko.luckperms.common.locale.TranslationManager;
|
||||||
import me.lucko.luckperms.common.query.QueryOptionsImpl;
|
import me.lucko.luckperms.common.query.QueryOptionsImpl;
|
||||||
@ -101,7 +102,8 @@ public class ForgeSenderFactory extends SenderFactory<LPForgePlugin, CommandSour
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void performCommand(CommandSourceStack sender, String command) {
|
protected void performCommand(CommandSourceStack sender, String command) {
|
||||||
sender.getServer().getCommands().performCommand(sender, command);
|
ParseResults<CommandSourceStack> results = sender.getServer().getCommands().getDispatcher().parse(command, sender);
|
||||||
|
sender.getServer().getCommands().performCommand(results, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -59,7 +59,7 @@ public class UserCapabilityListener {
|
|||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onPlayerClone(PlayerEvent.Clone event) {
|
public void onPlayerClone(PlayerEvent.Clone event) {
|
||||||
Player previousPlayer = event.getOriginal();
|
Player previousPlayer = event.getOriginal();
|
||||||
Player currentPlayer = event.getPlayer();
|
Player currentPlayer = event.getEntity();
|
||||||
|
|
||||||
previousPlayer.reviveCaps();
|
previousPlayer.reviveCaps();
|
||||||
try {
|
try {
|
||||||
|
@ -134,7 +134,7 @@ public class ForgePlayerCalculator implements ContextCalculator<ServerPlayer> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.plugin.getContextManager().signalContextUpdate((ServerPlayer) event.getPlayer());
|
this.plugin.getContextManager().signalContextUpdate((ServerPlayer) event.getEntity());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
@ -143,7 +143,7 @@ public class ForgePlayerCalculator implements ContextCalculator<ServerPlayer> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.plugin.getContextManager().signalContextUpdate((ServerPlayer) event.getPlayer());
|
this.plugin.getContextManager().signalContextUpdate((ServerPlayer) event.getEntity());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ public class ForgeConnectionListener extends AbstractConnectionListener {
|
|||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
||||||
public void onPlayerLoadFromFile(PlayerEvent.LoadFromFile event) {
|
public void onPlayerLoadFromFile(PlayerEvent.LoadFromFile event) {
|
||||||
ServerPlayer player = (ServerPlayer) event.getPlayer();
|
ServerPlayer player = (ServerPlayer) event.getEntity();
|
||||||
GameProfile profile = player.getGameProfile();
|
GameProfile profile = player.getGameProfile();
|
||||||
|
|
||||||
if (this.plugin.getConfiguration().get(ConfigKeys.DEBUG_LOGINS)) {
|
if (this.plugin.getConfiguration().get(ConfigKeys.DEBUG_LOGINS)) {
|
||||||
@ -137,7 +137,7 @@ public class ForgeConnectionListener extends AbstractConnectionListener {
|
|||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.LOWEST)
|
@SubscribeEvent(priority = EventPriority.LOWEST)
|
||||||
public void onPlayerLoggedOut(PlayerEvent.PlayerLoggedOutEvent event) {
|
public void onPlayerLoggedOut(PlayerEvent.PlayerLoggedOutEvent event) {
|
||||||
ServerPlayer player = (ServerPlayer) event.getPlayer();
|
ServerPlayer player = (ServerPlayer) event.getEntity();
|
||||||
handleDisconnect(player.getGameProfile().getId());
|
handleDisconnect(player.getGameProfile().getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user