Skip to content

Titles and Subtitle support, /tpr and /sethome patch

Compare
Choose a tag to compare
@Thatsmusic99 Thatsmusic99 released this 15 Mar 21:32
· 366 commits to master since this release

[ + ] Added title and subtitle support in the custom-messages.yml file. Currently a moderately complex feature, this is an example of how it can be used (and is provided by default):

Teleport:
  eventBeforeTP: '&b↑ &8» &7Teleporting in &b{countdown} seconds&7, please do not
    move!'
  # This is an example use for titles and subtitles in the plugin.
  # This feature is supported only if you're on version 1.8.8 or newer.
  eventBeforeTP_title:
    # How many seconds (in ticks) the header should last. This is not including fading.
    length: 80
    # How many seconds (in ticks) the header should take to fade in.
    fade-in: 0
    # How many seconds (in ticks) the header should take to fade out.
    fade-out: 10
    '0': '&7&lTeleporting...'
    '20': '&b> &7&lTeleporting... &b<'
    '40': '&b>> &7&lTeleporting... &b<<'
    '60': '&b>>> &e&lTeleported! &b<<<'
  eventBeforeTP_subtitle:
    '0': '&bPlease do not move!'
    '60': ''

An example of this in action can be seen here - https://gyazo.com/821f1245b4ab03fdadce33e4d42b42d0

[ + ] Made it so that users cannot make any extra /tpr requests by either spamming the command or the sign whilst the plugin is still trying to search for a location.

[ + ] Admins can no longer bypass their homes limit - if they have one explicitly set - using /sethome . This is also a reminder for me to do check /setmainhome too but it's a bit too late on my end of the world.