mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-29 22:23:34 +01:00
Better way of doing aaf5472
, thanks @datatags
This commit is contained in:
parent
aaf54722a2
commit
d80b09c64f
@ -696,8 +696,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
*/
|
*/
|
||||||
private void setupLang() throws IOException, URISyntaxException {
|
private void setupLang() throws IOException, URISyntaxException {
|
||||||
final String path = "lang";
|
final String path = "lang";
|
||||||
final File jarFile = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getPath()
|
final File jarFile = new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI());
|
||||||
.replace("%20", " "));
|
|
||||||
if (jarFile.isFile()) {
|
if (jarFile.isFile()) {
|
||||||
final JarFile jar = new JarFile(jarFile);
|
final JarFile jar = new JarFile(jarFile);
|
||||||
final Enumeration<JarEntry> entries = jar.entries();
|
final Enumeration<JarEntry> entries = jar.entries();
|
||||||
|
Loading…
Reference in New Issue
Block a user