-
-
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
PlaceholderAPI Placeholders automatically registered to each GameModeAddon #322
Comments
PlaceholderAPI integration is done. Let's add the placeholders now! |
There's a bug that occurs on startup with 0.13.0-SNAPSHOT because the plugin doesn't check if PlaceholderAPI plugin exists or not.
I'll try and fix it. |
@Poslovitch I added a check for the Placeholder API's mentioned in the soft depend of plugin.yml. I am not familiar with MVdWPlaceholderAPI. I included it in the check but I don't think it's a drop-in replacement so I think the check should just be for PlaceholderAPI right now. Can you check it? |
Oh, I see what's wrong on this one! |
MVdWPlaceholderAPI is not supported yet though. Maybe I'll work on this today. |
Fixed the bug once and for all in the commit above |
Here are some other placeholders I thought may be interesting:
|
Where can i find list of actually implemented placeholders? |
@Kryniowesegryderiusz None is implemented yet. |
@Poslovitch PlaceholderAPI already has a placeholder that allows you to use any placeholder from MVdWPlaceholderAPI |
How can I add addons to BSkyblock? |
@AbelMG Off-topic. |
Added these placeholders (BSkyBlock examples): Level Placeholder Top Ten Placeholders If the top ten is less than 10 players then the placeholder will return an empty string. To get the the values for other game modes, for example AcidIsland or CaveBlock, use the same format but with the Addon name in lower case, e.g. %Level_acidisland-island-level% |
These don't work. No placeholders on mentioned here work.. |
@PizzaMC ...Maybe because this is a feature request...? |
Anyway, I'm gonna work on placeholders that'll be automatically registered by every GameModeAddon. That's going to be easier. |
@PizzaMC The Level add-on ones are done and work. It does require PAPI plugin to be installed. The BentoBox ones though still need to be done. |
Hiya Poslovitch and tastybento! :D May i request that the next placeholder to be implemented be one that returns true/false if the player is the island owner? It would be super beneficial to have this placeholder so that it could be used as an important requirement to check for island upgrades. I know there are more important things to work on but i thought i'd just throw this out there due to how useful it actually is. Thanks! |
If you plan to use placeholders just to find out, if user has or has not owner of island, then you are doing something wrong. I know, that "hype" about placeholders is their simplicity. But using them to get information is just the same, as using JAVA to open any browser. Yes, you can do it, but it is just wrong. |
@Deathinflames @BONNe Placeholders are not designed to get data that will later be used in a programmatic manner. They're used to display things. And @Deathinflames: such placeholder has already been suggested. |
@Poslovitch |
@BONNe I think you misunderstood what I was saying: Placeholders are not methods to get data like Island#getOwner() would. They are used to display things. |
@BONNe While i understand that placeholders might not be designed to be used in a programmatic manner as @Poslovitch has pointed out, and they should only be used to display stats and such, there are more than quite a few people that use them in conjunction with say DeluxeMenus for example as conditional requirements for other things that IMO do not justify the need to have a whole separate addon/plugin be created for if it can just be as simple as checking the output of certain placeholders. Yes, i agree this might be wrong and not a very logical way of doing things from a developers point of view but for the sake of functionality it's another valid way of doing things and it works quite well, otherwise why would clip have created such a thing? Also @Poslovitch i understand it's already been suggested, my post was simply to request that this particular placeholder be expedited, but i think that's probably out the window now with this disagreement in functionality. |
Placeholders are planned and will be implemented in 1.4.0. Don't worry about that @Deathinflames. |
Would also be cool to see a placeholder that returns how many island resets the player has left. |
Closing this, as the PR has been merged. Please create feature requests if you want us to add some specific placeholders that we didn't add there. |
Description
Placeholders that hook into PlaceholderAPI.
Placeholders
%island_owner% - Owner of current island, returns empty if no owner.
%island_team_size% - Returns number of island members
%island_team_member_[#] - Returns name of island member (# represents a particular member)
%island_level_top_value_[1-10] - Displays the level of the top islands (1 being #1 island, 10 being #10 island)
%island_level_top_name_[1-10] - Displays island owner of the top islands
%island_protection_size% - Returns protection size of the player's island (not the island they are standing in, but their own island).
%island_flag_(flag-name)% - Return the value that the island flag is set to - this will probably be used the least.
%island_has_island% - true/false if player has an island - Should probably include a 3rd option that says if they are part of a team.
I've probably not thought of everything yet, but this is a start. I think the ones above will be used the most.
More Placeholders
PlaceholderAPI: https://www.spigotmc.org/wiki/placeholderapi-plugin-placeholders-page-1/#askyblock - has 4 more nice placeholders that would also probably be nice to have (island z, x, world, coop).
MVDW has a ton of placeholders, not sure how necessary they are. The more the merrier though: https://www.spigotmc.org/wiki/mvdw-placeholders/
The text was updated successfully, but these errors were encountered: