mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-15 10:55:20 +01:00
Small fixes
This commit is contained in:
parent
d6caa348b4
commit
ba52922d3e
@ -44,7 +44,7 @@ Minepacks is a backpack plugin for minecraft server running bukkit or spigot.
|
|||||||
* Backpack size controlled by [permissions][wikiPermissions]
|
* Backpack size controlled by [permissions][wikiPermissions]
|
||||||
* Auto item-collect on full inventory (can be enabled in the config)
|
* Auto item-collect on full inventory (can be enabled in the config)
|
||||||
* SQLite/MySQL database
|
* 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)
|
* 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
|
* Support for name changing / UUIDs
|
||||||
* Auto-updater
|
* Auto-updater
|
||||||
@ -82,7 +82,7 @@ The final file will be in the `target` folder, named `Minepacks-<CurrentVersion>
|
|||||||
## API:
|
## API:
|
||||||
Minepacks V2 comes with an API that allows you to interact with this plugin.
|
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].
|
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:
|
For more details about the API please check the following links:
|
||||||
|
|
||||||
[Source Code & Details][api] ⚫ [JavaDoc][apiJavaDoc] ⚫ [Build Server][apiBuilds]
|
[Source Code & Details][api] ⚫ [JavaDoc][apiJavaDoc] ⚫ [Build Server][apiBuilds]
|
||||||
|
@ -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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
import at.pcgamingfreaks.yaml.YAML;
|
import at.pcgamingfreaks.yaml.YAML;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
|
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
@ -87,19 +85,19 @@ public static void updateLanguage(YAML oldYAML, YAML newYAML, Logger logger)
|
|||||||
case "Console":
|
case "Console":
|
||||||
switch(keys[2])
|
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;
|
break;
|
||||||
case "Ingame":
|
case "Ingame":
|
||||||
helper = keys[0] + "." + keys[1] + ".";
|
helper = keys[0] + "." + keys[1] + ".";
|
||||||
switch(keys[2])
|
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 "OwnBackPackClose": simpleConverter.put(helper + "OwnBackpackClose", key); break;
|
||||||
case "PlayerBackPackClose": advancedConverter.put(helper + "PlayerBackpackClose", oldYAML.getString(key).replace("%s", "{OwnerName}")); break;
|
case "PlayerBackPackClose": advancedConverter.put(helper + "PlayerBackpackClose", oldYAML.getString(key).replace("%s", "{OwnerName}")); break;
|
||||||
case "InvalidBackpack": simpleConverter.put(key, key); break;
|
case "InvalidBackpack": simpleConverter.put(key, key); break;
|
||||||
case "BackpackCleaned": simpleConverter.put("Language.Ingame.Clean.BackpackCleaned", 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;
|
case "WrongGameMode": simpleConverter.put("Language.Ingame.Open.WrongGameMode", key); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user