mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-02 06:28:13 +01:00
Code smells cleanup
This commit is contained in:
parent
c76c854ed3
commit
180517cef3
@ -6,7 +6,6 @@ import java.util.List;
|
||||
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.api.commands.User;
|
||||
import us.tastybento.bskyblock.lists.Placeholders;
|
||||
|
||||
/**
|
||||
* Handles hooks with other Placeholder APIs.
|
||||
@ -29,8 +28,6 @@ public class PlaceholderHandler {
|
||||
* @param plugin
|
||||
*/
|
||||
public static void register(BSkyBlock plugin){
|
||||
// Register placeholders
|
||||
new Placeholders();
|
||||
|
||||
// Load Internal Placeholder API
|
||||
try{
|
||||
|
@ -12,7 +12,10 @@ import us.tastybento.bskyblock.api.placeholders.PlaceholderBuilder;
|
||||
|
||||
public class Placeholders {
|
||||
|
||||
public static final Placeholder PLUGIN_NAME = new PlaceholderBuilder().identifier("bsb_plugin_name").value((user) -> BSkyBlock.getInstance().getDescription().getName()).build();
|
||||
// Utility classes, which are collections of static members, are not meant to be instantiated.
|
||||
private Placeholders() {}
|
||||
|
||||
public static final Placeholder PLUGIN_NAME = new PlaceholderBuilder().identifier("bsb_plugin_name").value(user -> BSkyBlock.getInstance().getDescription().getName()).build();
|
||||
|
||||
/**
|
||||
* @return List of all the flags in this class
|
||||
|
Loading…
Reference in New Issue
Block a user