Skip to content

Commit af96541

Browse files
committed
Log commands to console & change release name
1 parent 77a06ae commit af96541

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
with:
2929
tag_name: NitroCloudy-${{github.sha}}
30-
release_name: Release ${{github.sha}}
30+
release_name: Release NitroCloudy-${{github.sha}}
3131
draft: false
3232
prerelease: false
3333
- name: Upload Release Asset

src/main/java/tc/oc/occ/nitro/NitroListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public void onNitroAdd(NitroUserAddEvent event) {
4545
// Iterate through the list of strings from redemption-commands in the config
4646
for (String redemptionCommand :
4747
api.getConfig().getRedemptionCommands(event.getUser().getPlayerId().toString())) {
48+
// Print the redemption command(s) in console
49+
Bukkit.getConsoleSender().sendMessage("[Nitro] Executing redemption command: " + redemptionCommand);
4850
// Execute the command
4951
if (redemptionCommand.contains("%s")) {
5052
Bukkit.getServer()
@@ -85,6 +87,8 @@ public void onNitroRemove(NitroUserRemoveEvent event) {
8587
// Iterate through the list of strings from removal-commands in the config
8688
for (String removalCommand :
8789
api.getConfig().getRemovalCommands(event.getUser().getPlayerId().toString())) {
90+
// Print the removal command(s) in console
91+
Bukkit.getConsoleSender().sendMessage("[Nitro] Executing removal command: " + removalCommand);
8892
// Execute the command
8993
if (removalCommand.contains("%s")) {
9094
Bukkit.getServer()

0 commit comments

Comments
 (0)