Comments (9)
UPDATED with latest commit:
Added these placeholders (BSkyBlock examples):
Level Placeholder
%Level_bskyblock-island-level% - the player's level
Top Ten Placeholders
%Level_bskyblock-island-level-top-value-x% where x is a number between 1 and 10
%Level_bskyblock-island-level-top-name-x% where x is a number between 1 and 10
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%
Tested using Placeholder API's parse command and they work.
e.g.
papi parse LSPVicky level %Level_bskyblock-island-level-top-value-10%
[21:37:20 INFO]: level
papi parse LSPVicky level %Level_bskyblock-island-level-top-value-1%
[21:37:23 INFO]: level 28
papi parse LSPVicky level %Level_bskyblock-island-level%
[21:37:38 INFO]: level 28
from level.
No, there isn't.
@Poslovitch Is there a way for the add-on to register placeholders?
from level.
Yes, but that'll need some boilerplate code. But that's possible .
from level.
More and more users are asking for this.
@tastybento Registering a placeholder can be done using this code:
BentoBox.getInstance().getPlaceholdersManager().registerPlaceholder(Addon, String, PlaceholderReplacer);
See the Javadoc for reference.
from level.
@Poslovitch Thanks. I'll look into this now.
from level.
Okay, added in commit 8eaca60
It needs testing.
from level.
commit 97fb434
from level.
This issue relates to this discussion: BentoBoxWorld/BentoBox#322
from level.
Note placeholder names now have the game mode in them so you can get them for any game mode.
from level.
Related Issues (20)
- Add a command to view the number of certain blocks placed on the player's island HOT 4
- Add an option for increasing point requirements per level with each level-up HOT 5
- Command to add level points to an island HOT 2
- Level addon counts and adds ocean floor blocks to level. HOT 8
- Build bug with Ultimate Stacker HOT 1
- Upgrade the limit of the blocks
- Generic top or stats feature for server management. HOT 1
- Placeholder: %aoneblock_island_members_count_top_value_X% HOT 4
- Placeholder: %Level_aoneblock_top_weighted_name_x% HOT 1
- NPE: Could not pass event InventoryClickEvent to BentoBox v2.0.0-SNAPSHOT-b2514 HOT 3
- /is top spams "Visits are disabled in this island" HOT 1
- Levels - List Customizability HOT 4
- Incompatibility with UltimateStacker HOT 7
- Error when running level command without UltimateStacker
- Performance issue with tops HOT 14
- Request for Additional Placeholders and Sign Functionality HOT 7
- Top 10 placeholder is wrong HOT 6
- WildStacker IllegalStateException HOT 9
- NoSuchMethodError when trying to remove stats HOT 1
- POSSIBILITY TO REMOVE BLOCKS FROM THE LIST HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from level.