Skip to content

Commit

Permalink
🎉 Created method and debug for hook placeholderapi.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurr0 committed Sep 30, 2021
1 parent 440779f commit 6ec28f9
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
import pl.minecodes.mineeconomy.profile.Profile;
import pl.minecodes.mineeconomy.profile.ProfileService;

import java.util.logging.Logger;

public class PlaceholderAPIHook extends PlaceholderExpansion {

@Inject
private Logger logger;
@Inject
private JavaPlugin plugin;
@Inject
Expand Down Expand Up @@ -48,4 +52,9 @@ public String onRequest(OfflinePlayer player, String parameter) {
}
return "";
}

public void registerHook() {
this.register();
this.logger.info("Successfully register PlaceholderAPI hook!");
}
}

0 comments on commit 6ec28f9

Please sign in to comment.