From 2007bda588658f32d437b1024e56b09aa3e64662 Mon Sep 17 00:00:00 2001 From: WetABQ Date: Mon, 12 Nov 2018 02:27:39 +0800 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b57005c..cba3a0e 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,17 @@ title: '&l&eQuick&6Shop &r&c» &a' -------- +## API: +```java +//Listening event(PlayerBuyEvent,PlayerSellEvent,PlayerCreateShopEvent,PlayerRemoveShopEvent) +@EventHandler +public void onPlayerBuyEvent(PlayerBuyEvent event) { + event.player.sendMessage(event.getShopDate()+"\n"+event.getCount()); +} +``` + +-------- + ### Images: ![SHOP.jpg](https://i.loli.net/2018/09/08/5b93e3efbc115.jpg)