|
1 | 1 | package com.dev7ex.multiworld.listener;
|
2 | 2 |
|
3 | 3 | import com.dev7ex.common.map.ParsedMap;
|
| 4 | +import com.dev7ex.multiworld.MultiWorldConfiguration; |
4 | 5 | import com.dev7ex.multiworld.MultiWorldPlugin;
|
| 6 | +import com.dev7ex.multiworld.api.MultiWorldApiConfiguration; |
5 | 7 | import com.dev7ex.multiworld.api.bukkit.MultiWorldBukkitApi;
|
| 8 | +import com.dev7ex.multiworld.api.bukkit.MultiWorldBukkitApiConfiguration; |
6 | 9 | import com.dev7ex.multiworld.api.bukkit.event.MultiWorldListener;
|
7 | 10 | import com.dev7ex.multiworld.api.user.WorldUser;
|
8 | 11 | import com.dev7ex.multiworld.api.user.WorldUserConfiguration;
|
@@ -48,9 +51,9 @@ public void handlePlayerLogin(final PlayerJoinEvent event) {
|
48 | 51 | && (player.hasPermission("multiworld.update.notify"))
|
49 | 52 | && (MultiWorldPlugin.getInstance().getUpdateChecker().isUpdateAvailable())) {
|
50 | 53 |
|
51 |
| - player.sendMessage(super.getConfiguration().getString("messages.general.update-message-player") |
| 54 | + player.sendMessage(super.getConfiguration().getString(MultiWorldBukkitApiConfiguration.Entry.MESSAGES_GENERAL_UPDATE_MESSAGE_PLAYER.getPath()) |
52 | 55 | .replaceAll("%prefix%", super.getPrefix()));
|
53 |
| - player.sendMessage(super.getConfiguration().getString("messages.general.update-message-version-player") |
| 56 | + player.sendMessage(super.getConfiguration().getString(MultiWorldBukkitApiConfiguration.Entry.MESSAGES_GENERAL_UPDATE_MESSAGE_VERSION_PLAYER.getPath()) |
54 | 57 | .replaceAll("%prefix%", super.getPrefix())
|
55 | 58 | .replaceAll("%current_version%", MultiWorldPlugin.getInstance().getDescription().getVersion())
|
56 | 59 | .replaceAll("%new_version%", MultiWorldPlugin.getInstance().getUpdateChecker().getNewVersion()));
|
|
0 commit comments