Compare commits

..

No commits in common. "master" and "66a9e8d209bfaad0c1879d804fa91560911f20a7" have entirely different histories.

6 changed files with 3 additions and 34 deletions

View File

@ -1,13 +0,0 @@
---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
commands:
- make

View File

@ -2,4 +2,4 @@ all: build
build:
mvn --batch-mode clean compile assembly:single
mvn clean compile assembly:single

View File

@ -1,3 +0,0 @@
## mcWebHooks
[![Build Status](https://drone.omg.team/api/badges/omg-team/mcWebHooks/status.svg)](http://drone.omg.team/omg-team/mcWebHooks)

View File

@ -35,7 +35,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<version>1.13.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -16,8 +16,7 @@ import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageByBlockEvent;
import org.bukkit.event.raid.RaidTriggerEvent;
//import org.bukkit.event.entity.ArrowBodyCountChangeEvent;
import org.bukkit.event.entity.ArrowBodyCountChangeEvent;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.client.HttpClient;
@ -116,12 +115,6 @@ public final class MCWebHooks extends JavaPlugin implements Listener {
this.sendHookedEvent(hookEvent);
}
@EventHandler
public void onRaidStart(RaidTriggerEvent event) {
RaidStartWorldHookEvent hookEvent = new RaidStartWorldHookEvent(event.getPlayer().getDisplayName());
this.sendHookedEvent(hookEvent);
}
private final void sendHookedEvent(HookEvent event) {
getLogger().info(String.format("Event: %s", event.type));
ObjectMapper mapper = new ObjectMapper();

View File

@ -1,8 +0,0 @@
package mcwebhooks;
public class RaidStartWorldHookEvent extends PlayerHookEvent {
public RaidStartWorldHookEvent(String displayName) {
super(displayName);
this.type = "raidStart";
}
}