mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Added {NAME} replacement in database location
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -188,7 +188,9 @@ public abstract class JavaPlugin implements Plugin {
|
||||
}
|
||||
|
||||
private String replaceDatabaseString(String input) {
|
||||
return input.replaceAll("\\{DIR\\}", getDataFolder().getPath().replaceAll("\\\\", "/"));
|
||||
input = input.replaceAll("\\{DIR\\}", getDataFolder().getPath().replaceAll("\\\\", "/") + "/");
|
||||
input = input.replaceAll("\\{NAME\\}", getDescription().getName().replaceAll("[^\\w_-]", ""));
|
||||
return input;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user