Code smells cleanup

This commit is contained in:
Tastybento 2018-02-10 14:00:40 -08:00
parent c76c854ed3
commit 180517cef3
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,6 @@ import java.util.List;
import us.tastybento.bskyblock.BSkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.bskyblock.api.commands.User; import us.tastybento.bskyblock.api.commands.User;
import us.tastybento.bskyblock.lists.Placeholders;
/** /**
* Handles hooks with other Placeholder APIs. * Handles hooks with other Placeholder APIs.
@ -29,8 +28,6 @@ public class PlaceholderHandler {
* @param plugin * @param plugin
*/ */
public static void register(BSkyBlock plugin){ public static void register(BSkyBlock plugin){
// Register placeholders
new Placeholders();
// Load Internal Placeholder API // Load Internal Placeholder API
try{ try{

View File

@ -12,7 +12,10 @@ import us.tastybento.bskyblock.api.placeholders.PlaceholderBuilder;
public class Placeholders { 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 * @return List of all the flags in this class