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