Skip to content

Commit

Permalink
forgot i made /brew create playerOnly. oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Aug 27, 2024
1 parent f8dbbff commit 61c8ea0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/dre/brewery/api/addons/AddonManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CompletionException;
Expand Down Expand Up @@ -103,7 +102,7 @@ public void loadAddons() {
addon.getAddonLogger().info("Loading &a" + addon.getAddonInfo().name() + " &f-&a v" + addon.getAddonInfo().version() + " &fby &a" + addon.getAddonInfo().author());

addons.add(addon); // Add to our list of addons
//addon.onAddonEnable();
addon.onAddonPreEnable();
} catch (Exception e) {
plugin.getLogger().log(Level.SEVERE,"Failed to load addon class " + clazz.getSimpleName(), e);
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dre/brewery/api/addons/BreweryAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public abstract class BreweryAddon {
private AddonFileManager addonFileManager = null;
private AddonInfo addonInfo = null;

public void onAddonPreEnable() {
}

public void onAddonEnable() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void execute(BreweryPlugin breweryPlugin, CommandSender sender, String la
breweryPlugin.msg(sender, breweryPlugin.languageReader.get("Help_Create"));
return;
}
// Is this just a map?

Tuple<Brew, Player> brewForPlayer = CommandUtil.getFromCommand(sender, args);

if (brewForPlayer != null) {
Expand Down Expand Up @@ -55,7 +55,7 @@ public String permission() {

@Override
public boolean playerOnly() {
return true;
return false;
}


Expand Down

0 comments on commit 61c8ea0

Please sign in to comment.