Commit 0c665d94 authored by memetrollsXD's avatar memetrollsXD Committed by Melledy
Browse files

Add default permissions

parent f6db3992
......@@ -33,6 +33,7 @@ public final class Config {
public Boolean FrontHTTPS = true;
public boolean AutomaticallyCreateAccounts = false;
public String[] defaultPermissions = new String[] { "" };
public RegionInfo[] GameServers = {};
......
......@@ -339,6 +339,10 @@ public final class DispatchServer {
// added.
account = DatabaseHelper.createAccountWithId(requestData.account, 0);
for (String permission : Grasscutter.getConfig().getDispatchOptions().defaultPermissions) {
account.addPermission(permission);
}
if (account != null) {
responseData.message = "OK";
responseData.data.account.uid = account.getId();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment