Move schema files to a namespaced package (#899)

This commit is contained in:
Luck committed 2018-04-20 14:59:06 +01:00
1 parent 882a29029e
commit 8e5bcdd5ea
6 files changed
+1 -1

No files matched your search

@@ -157,7 +157,7 @@ public class SqlDao extends AbstractDao {
// Init tables
if (!tableExists(this.prefix.apply("{prefix}user_permissions"))) {
String schemaFileName = "schema/" + this.provider.getName().toLowerCase() + ".sql";
String schemaFileName = "me/lucko/luckperms/schema/" + this.provider.getName().toLowerCase() + ".sql";
try (InputStream is = this.plugin.getBootstrap().getResourceStream(schemaFileName)) {
if (is == null) {
throw new Exception("Couldn't locate schema file for " + this.provider.getName());