zDevelopers / UHPlugin

Plugin UltraHardcore (“Kill the Patrick”), augmenté. | UHC (“KTP”) plugin, improved.
Other
32 stars 24 forks source link

[1.8] Add a way to display episodes ends using /title #27

Closed AmauryCarrade closed 8 years ago

AmauryCarrade commented 10 years ago

Episode displayed in title (big) or subtitle (small) as an option.

If the episode is in the title, an option to display something like « 12 players in 5 teams left » in the subtitle.

episodes:
    enabled: true

    # Format: "mm", "mm:ss" or "hh:mm:ss". If invalid, 20 minutes.
    # Don't remove the "quotes" (because of the commas)!
    length: "20:00"

    vanillaTitle:
        use: true
        big: true   # If true, "title" used. Else, "subtitle".

        # Display the number of players/teams left in the subtitle?
        # Only available if `big` is set to `true`.
        showPlayersLeftInSubtitle: true
Relicum commented 9 years ago

Can add this now for you, I'll show you on the spigot build I made.

AmauryCarrade commented 9 years ago

Can add this now for you, I'll show you on the spigot build I mad

Do it if you want, it's appreciated :) . If you agree, I'll merge your changes on this when I'll update the plugin to the 1.8 version.

Amunak commented 9 years ago

Would this also show a "game start" when you start the game, possibly with countdown and stuff? That would be awesome. Also game end, announcing winner/winning team.

AmauryCarrade commented 9 years ago

Was planned but not written here :) .

Relicum commented 9 years ago

Ohpps I forgot to tell you I have code a 4K line API dedicated to Titles/Action bar and Tab Header and Footer. It will only work on the full 1.8 spigot / bukkit . Also its coded in Java 8 so unless you use Java 8 it won't be of much use. It is fully documented and been running for 6 weeks on servers with no probs. Let me know if you use java 8, it wouldn't make a difference provided the end user was running java 8 on their server. Let me know. Sorry for forgetting about this.

AmauryCarrade commented 9 years ago

Ohh, this can be interesting! No problem for the only-real-1.8 support, the next version will not be compatible with 1.7.9 anyway. But I'm currently compiling with Java 7 because a lot of servers use Java 7. Your API cannot work with Java 7? (Yes, I can switch to Java 8 too.)

Update – this, I suppose?

Update II – From these global statistics, I see 80% of the servers use Java 7. This said, I think this number will evolve, and a dependency to Java 8 is not so hard to have (especially because all these dependencies are for me soft dependencies: I want this plugin to be able to run alone).