Overhaul of Patchwork and Registration system, fix-up for all plugin.yml files and removal of .negates(0 and .value() from DefaultNodes in turn for the .expiry() system removing the redundancies. (#21)

Co-authored-by: eva <66324759+evax64@users.noreply.github.com>
This commit is contained in:
Eva
2023-08-11 19:15:36 +01:00
committed by GitHub
parent 368f3cae12
commit 3e8c63221d
24 changed files with 113 additions and 158 deletions

View File

@ -3,6 +3,8 @@ package fns.datura.user;
import fns.datura.event.UserDataUpdateEvent;
import fns.datura.perms.FreedomUser;
import fns.patchwork.base.Patchwork;
import fns.patchwork.base.Registration;
import fns.patchwork.base.Shortcuts;
import fns.patchwork.display.adminchat.AdminChatFormat;
import fns.patchwork.security.Group;
import fns.patchwork.sql.SQL;
@ -38,7 +40,7 @@ public class SimpleUserData implements UserData
this.username = player.getName();
this.user = new FreedomUser(player);
Patchwork.getInstance()
Shortcuts.provideModule(Patchwork.class)
.getEventBus()
.addEvent(event);
}
@ -84,8 +86,7 @@ public class SimpleUserData implements UserData
throw new IllegalStateException("Player should be online but they are not!");
final User user = new FreedomUser(player);
final Group group = Patchwork.getInstance()
.getRegistrations()
final Group group = Registration
.getGroupRegistry()
.getGroup(g);
@ -116,7 +117,7 @@ public class SimpleUserData implements UserData
if (player == null) throw new IllegalStateException("Player should be online but they are not!");
return new SimpleUserData(player);
}, Patchwork.getInstance()
}, Shortcuts.provideModule(Patchwork.class)
.getExecutor()
.getAsync())
.join();