Browse Source

Updating placeholder and message

RedstoneFuture 5 tháng trước cách đây
mục cha
commit
1eddcad168

+ 4 - 4
missilewars-plugin/src/main/java/de/butzlabben/missilewars/configuration/Config.java

@@ -175,7 +175,7 @@ public class Config {
 
             cfg.addDefault(gameJoinMenu + ".items.mapVote_active.priority", 1);
             cfg.addDefault(gameJoinMenu + ".items.mapVote_active.view_requirement.type", "string equals");
-            cfg.addDefault(gameJoinMenu + ".items.mapVote_active.view_requirement.input", "%missilewars_lobby_mapvote_state_this%");
+            cfg.addDefault(gameJoinMenu + ".items.mapVote_active.view_requirement.input", "%missilewars_game_mapvote_state_this%");
             cfg.addDefault(gameJoinMenu + ".items.mapVote_active.view_requirement.output", "RUNNING");
             
             cfg.set(gameJoinMenu + ".items.mapVote_active.lore", new ArrayList<String>() {{
@@ -216,11 +216,11 @@ public class Config {
             cfg.addDefault(gameJoinMenu + ".items.areaInfo.priority", 0);
 
             cfg.set(gameJoinMenu + ".items.areaInfo.lore", new ArrayList<String>() {{
-                add("&e> &fLobby: &7%missilewars_lobby_displayname_this%");
+                add("&e> &fLobby: &7%missilewars_game_displayname_this%");
                 add("&e> &fArena: &7%missilewars_arena_displayname_this%");
-                add("&e> &fGame-Time: &7%missilewars_lobby_gameduration_this% min");
+                add("&e> &fGame-Time: &7%missilewars_game_gameduration_this% min");
                 add("&e> &fMissiles: &7%missilewars_arena_missileamount_this%x");
-                add("&e> &fArena-Size: &7%missilewars_lobby_arenasize_X_this% x %missilewars_lobby_arenasize_Z_this% blocks");
+                add("&e> &fArena-Size: &7%missilewars_game_arenasize_X_this% x %missilewars_game_arenasize_Z_this% blocks");
             }});
             
             cfg.set(gameJoinMenu + ".items.areaInfo.left_click_actions", new ArrayList<String>());

+ 2 - 2
missilewars-plugin/src/main/java/de/butzlabben/missilewars/configuration/PluginMessages.java

@@ -191,8 +191,8 @@ public class PluginMessages {
 
         SIGNEDIT_SIGN_CREATED("signedit.sign_created", "&7Sign was successfully created and connected."),
         SIGNEDIT_SIGN_REMOVED("signedit.sign_removed", "&7You have successfully removed this MissileWars sign."),
-        SIGNEDIT_EMPTY_LOBBY("signedit.empty_lobby", "&cPlease specify the target lobby name in the second line."),
-        SIGNEDIT_LOBBY_NOT_FOUND("signedit.lobby_not_found", "&cCould not find lobby \"%input%\"."),
+        SIGNEDIT_EMPTY_GAME("signedit.empty_game", "&cPlease specify the target game name in the second line."),
+        SIGNEDIT_GAME_NOT_FOUND("signedit.game_not_found", "&cCould not find game \"%input%\"."),
         SIGNEDIT_SIGN_REMOVE_DESC("signedit.sign_remove_desc", "&cThis shield is locked by the MissileWars plugin. Sneak while you are destroying the shield to remove it."),
 
         GAME_STATE_NO_GAME("game_state.no_game", "&cNo Game."),

+ 2 - 2
missilewars-plugin/src/main/java/de/butzlabben/missilewars/listener/SignListener.java

@@ -84,7 +84,7 @@ public class SignListener implements Listener {
          */
         String lobbyName = ChatColor.stripColor(event.getLine(1));
         if ((lobbyName == null) || (lobbyName.isBlank())) {
-            player.sendMessage(PluginMessages.getMessage(true, PluginMessages.MessageEnum.SIGNEDIT_EMPTY_LOBBY));
+            player.sendMessage(PluginMessages.getMessage(true, PluginMessages.MessageEnum.SIGNEDIT_EMPTY_GAME));
             event.setCancelled(true);
             return;
         }
@@ -107,7 +107,7 @@ public class SignListener implements Listener {
             player.sendMessage(PluginMessages.getMessage(true, PluginMessages.MessageEnum.SIGNEDIT_SIGN_CREATED));
             
         } else {
-            player.sendMessage(PluginMessages.getMessage(true, PluginMessages.MessageEnum.SIGNEDIT_LOBBY_NOT_FOUND).replace("%input%", lobbyName));
+            player.sendMessage(PluginMessages.getMessage(true, PluginMessages.MessageEnum.SIGNEDIT_GAME_NOT_FOUND).replace("%input%", lobbyName));
             event.setCancelled(true);
             
         }