Small fixes

This commit is contained in:
GeorgH93 2019-06-02 15:33:31 +02:00
parent d6caa348b4
commit ba52922d3e
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 6 additions and 8 deletions

View File

@ -44,7 +44,7 @@ Minepacks is a backpack plugin for minecraft server running bukkit or spigot.
* Backpack size controlled by [permissions][wikiPermissions]
* Auto item-collect on full inventory (can be enabled in the config)
* SQLite/MySQL database
* Multi Language (English and German Language File included)
* Multi language support (english and german language file included)
* Preserves the NBT data of items (everything that can be stored in a chest can be stored in the backpack)
* Support for name changing / UUIDs
* Auto-updater
@ -82,7 +82,7 @@ The final file will be in the `target` folder, named `Minepacks-<CurrentVersion>
## API:
Minepacks V2 comes with an API that allows you to interact with this plugin.
If you think there is something missing in the API feel free to open a [feature request][requestFeature].
Please do not access the data of the plugin over other ways than the provided API, the inner workings will change and I won't keep track of what you are using in your plugin.
Please do not access data of the plugin in any other way than through the provided API, the inner workings will change and I won't keep track of what you are using in your plugin.
For more details about the API please check the following links:
[Source Code & Details][api] ⚫ [JavaDoc][apiJavaDoc] ⚫ [Build Server][apiBuilds]

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017, 2018 GeorgH93
* Copyright (C) 2019 GeorgH93
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -19,8 +19,6 @@
import at.pcgamingfreaks.yaml.YAML;
import org.bukkit.ChatColor;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.logging.Logger;
@ -87,19 +85,19 @@ public static void updateLanguage(YAML oldYAML, YAML newYAML, Logger logger)
case "Console":
switch(keys[2])
{
case "NotFromConsole": advancedConverter.put("Language.NotFromConsole", ChatColor.RED + oldYAML.getString(key)); break;
case "NotFromConsole": advancedConverter.put("Language.NotFromConsole", "&c" + oldYAML.getString(key)); break;
}
break;
case "Ingame":
helper = keys[0] + "." + keys[1] + ".";
switch(keys[2])
{
case "NoPermission": advancedConverter.put(key, ChatColor.RED + oldYAML.getString(key)); break;
case "NoPermission": advancedConverter.put(key, "&c" + oldYAML.getString(key)); break;
case "OwnBackPackClose": simpleConverter.put(helper + "OwnBackpackClose", key); break;
case "PlayerBackPackClose": advancedConverter.put(helper + "PlayerBackpackClose", oldYAML.getString(key).replace("%s", "{OwnerName}")); break;
case "InvalidBackpack": simpleConverter.put(key, key); break;
case "BackpackCleaned": simpleConverter.put("Language.Ingame.Clean.BackpackCleaned", key); break;
case "Cooldown": advancedConverter.put("Language.Ingame.Open.Cooldown", ChatColor.DARK_GREEN + oldYAML.getString(key)); break;
case "Cooldown": advancedConverter.put("Language.Ingame.Open.Cooldown", "&2" + oldYAML.getString(key)); break;
case "WrongGameMode": simpleConverter.put("Language.Ingame.Open.WrongGameMode", key); break;
}
break;