Move schema files to a namespaced package (#899)
This commit is contained in:
parent
882a29029e
commit
8e5bcdd5ea
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user