Added Bukkit support

This commit is contained in:
Azim-D3Tm 2017-08-25 14:29:17 +03:00
parent e2862beb2d
commit 3641d31fef
3 changed files with 47 additions and 1 deletions

4
telegrambots/plugin.yml Normal file
View File

@ -0,0 +1,4 @@
name: TelegramBotsAPI
main: org.telegram.telegrambots.bukkit.BukkitPlugin
version: 3.3
commands:

View File

@ -80,8 +80,25 @@
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.12.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-meta</artifactId>
@ -184,6 +201,16 @@
<finalName>${project.artifactId}-${project.version}</finalName>
<testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<resources>
<resource>
<targetPath>.</targetPath>
<filtering>true</filtering>
<directory>${basedir}</directory>
<includes>
<include>plugin.yml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>

View File

@ -0,0 +1,15 @@
package org.telegram.telegrambots.bukkit;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class BukkitPlugin extends JavaPlugin{
@Override
public void onEnable(){
Bukkit.getLogger().info("Enabled Telegram bots API");
}
@Override
public void onDisable(){
Bukkit.getLogger().info("Disabled Telegram bots API");
}
}