Search in sources :

Example 1 with SpongeIPBanList

use of org.spongepowered.common.service.server.ban.SpongeIPBanList in project SpongeCommon by SpongePowered.

the class PlayerListMixin method impl$setSpongeLists.

@Inject(method = "<init>", at = @At("RETURN"))
private void impl$setSpongeLists(final CallbackInfo callbackInfo) {
    this.bans = new SpongeUserBanList(PlayerList.USERBANLIST_FILE);
    this.ipBans = new SpongeIPBanList(PlayerList.IPBANLIST_FILE);
    this.whitelist = new SpongeUserWhiteList(PlayerList.WHITELIST_FILE);
}
Also used : SpongeUserBanList(org.spongepowered.common.service.server.ban.SpongeUserBanList) SpongeUserWhiteList(org.spongepowered.common.service.server.whitelist.SpongeUserWhiteList) SpongeIPBanList(org.spongepowered.common.service.server.ban.SpongeIPBanList) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

Inject (org.spongepowered.asm.mixin.injection.Inject)1 SpongeIPBanList (org.spongepowered.common.service.server.ban.SpongeIPBanList)1 SpongeUserBanList (org.spongepowered.common.service.server.ban.SpongeUserBanList)1 SpongeUserWhiteList (org.spongepowered.common.service.server.whitelist.SpongeUserWhiteList)1