PlaceholderAPI icon indicating copy to clipboard operation
PlaceholderAPI copied to clipboard

Placeholders to add

Open Wundero opened this issue 8 years ago • 15 comments

List of expansions (hooks) to add:

  • [x] Permissions hook
    • [x] Permissions options
  • [x] Economy hook
  • [x] World token for Player
  • [x] Date/Time hook
  • [x] Unique players
  • [x] Player ping
  • [ ] Numerous javascript placeholder starting points
  • [ ] Data placeholder -> takes in a data holder as a source, and uses tokens to determine the value to get.
    • [ ] Contextual support when that is supported

Note; placeholders involving non-Sponge systems (like plugins) should have support either implemented directly in the plugins or as a bridging plugin, for two reasons:

  • Adding dependencies to this plugin would bloat it beyond necessary levels. There is no reason to have soft dependencies as this is intended to be an API.
  • Support for this API in plugins that use it would make user support for placeholders nearly seamless
  • Bridge plugins would be a bit more bloating for the user but removes dependencies in projects that are trying to trim dependencies down; for instance, if NuVotifier ends up supporting services, a NuVotifier-PlaceholderAPI bridge would be a bridge plugin.

I will add more as suggestions come in/I come up with more.

Wundero avatar Feb 15 '17 00:02 Wundero

BungeeCord, like the amount of all online players.

randombyte-developer avatar Feb 16 '17 07:02 randombyte-developer

Tried adding SpongyCord support, but the Consumers won't run when calling API tasks. Can't get it to work.

ronaldburns avatar Feb 19 '17 11:02 ronaldburns

Do you have a separate branch for that? I can help fixing it. @rojo8399

randombyte-developer avatar Feb 19 '17 16:02 randombyte-developer

Or using this. It is an updated version of SpongyCord.

randombyte-developer avatar Feb 20 '17 12:02 randombyte-developer

I think I will separate out dependency-based placeholders into their own plugins or something, so as to minimize the size of the main plugin. I will try to write a proper plugin for each of these (except maybe nucleus because of Gluon), but I need to find a bit more time first.

Wundero avatar Feb 20 '17 12:02 Wundero

I have written a BungeeCord placeholders plugin, but I have yet to finish writing the script and expansion browser for GH Pages, and I need @rojo8399 to add GH pages before I can commit the browser. The browser might be a while because I am new to web dev (sorta), so I need to figure out how to design and lay things out, as well as create the functions which can fetch and download files from GitHub. Once that is done I will create a folder in the root called expansions with plugins that can be downloaded and installed, and a folder called scripts which can either be downloaded as .js files or copy-pasted into the folder directly by the user.

Wundero avatar Mar 06 '17 06:03 Wundero

I am going to add a few things to my expansion, do some testing, and then push it to Ore hopefully. It might take a couple of days due to time constraints, but I will try to release it ASAP.

Wundero avatar Mar 06 '17 07:03 Wundero

I suppose I should talk about the BungeeCord placeholders since I haven't done anything recently for them: I have not had much time as of late to work on coding at all, and I was having issues prior to this lapse in time getting the placeholders to work. I now have more free time and will look into working on them again, however since I have many issues to work out before uploading it, do not expect it for some time. I apologize for the delays and hope to have a build out soon.

Wundero avatar Apr 25 '17 00:04 Wundero

@Wundero No worries. I myself have very little time, too, since school started some days ago. I haven't even implemented PlaceholderAPI into my plugin(holograms).

randombyte-developer avatar Apr 25 '17 20:04 randombyte-developer

My plugin adds pixelmon support, so you don't need to https://github.com/happyzleaf/PixelmonPlaceholders

happyzleaf avatar Jun 26 '17 08:06 happyzleaf

Sounds awesome. One thing to note is that, in the next update, I am going to force the Object onValueRequest(Player, Optional<String>) as the method needing implementation and provide a default implementation for the Text-based method. The boilerplate code you have in your ExpansionBase will no longer be needed. :P

Wundero avatar Jun 26 '17 08:06 Wundero

Awesome!

happyzleaf avatar Jun 26 '17 14:06 happyzleaf

How's the Nucleus support going? I mean since Nucleus had its official release it would be cool if support could be added soon.

BrainStone avatar Aug 19 '17 23:08 BrainStone

Nucleus has official support through Nucleus Gluon which interconnects the two plugins. Any placeholders available through Nucleus are available through this plugin.

Wundero avatar Aug 24 '17 07:08 Wundero

has bungee support been completely dropped? Kind of need this for my server selector to display the amount of players on a server.

KhaozFrost avatar Jan 12 '18 17:01 KhaozFrost