Package me.manossef.semihardcore.data
Class Messages
java.lang.Object
me.manossef.semihardcore.data.Messages
Stores all messages used by the plugin. The plugin creates an instance of
this class when it's enabled, and uses it throughout the running of the
server. Creating any new instances of this class has no effect on the plugin.
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
Message "addlife-command-messages.lives-limit-hit".final String
Message "addlife-command-messages.success".final String
Message "command-messages.cannot-revive".final String
Message "command-messages.not-found".final String
Message "command-messages.unspecified-player".final String
Message "givelife-command-errors.cannot-revive".final String
Message "givelife-command-errors.disabled".final String
Message "givelife-command-messages.giveaway-confirmation".final String
Message "givelife-command-messages.giveaway-hover".final String
Message "givelife-command-errors.lives-limit-hit".final String
Message "givelife-command-errors.no-lives-left".final String
Message "givelife-command-errors.one-life-left".final String
Message "givelife-command-messages.revival-warning".final String
Message "givelife-command-messages.sacrifice-confirmation".final String
Message "givelife-command-messages.sacrifice-hover".final String
Message "givelife-command-errors.self-reference".final String
Message "lives-message-after-being-generous.none".final String
Message "lives-message-after-being-generous.plural".final String
Message "lives-message-after-being-generous.singular".final String
Message "lives-message-after-death.none".final String
Message "lives-message-after-death.none-title".final String
Message "lives-message-after-death.plural".final String
Message "lives-message-after-death.singular".final String
Message "lives-message-after-donation.none".final String
Message "lives-message-after-donation.plural".final String
Message "lives-message-after-donation.singular".final String
Message "lives-message.none".final String
Message "lives-message.plural".final String
Message "lives-message.singular".final String
Message "lives-title-after-donation".final String
Message "revive-message".final String
Message "revive-command-messages.alive-player".final String
Message "revive-command-messages.success".final String
Message "revive-title".final String
Message "setlives-command-messages.invalid-lives".final String
Message "setlives-command-messages.limited-success".final String
Message "setlives-command-messages.success".final String
Message "setlives-command-messages.unspecified-lives".final String
Message "welcome-message.constant".final String
Message "welcome-message.range". -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
saveToFile
(org.bukkit.configuration.file.FileConfiguration file) Saves the messages to the messages.yml file.
-
Field Details
-
welcomeConstant
Message "welcome-message.constant". Appears when a player joins the server for the first time, and the minimum and maximum starting lives are the name number. -
welcomeRange
Message "welcome-message.range". Appears when a player joins the server for the first time, and the minimum and maximum starting lives are different numbers. -
livesPlural
Message "lives-message.plural". Appears when a player uses the/lives
command and they have more than one life left. -
livesSingular
Message "lives-message.singular". Appears when a player uses the/lives
command and they have one life left. -
livesNone
Message "lives-message.none". Appears when a player uses the/lives
command and they have zero lives left. -
livesAfterDeathPlural
Message "lives-message-after-death.plural". Appears when a player dies and is left with more than one life. -
livesAfterDeathSingular
Message "lives-message-after-death.singular". Appears when a player dies and is left with one life. -
livesAfterDeathNone
Message "lives-message-after-death.none". Appears when a player dies their final death. -
livesAfterDeathNoneTitle
Message "lives-message-after-death.none-title". Appears as a title when a player dies their final death. -
livesTitleAfterDonation
Message "lives-title-after-donation". Appears as a title when a player receives a life through the/givelife
command. -
livesAfterDonationPlural
Message "lives-message-after-donation.plural". Appears when a player receives a life and now has more than one life left. -
livesAfterDonationSingular
Message "lives-message-after-donation.singular". Appears when a player is revived by another player using the/givelife
command. -
livesAfterDonationNone
Message "lives-message-after-donation.none". This message shouldn't ever appear, but it exists just in case. -
livesAfterBeingGenerousPlural
Message "lives-message-after-being-generous.plural". Appears when a player gives away a life and is left with more than one life. -
livesAfterBeingGenerousSingular
Message "lives-message-after-being-generous.singular". Appears when a player gives away a life and is left with one life. -
livesAfterBeingGenerousNone
Message "lives-message-after-being-generous.none". Appears when a player gives away their last life. -
revive
Message "revive-message". Appears when a player is revived by the/revive
command. -
reviveTitle
Message "revive-title". Appears as a title when a player is revived. -
commandUnspecifiedPlayer
Message "command-messages.unspecified-player". Appears when a SemiHardcore command is used without a player specified. -
commandNotFound
Message "command-messages.not-found". Appears when a SemiHardcore command is used but the specified player is not found. -
commandCannotRevive
Message "command-messages.cannot-revive". Appears when either the/addlife
or/setlives
command is used on a dead player. -
givelifeDisabled
Message "givelife-command-errors.disabled". Appears when a player tries to use the/givelife
command but giving away lives is disabled. -
givelifeSelfReference
Message "givelife-command-errors.self-reference". Appears when a player tries to use the/givelife
command on themself. -
givelifeNoLivesLeft
Message "givelife-command-errors.no-lives-left". Appears when a dead player tries to use the/givelife
command. -
givelifeOneLifeLeft
Message "givelife-command-errors.one-life-left". Appears when sacrificing/giving away a last life is disabled and a player with only one life tries to use the/givelife
command. -
givelifeCannotRevive
Message "givelife-command-errors.cannot-revive". Appears when a player with more than one life tries to give a life to a dead player, or if sacrificing is disabled and any alive player tries to give a life to a dead player. -
givelifeLivesLimitHit
Message "givelife-command-errors.lives-limit-hit". Appears when a player tries to give a life to a player who has hit the upper limit of lives. -
givelifeRevivalWarning
Message "givelife-command-messages.revival-warning". Appears when a dead player is about to be revived by an alive player being sacrificed. -
givelifeSacrificeConfirmation
Message "givelife-command-messages.sacrifice-confirmation". Appears when a player with one life tries to revive a player by sacrificing themselves, so that they can confirm their decision. -
givelifeSacrificeHover
Message "givelife-command-messages.sacrifice-hover". Appears as the hover event for thegivelifeSacrificeConfirmation
message. -
givelifeGiveawayConfirmation
Message "givelife-command-messages.giveaway-confirmation". Appears when a player with one life tries to give away their life to an alive player, so that they can confirm their decision. -
givelifeGiveawayHover
Message "givelife-command-messages.giveaway-hover". Appears as the hover event for thegivelifeGiveawayConfirmation
message. -
addlifeLivesLimitHit
Message "addlife-command-messages.lives-limit-hit". Appears when the/addlife
command tries to add a life to a player who has hit the upper limit of lives. -
addlifeSuccess
Message "addlife-command-messages.success". Appears when the/addlife
command successfully adds a life to a player. -
setlivesUnspecifiedLives
Message "setlives-command-messages.unspecified-lives". Appears when the/setlives
command is used without a life count specified. -
setlivesInvalidLives
Message "setlives-command-messages.invalid-lives". Appears when the/setlives
command is used with an invalid life count or a life count out of bounds. -
setlivesLimitedSuccess
Message "setlives-command-messages.limited-success". Appears when the/setlives
command successfully changes a player's life count to the upper limit of lives because the life count specified was greater than that. -
setlivesSuccess
Message "setlives-command-messages.success". Appears when the/setlives
command successfully changes a player's life count to the specified number. -
reviveAlivePlayer
Message "revive-command-messages.alive-player". Appears when the/revive
command is used on an alive player. -
reviveSuccess
Message "revive-command-messages.success". Appears when the/revive
command successfully revives a player.
-
-
Constructor Details
-
Messages
-
-
Method Details
-
saveToFile
public void saveToFile(org.bukkit.configuration.file.FileConfiguration file) Saves the messages to the messages.yml file.- Parameters:
file
- the messages.yml file configuration
-