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