mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-01-06 00:17:52 +01:00
Revert "Revert "new config option: show-message-when-using-chest-and-sorting-is-enabled""
This reverts commit 8920cb1fa0
.
This commit is contained in:
parent
8920cb1fa0
commit
2a54972aa2
15
config.yml
15
config.yml
@ -6,12 +6,21 @@
|
||||
# once to enable automatic chest sorting.
|
||||
sorting-enabled-by-default: false
|
||||
|
||||
# when set to true, players with sorting disabled will be
|
||||
# when set to true, players with sorting DISABLED will be
|
||||
# shown a message on how to enable automatic chest sorting
|
||||
# when they use a chest for the first time.
|
||||
# consider setting this to true when you disable sorting by default.
|
||||
# see also -> message-when-using-chest
|
||||
show-message-when-using-chest: true
|
||||
|
||||
# when set to true, the message is shown again when a player
|
||||
# when set to true, players with sorting ENABLED will be
|
||||
# shown a message on how to disable automatic chest sorting
|
||||
# when they use a chest for the first time.
|
||||
# consider setting this to true when you enable sorting by default.
|
||||
# see also -> message-when-using-chest2
|
||||
show-message-when-using-chest-and-sorting-is-enabled: false
|
||||
|
||||
# when set to true, the messages are shown again when a player
|
||||
# logs out and back in and then uses a chest again.
|
||||
show-message-again-after-logout: true
|
||||
|
||||
@ -22,12 +31,14 @@ show-message-again-after-logout: true
|
||||
|
||||
##### English
|
||||
message-when-using-chest: "&7Hint: Type &6/chestsort&7 to enable automatic chest sorting."
|
||||
message-when-using-chest2: "&7Hint: Type &6/chestsort&7 to disable automatic chest sorting."
|
||||
message-sorting-disabled: "&7Automatic chest sorting has been &cdisabled&7.&r"
|
||||
message-sorting-enabled: "&7Automatic chest sorting has been &aenabled&7.&r"
|
||||
message-error-players-only: "&cError: This command can only be run by players.&r"
|
||||
|
||||
##### German
|
||||
#message-when-using-chest: "&7Hinweis: Benutze &6/chestsort&7 um die automatische Kistensortierung zu aktivieren."
|
||||
#message-when-using-chest2: "&7Hinweis: Benutze &6/chestsort&7 um die automatische Kistensortierung zu deaktivieren."
|
||||
#message-sorting-disabled: "&7Automatische Kistensortierung &cdeaktiviert&7.&r"
|
||||
#message-sorting-enabled: "&7Automatische Kistensortierung &aaktiviert&7.&r"
|
||||
#message-error-players-only: "&cFehler: Dieser Befehl ist nur für Spieler verfügbar.&r"
|
@ -1,6 +1,6 @@
|
||||
main: de.jeffclan.JeffChestSort.JeffChestSortPlugin
|
||||
name: ChestSort
|
||||
version: 1.3.2
|
||||
version: 1.3.3
|
||||
api-version: 1.13
|
||||
description: Allows automatic chest sorting
|
||||
author: mfnalex
|
||||
|
@ -98,6 +98,13 @@ public class JeffChestSortListener implements Listener {
|
||||
}
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
if (!setting.hasSeenMessage) {
|
||||
setting.hasSeenMessage = true;
|
||||
if (plugin.getConfig().getBoolean("show-message-when-using-chest-and-sorting-is-enabled")) {
|
||||
p.sendMessage(plugin.msg.MSG_COMMANDMESSAGE2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Inventory inv = event.getInventory();
|
||||
|
@ -6,7 +6,7 @@ public class JeffChestSortMessages {
|
||||
|
||||
JeffChestSortPlugin plugin;
|
||||
|
||||
final String MSG_ACTIVATED, MSG_DEACTIVATED, MSG_COMMANDMESSAGE, MSG_PLAYERSONLY;
|
||||
final String MSG_ACTIVATED, MSG_DEACTIVATED, MSG_COMMANDMESSAGE, MSG_COMMANDMESSAGE2, MSG_PLAYERSONLY;
|
||||
|
||||
JeffChestSortMessages(JeffChestSortPlugin plugin) {
|
||||
this.plugin = plugin;
|
||||
@ -17,6 +17,8 @@ public class JeffChestSortMessages {
|
||||
plugin.getConfig().getString("message-sorting-disabled"));
|
||||
MSG_COMMANDMESSAGE = ChatColor.translateAlternateColorCodes('&',
|
||||
plugin.getConfig().getString("message-when-using-chest"));
|
||||
MSG_COMMANDMESSAGE2 = ChatColor.translateAlternateColorCodes('&',
|
||||
plugin.getConfig().getString("message-when-using-chest2"));
|
||||
MSG_PLAYERSONLY = ChatColor.translateAlternateColorCodes('&',
|
||||
plugin.getConfig().getString("message-error-players-only"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user