@@ -0,0 +1,1083 @@
+package org.spongepowered.test;%0A%0Aimport org.spongepowered.api.entity.living.player.Player;%0Aimport org.spongepowered.api.event.Listener;%0Aimport org.spongepowered.api.event.network.PardonIpEvent;%0Aimport org.spongepowered.api.event.user.PardonUserEvent;%0Aimport org.spongepowered.api.plugin.Plugin;%0Aimport org.spongepowered.api.text.Text;%0A%0A@Plugin(id = %22pardoneventtest%22, name = %22Pardon Event Test%22, description = %22A plugin to test PardonUserEvent and PardonIpEvent%22)%0Apublic class PardonEventTest %7B%0A%0A    @Listener%0A    public void onPardonIpEvent(PardonIpEvent event) %7B%0A        event.getCause().first(Player.class).ifPresent(player -%3E%0A                player.sendMessage(Text.of(player.getName() + %22 removed a %22 +%0A                        event.getBan().getType().getName() + %22 ban%22)));%0A    %7D%0A%0A    @Listener%0A    public void onPardonUserEvent(PardonUserEvent event) %7B%0A        event.getCause().first(Player.class).ifPresent(player -%3E%0A                player.sendMessage(Text.of(player.getName() + %22 removed a %22 +%0A                        event.getBan().getType().getName() + %22 ban%22)));%0A    %7D%0A%7D%0A

Add test plugin