This Jump and Run plugin fits on every server!
Whether in the main lobby, on a static server or a waiting lobby, this plugin is standalone and therefore perfect for any server!
Fully customizable via config file
Code (YAML):
# ******************************************************************************* # AdvancedJumpAndRun # Plugin by Xnadi # *******************************************************************************
# Should the plugin check for updates on every restart of the server? update-checker: true
# Should the plugin inform players with the permission 'jnr.update' about new versions? inform-players-about-updates: true
# Prefix of the Plugin prefix: "&dJump and Run &5&o■ &7"
# Block-Type # Should the blocks to jump on be 'glass' or 'concrete'? block-type: "concrete"
# Block-Type of the winning-platform # Should the blocks of the winning-platform be 'glass' or 'concrete'? block-type-winning-platform: "glass"
# What message should the hologram show? # {PREFIX} gets replaced with the prefix above. hologram-message: "&7» &aJump and Run &7- &eStart &7«"
# What message should the player get who finishes the Jump and Run? # {PREFIX} gets replaced with the prefix above. win-message: "{PREFIX}&aCongratulations, you have completed the Jump and Run!"
# Should a message be broadcasted when a player finishes the Jump and Run? win-broadcast: true
# What message should be broadcasted when a player finishes the Jump and Run? # {PREFIX} gets replaced with the prefix above. # {PLAYER} gets replaced with the players name. win-broadcast-design: "{PREFIX}&e{PLAYER} &7has just &afinished &7the Jump and Run!"
# How many jumps should a player complete before he wins? jumps-to-win: 30
# Should there be an Actionbar when the player completes a jump? action-bar: true
# What should the Actionbar look like? # {PREFIX} gets replaced with the prefix above. # {JUMPS} gets the jumps a player has already completed. # {JUMPSTOWIN} is equal to 'jumps-to-win' (above). action-bar-design: "{PREFIX}&7You have already completed &e{JUMPS} &7out of &e{JUMPSTOWIN} &7jumps!"
# Should the console perform a command when the player finishes the Jump and Run? win-commands-active: false
# Which commands should the console perform when the 'win-commands-active' is 'true'? # {PLAYER} gets replaced with the players name. win-commands: -
"give {PLAYER} minecraft:diamond 10" -
"give {PLAYER} minecraft:gold_ingot 20"
# Should the player perform a command when he finishes the Jump and Run? player-win-commands-active: false
# Which commands should the player perform when the 'player-win-commands-active' is 'true'? player-win-commands: -
"jnrTop"
# Should the player perform a command when he loses the Jump and Run? player-lose-commands-active: false
# Which commands should the player perform when the 'player-lose-commands-active' is 'true'? player-lose-commands: -
"warp JumpAndRun"
# {PREFIX} gets replaced with the prefix above. # {JUMPSTOWIN} is equal to 'jumps-to-win' (above). # {TIME} get the new record time. new-personal-best: -
"{PREFIX}You have set a &cnew personal record &7at &c{JUMPSTOWIN} &7jumps." - "{PREFIX}Your new record time: &a{TIME}"
# {PREFIX} gets replaced with the prefix above. # {JUMPSTOWIN} is equal to 'jumps-to-win' (above). # {TIME} get the new record time. time-message:
- "{PREFIX}Your current time: &a{TIME}"
# Design you own /jnrStats command. # {PREFIX} gets replaced with the prefix above. # {JUMPSTOWIN} is equal to 'jumps-to-win' (above). # {TIME} get the personal best time. # {WON} get how many games you have won. # {LOST} get how many games you have lost. stats-command: -
"{PREFIX}&7»« &m----------&r &8◣ &dStats &8◢ &7&m----------&r &7»«" -
"{PREFIX}" -
"{PREFIX} &8× &7Your personal best at &c{JUMPSTOWIN} &7jumps:" -
"{PREFIX} &8× &7Time &8» {TIME}" -
"{PREFIX} &8× &7Games won &8» {WON}" -
"{PREFIX} &8× &7Games lost &8» {LOST}" -
"{PREFIX}" -
"{PREFIX}&7»« &m----------&r &8◣ &dStats &8◢ &7&m----------&r &7»«"
# Design you own /jnrStats <player> command. # {PREFIX} gets replaced with the prefix above. # {JUMPSTOWIN} is equal to 'jumps-to-win' (above). # {PLAYER} gets replaced with the players name. # {TIME} get the personal best time. # {WON} get how many games you have won. # {LOST} get how many games you have lost. stats-command-others: -
"{PREFIX}&7»« &m----------&r &8◣ &dStats &8◢ &7&m----------&r &7»«" -
"{PREFIX}" -
"{PREFIX} &8× &e{PLAYER}'s &7personal best at &c{JUMPSTOWIN} &7jumps:" -
"{PREFIX} &8× &7Time &8» {TIME}" -
"{PREFIX} &8× &7Games won &8» {WON}" -
"{PREFIX} &8× &7Games lost &8» {LOST}" -
"{PREFIX}" -
"{PREFIX}&7»« &m----------&r &8◣ &dStats &8◢ &7&m----------&r &7»«"
# Design the {COMMANDTOPLIST} pattern for the 'top-command'. # {PREFIX} gets replaced with the prefix above. # {RANK} gets replaced with the players rank. # {PLAYER} gets replaced with the players name. # {TIME} get the personal best time of the player. command-top-list-design: "{PREFIX} &8× &7#&a{RANK} &e{PLAYER} &8» &a{TIME}"
# Design you own /jnrTop command. # {PREFIX} gets replaced with the prefix above. # {JUMPSTOWIN} is equal to 'jumps-to-win' (above). # {COMMANDTOPLIST} gets replaced by the top 5 with the design of 'command-top-list-design'. top-command: -
"{PREFIX}&7»« &m-----&r &8◣ &dJnR &7- &5Top &7at &c{JUMPSTOWIN} &7Jumps &8◢ &7&m-----&r &7»«" -
"{PREFIX}" -
"{COMMANDTOPLIST}" -
"{PREFIX}" -
"{PREFIX}&7»« &m-----&r &8◣ &dJump and Run &7- &5Top &8◢ &7&m------&r &7»«"
# Design the {TOPLIST} pattern for the 'top-hologram'. # {RANK} gets replaced with the players rank. # {PLAYER} gets replaced with the players name. # {TIME} get the personal best time of the player. top-list-design: "&8× &7#&a{RANK} &e{PLAYER} &8» &a{TIME}"
# Design the hologram for the top 5 players. # {JUMPSTOWIN} is equal to 'jumps-to-win' (above). # {TOPLIST} gets replaced by the top 5 with the design of 'top-list-design'. top-hologram: -
"&7»« &m---&r &8◣ &dJnR &7- &5Top &7at &c{JUMPSTOWIN} &7Jumps &8◢ &7&m---&r &7»«" -
"" -
"{TOPLIST}" -
"" -
"&7»« &m----&r &8◣ &dJump and Run &7- &5Top &8◢ &7&m----&r &7»«"
# Choose an Inventory-Title for the Color-Selection Inventory. block-inventory-title: "&aChoose a block color"
# Change the message when you successfully change your color. # {PREFIX} gets replaced with the prefix above. # {COLOR} gets replaced with the color-name from 'block-inventory-color-names'. color-successfully-changed: "{PREFIX}&7You have &asuccessfully &7selected the color {COLOR}&7!"
# Change the message when you have already selected this color. # {PREFIX} gets replaced with the prefix above. # {COLOR} gets replaced with the color-name from 'block-inventory-color-names'. color-already-selected: "{PREFIX}&cYou have already selected this color!"
# Should particles appear when you make a jump? # (Only works from version 1.13 upwards) block-particles-enabled: true
Getting a random color on every new try
Customizable Actionbar
Adjustable range of the next block
Win broadcast to every player if you want
Spawns a random Block you have to jump on
Particles when you make a jump
Chooseable block type in the Config
Chooseable block type for the winnig-platform in the Config
Custom Win-Commands
Custom Player-Win-Commands
Custom Player-Lose-Commands
MySQL support
Custom Player-Stats
Custom Top 5 hologram
Custom Events (For Devs only )
Code (Text):
@EventHandler
public void onWin(JumpAndRunWinEvent event) {
final Player player = event.getPlayer();
}
@EventHandler
public void onLose(JumpAndRunLoseEvent event) {
final Player player = event.getPlayer();
}
@EventHandler
public void onNewPersonalBest(JumpAndRunNewPersonalBestEvent event) {
final Player player = event.getPlayer();
final Player timeMillis = event.getTimeMillis();
}
PlaceholderAPI support
Code (YAML):
# If you have installed the plugin 'PlaceholderAPI', # you can also use all PlaceholderAPI - placeholders here. # Such as the following own placeholders:
# %jnr_jumps_to_win% -> Get the required jumps to win the Jump and Run # %jnr_best_time% -> Get the best time of a player # %jnr_games_won% -> Get the amount of games won of a player # %jnr_games_lost% -> Get the amount of games lost of a player
Set a starting point with /setstart
Start jumping
Commands
/setstart - Set the start of the Jump and Run
/sethologram - Set the Top 5 hologram
/jnrstats - See your personal stats
/jnrstats <name> - See the stats of someone else
/jnrtop - See the top 5 players
/jnrcolor - Change your personal block color
/jnrreset - Reset all player stats
Permissions
jnr.setstart - With this permission you can set the starting point (/setstart)
jnr.sethologram - With this permission you can set the location of the Top 5 hologram
jnr.reset - With this permission you can reset all player stats
jnr.update - With this permission you can get notified if there is an new version of this plugin is available
Installation
Drag & drop the downloaded jar file in your Spigot plugins folder and restart your server.