Revert "new config option: show-message-when-using-chest-and-sorting-is-enabled"

This reverts commit 7cc965ecb4.
This commit is contained in:
BuildTools 2018-08-12 17:14:06 +02:00
parent 7cc965ecb4
commit 8920cb1fa0
4 changed files with 4 additions and 24 deletions

View File

@ -6,21 +6,12 @@
# 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, 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
# when set to true, the message is shown again when a player
# logs out and back in and then uses a chest again.
show-message-again-after-logout: true
@ -31,14 +22,12 @@ 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"

View File

@ -1,6 +1,6 @@
main: de.jeffclan.JeffChestSort.JeffChestSortPlugin
name: ChestSort
version: 1.3.3
version: 1.3.2
api-version: 1.13
description: Allows automatic chest sorting
author: mfnalex

View File

@ -98,13 +98,6 @@ 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();

View File

@ -6,7 +6,7 @@ public class JeffChestSortMessages {
JeffChestSortPlugin plugin;
final String MSG_ACTIVATED, MSG_DEACTIVATED, MSG_COMMANDMESSAGE, MSG_COMMANDMESSAGE2, MSG_PLAYERSONLY;
final String MSG_ACTIVATED, MSG_DEACTIVATED, MSG_COMMANDMESSAGE, MSG_PLAYERSONLY;
JeffChestSortMessages(JeffChestSortPlugin plugin) {
this.plugin = plugin;
@ -17,8 +17,6 @@ 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"));
}