mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +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 {
|
||||
final String path = "lang";
|
||||
final File jarFile = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getPath()
|
||||
.replace("%20", " "));
|
||||
final File jarFile = new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI());
|
||||
if (jarFile.isFile()) {
|
||||
final JarFile jar = new JarFile(jarFile);
|
||||
final Enumeration<JarEntry> entries = jar.entries();
|
||||
|
Loading…
Reference in New Issue
Block a user