8000 Integrate BytecodeAnalyser into the GitHub Actions build by DerEchtePilz · Pull Request #643 · CommandAPI/CommandAPI · GitHub
[go: up one dir, main page]

Skip to content

Integrate BytecodeAnalyser into the GitHub Actions build #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Okay, now hope it fails
  • Loading branch information
DerEchtePilz committed Apr 23, 2025
commit f63197c8f5677de5a3f85c2eb15b03889d42daaa
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ jobs:
chmod +x BytecodeAnalyser*.jar
java -jar BytecodeAnalyser*.jar

- name: Inspect the 1.20.1 dev/jorel/commandapi/nms folder
run: |
cd commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-nms-common/target/1.20.1
echo "Verify that folders were extracted"
ls
echo "Inspect the NMS_Common.class method bytecode"
cat bytecode_1.20.1_NMS_Common.txt

# - name: validate version-specific dependencies (nms-common)
# run: |
# nms_common_path="commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-nms-common/target/classes/dev/jorel/commandapi/nms/NMS_Common.class"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.scoreboard.Objective;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -365,6 +366,12 @@ public final <NBTContainer> Object getNBTCompound(CommandContext<CommandSourceSt
return nbtContainerConstructor.apply(CompoundTagArgument.getCompoundTag(cmdCtx, key));
}

@Override
public Objective getObjective(CommandContext<CommandSourceStack> cmdCtx, String key) throws CommandSyntaxException {
String objectiveName = ObjectiveArgument.getObjective(cmdCtx, key).getName();
return Bukkit.getScoreboardManager().getMainScoreboard().getObjective(objectiveName);
}

@Override
public final String getObjectiveCriteria(CommandContext<CommandSourceStack> cmdCtx, String key) {
return ObjectiveCriteriaArgument.getCriteria(cmdCtx, key).getName();
Expand Down
0