Skip to content

Commit 4639039

Browse files
committed
6.3.0
1 parent 838f95d commit 4639039

8 files changed

Lines changed: 40 additions & 27 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ compileJava.options.encoding = "UTF-8"
1818
compileTestJava.options.encoding = "UTF-8"
1919

2020
group = "me.rosillogames"
21-
version = "6.2.3"
21+
version = "6.3.0"
2222
description = "EggWars Remastered"
2323

2424
repositories {

src/main/java/me/rosillogames/eggwars/arena/Arena.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public void loadShop()
228228
try
229229
{
230230
this.specificShop = EggWars.getTradingManager().loadSpecialCategory(this.arenaFolder, this.itemType);
231-
this.specificShop.buildMenu();
231+
this.specificShop.buildMenu();//Encapsulated null exception
232232
}
233233
catch (Exception ex)
234234
{

src/main/java/me/rosillogames/eggwars/arena/SetupGUI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public SetupGUI(Arena arenaIn)
104104
if (team == null)
105105
{
106106
todoLore.append(TranslationUtils.getMessage("setup.gui.teams.team.todo.create", player));
107-
clickLore = TranslationUtils.getMessage("setup.gui.teams.team.click.uncreated", player);
107+
clickLore = TranslationUtils.getMessage("setup.gui.teams.team.click.create", player);
108108
}
109109
else
110110
{
@@ -139,7 +139,7 @@ public SetupGUI(Arena arenaIn)
139139
todoLore.append(TranslationUtils.getMessage("setup.gui.teams.team.todo.done", player));
140140
}
141141

142-
clickLore = TranslationUtils.getMessage("setup.gui.teams.team.click.created", player);
142+
clickLore = TranslationUtils.getMessage("setup.gui.teams.team.click.manage", player);
143143
}
144144

145145
TranslatableItem.setLore(stack, TranslationUtils.getMessage("setup.gui.teams.team.item_lore", player, todoLore.toString(), clickLore));

src/main/java/me/rosillogames/eggwars/managers/TradingManager.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,15 @@ public void loadTrades()
141141
public Category loadSpecialCategory(File folder, ItemType type) throws IOException
142142
{
143143
BufferedReader buffer = Files.newBufferedReader((new File(folder, SPEC_TRADES_FILE)).toPath());
144-
JsonObject shopJson = GsonHelper.getAsJsonObject(GsonHelper.convertToJsonObject(GsonHelper.parse(buffer), "special_category"), "tiers");
145-
JsonObject tierJson = GsonHelper.getAsJsonObject(shopJson, type.toString());
146-
Category category = this.loadCategory("special", tierJson);
144+
JsonObject specCategJson = GsonHelper.convertToJsonObject(GsonHelper.parse(buffer), "special_category");
145+
Category category = null;
146+
147+
if (isConfigCompatible(specCategJson, SPEC_TRADES_FILE))
148+
{
149+
JsonObject tierJson = GsonHelper.getAsJsonObject(GsonHelper.getAsJsonObject(specCategJson, "category_tiers"), type.toString());
150+
category = this.loadCategory("special", tierJson);
151+
}
152+
147153
buffer.close();
148154
return category;//Error loading special shop category for arena \"
149155
}
Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
{
2-
"translation_key": "shop.special",
3-
"display_item": {
4-
"id": "minecraft:nether_star",
5-
"Count": 1
6-
},
7-
"types": {
8-
"default": {
9-
"menu_size": "normal"
10-
},
2+
"category_tiers": {
113
"hardcore": {
12-
"offers": [
13-
]
4+
"translation_key": "shop.special",
5+
"display_item": {
6+
"id": "minecraft:nether_star",
7+
"count": 1
8+
},
9+
"menu_size": "normal",
10+
"offers": {}
1411
},
1512
"normal": {
16-
"offers": [
17-
]
13+
"translation_key": "shop.special",
14+
"display_item": {
15+
"id": "minecraft:nether_star",
16+
"count": 1
17+
},
18+
"menu_size": "normal",
19+
"offers": {}
1820
},
1921
"overpowered": {
20-
"offers": [
21-
]
22+
"translation_key": "shop.special",
23+
"display_item": {
24+
"id": "minecraft:nether_star",
25+
"count": 1
26+
},
27+
"menu_size": "normal",
28+
"offers": {}
2229
}
2330
}
2431
}

src/main/resources/langs/en_us.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@
226226
"setup.gui.teams.team.todo.cages": "\n&6 - Add cages",
227227
"setup.gui.teams.team.todo.respawn": "\n&6 - Set respawn",
228228
"setup.gui.teams.team.todo.egg": "\n&6 - Set egg",
229-
"setup.gui.teams.team.click.created": "&3Click to view settings\n&4Shift click to remove this team",
230-
"setup.gui.teams.team.click.uncreated": "&6Click to create this team",
229+
"setup.gui.teams.team.click.manage": "&3Click to view settings\n&4Shift click to remove this team",
230+
"setup.gui.teams.team.click.create": "&6Click to create this team",
231231
"setup.gui.team.title": "{0}&r's settings",
232232
"setup.gui.team.villager.item_name": "&e&lVillager Location",
233233
"setup.gui.team.villager.item_lore": "{0}",

src/main/resources/langs/es_es.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@
226226
"setup.gui.teams.team.todo.cages": "\n&6 - Añadir cajas",
227227
"setup.gui.teams.team.todo.respawn": "\n&6 - Establecer punto de reaparición",
228228
"setup.gui.teams.team.todo.egg": "\n&6 - Establecer huevo",
229-
"setup.gui.teams.team.click.created": "&3Haz clic para ver ajustes\n&4Haz clic máyus para eliminar este equipo",
230-
"setup.gui.teams.team.click.uncreated": "&6Haz clic para crear este equipo",
229+
"setup.gui.teams.team.click.manage": "&3Haz clic para ver ajustes\n&4Haz clic máyus para eliminar este equipo",
230+
"setup.gui.teams.team.click.create": "&6Haz clic para crear este equipo",
231231
"setup.gui.team.title": "&rAjustes del equipo {0}",
232232
"setup.gui.team.villager.item_name": "&e&lLugar del Aldeano",
233233
"setup.gui.team.villager.item_lore": "{0}",

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
main: me.rosillogames.eggwars.EggWars
22
name: EggWars
3-
version: "6.2.3"
3+
version: "6.3.0"
44
description: Play the EggWars game!
55
api-version: 1.13
66
load: POSTWORLD

0 commit comments

Comments
 (0)