-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
317 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/de/cubbossa/translations/GlobalMessages.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package de.cubbossa.translations; | ||
|
||
public class GlobalMessages { | ||
|
||
public static final Message BRAND = new MessageBuilder("brand") | ||
.withDefault("<gradient:#ff2200:#ffff00:#ff2200>My Server Name</gradient>") | ||
.build(); | ||
|
||
public static final Message PREFIX = new MessageBuilder("prefix") | ||
.withDefault("") | ||
.withComment("Empty placeholder to make global messages work without application to set prefix message") | ||
.build(); | ||
|
||
public static final Message NO_PERM = new MessageBuilder("missing_permissions") | ||
.withDefault("<prefix_negative>You don't have enough permission to perform this action!</prefix_negative>") | ||
.build(); | ||
public static final Message NO_PERM_SPECIFIED = new MessageBuilder("missing_permission") | ||
.withDefault("<prefix_negative>You don't have the required permission!</prefix_negative> <text_d>(<text>{permission}</text>)</text_d>") | ||
.withPlaceholder("permission", "The required node") | ||
.build(); | ||
public static final Message NO_PERM_CMD = new MessageBuilder("command.missing_permissions") | ||
.withDefault("<prefix_negative>You don't have enough permission to perform this command!</prefix_negative>") | ||
.build(); | ||
|
||
public static final Message ARROW_RIGHT = new MessageBuilder("symbols.arrow_right") | ||
.withDefault("🠖") | ||
.build(); | ||
public static final Message ARROW_LEFT = new MessageBuilder("symbols.arrow_left") | ||
.withDefault("🠔") | ||
.build(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
brand="<gradient:#ff2200:#ffff00:#ff2200>My Server Name</gradient>" | ||
no_perm="<negative>You don't have enough permission!</negative>" | ||
no_perm="<negative>You don't have enough permission!</negative>" | ||
|
||
symbols.arrow_right="🠖" | ||
symbols.arrow_left="🠔" |
Oops, something went wrong.