-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2531 command button panel #2535
Conversation
Also enhances the customizable panel API by making templates load dynamically when requested.
@@ -466,16 +464,6 @@ public boolean loadSettings() { | |||
return false; | |||
} | |||
|
|||
log("Saving default panels..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer required because they are loaded from Jar if not found
@@ -346,7 +346,7 @@ private CompositeCommand getCommandFromArgs(String[] args) { | |||
* | |||
* @return IslandsManager | |||
*/ | |||
protected IslandsManager getIslands() { | |||
public IslandsManager getIslands() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More useful
@@ -362,9 +362,8 @@ ItemSlot nextItemSlot() { | |||
* this button is present. | |||
* | |||
* @return Map that links button type to amount in the gui. | |||
* @deprecated Use {@link #amount(String)} instead. | |||
* Use {@link #amount(String)} instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be deprecated, and is used a lot.
BentoBox.getInstance().logError(file.getAbsolutePath() + " does not exist for panel template"); | ||
// Return as file does not exist. | ||
return null; | ||
// Try to get it from the JAR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not there, then try and get it from the Jar.
import world.bentobox.bentobox.api.user.User; | ||
|
||
/** | ||
* @author tastybento |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for use by all customizable panels.
@@ -0,0 +1,59 @@ | |||
/** | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used yet. WIP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll delete this
title: "&2&l Your island homes" | ||
buttons: | ||
# This button is used for displaying islands to teleport to | ||
name: "&l [name]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep it simple - just name right now.
Quality Gate passedIssues Measures |
No description provided.