Forge 1.19.2 (#3477)

This commit is contained in:
CDAGaming 2022-09-05 15:30:12 -05:00 committed by GitHub
parent b1953632c5
commit 6e0e0e8ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 8 deletions

View File

@ -1,2 +1,2 @@
minecraftVersion=1.19
forgeVersion=41.0.19
minecraftVersion=1.19.2
forgeVersion=43.0.3

View File

@ -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

View File

@ -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 {

View File

@ -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());
}
}

View File

@ -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());
}