Skip to content

Commit

Permalink
Finalized initial.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shynixn authored Jan 13, 2017
2 parents 89cd299 + fe8c8b2 commit 6345fb3
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 17 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: java
sudo: true
install:
- cd /home/travis/build/Shynixn/PetBlocks/
- mkdir lib
- wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastStableBuild/artifact/target/BuildTools.jar -P /home/travis/build/Shynixn/PetBlocks/lib/
- wget https://www.spigotmc.org/resources/supervanish-be-invisible.1331/download?version=118177 -P /home/travis/build/Shynixn/PetBlocks/lib/
script:
- cd /home/travis/build/Shynixn/PetBlocks/lib/
- java -jar BuildTools.jar --rev 1.8
- java -jar BuildTools.jar --rev 1.8.3
- java -jar BuildTools.jar --rev 1.8.8
- java -jar BuildTools.jar --rev 1.9
- java -jar BuildTools.jar --rev 1.9.4
- java -jar BuildTools.jar --rev 1.10
- java -jar BuildTools.jar --rev 1.11
- cd -
- mvn compile test
jdk:
- oraclejdk8
#jdk 8


88 changes: 84 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,85 @@
# README #
# PetBlocks
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://raw.githubusercontent.com/Shynixn/PetBlocks/master/LICENSE)

* Author Shynixn
* Premium Spigot Plugin
* Version 4.1.1
| branch | status |
| ------------- | --------------|
| master | [![Build Status](https://travis-ci.org/Shynixn/PetBlocks.svg?branch=master)](https://travis-ci.org/Shynixn/PetBlocks) |
| workflow | [![Build Status](https://travis-ci.org/Shynixn/PetBlocks.svg?branch=workflow)](https://travis-ci.org/Shynixn/PetBlocks) |

## Description
Spigot plugin to use blocks as pets in minecraft.

## Features

* Use blocks as pets in minecraft.
* Customizable UI.
* Version support 1.8.R1 - 1.11.R1
* Check out the [PetBlocks-Spigot-Page](https://www.spigotmc.org/resources/petblocks-mysql-bungeecord-customizeable-gui-1-8-1-9-1-10-1-11.12056/) to get more information.

## Installation

* [Download the plugin PetBlocks](https://github.com/Shynixn/PetBlocks/releases)
* Put the plugin into your plugin folder
* Start the server (1.8.0 - 1.11.2, Java 7/Java 8)
* Join and play :)

## API

* Reference the PetBlocks.jar in your own projects.
* If you are using maven you can add it from the central maven repository

### Maven

```xml
<dependency>
<groupId>com.github.shynixn</groupId>
<artifactId>petblocks</artifactId>
<version>5.7.0</version>
</dependency>
```

## How to use the it

#### Set Petmeta

```java
Player player = Bukkit.getPlayer("Shynixn");
if(PetBlocksApi.hasPetMeta(player)){
//Stored data of the entity
PetMeta petMeta = PetBlocksApi.getPetMeta(player);
petMeta.setDisplayName(ChatColor.RED + "That's my new petname");
PetBlocksApi.persistPetMeta(petMeta);
}
```
#### Set Petblock

```java
if(PetBlocksApi.hasPetBlock(player)){
//The current entity petblock
PetBlock petblock = PetBlocksApi.getPetBlock(player);
petblock.teleport(player);
}
```

* Check out the [PetBlocks-Spigot-Page](https://www.spigotmc.org/resources/petblocks-mysql-bungeecord-customizeable-gui-1-8-1-9-1-10-1-11.12056/) to get more information.

## Screenshots

![alt tag](http://www.mediafire.com/convkey/9d02/r92bshjdva755d3zg.jpg)
![alt tag](http://www.mediafire.com/convkey/697e/ddk043hgdj57d7jzg.jpg)

## Licence

Copyright 2017 Shynixn

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
43 changes: 30 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.shynixn</groupId>
<artifactId>petblocks</artifactId>
<name>PetBlocks</name>
<description>Spigot plugin to use blocks as pets in minecraft.</description>
<url>https://github.com/Shynixn/PetBlocks</url>
<packaging>jar</packaging>
<version>5.7.0</version>

Expand All @@ -17,14 +17,21 @@
</developer>
</developers>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<build>
<plugins>
<!-- <plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
Expand Down Expand Up @@ -63,7 +70,7 @@
</goals>
</execution>
</executions>
</plugin>-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -114,56 +121,56 @@
<artifactId>minecraft18R1</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/Spigot_1.8.0.jar</systemPath>
<systemPath>${basedir}/lib/spigot-1.8.jar</systemPath>
</dependency>
<dependency>
<groupId>net</groupId>
<artifactId>minecraft18R2</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/Spigot_1.8.3.jar</systemPath>
<systemPath>${basedir}/lib/spigot-1.8.3.jar</systemPath>
</dependency>
<dependency>
<groupId>net</groupId>
<artifactId>minecraft18R3</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/Spigot_1.8.8.jar</systemPath>
<systemPath>${basedir}/lib/spigot-1.8.8.jar</systemPath>
</dependency>
<dependency>
<groupId>net</groupId>
<artifactId>minecraft19R1</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/Spigot_1.9.0.jar</systemPath>
<systemPath>${basedir}/lib/spigot-1.9.jar</systemPath>
</dependency>
<dependency>
<groupId>net</groupId>
<artifactId>minecraft19R2</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/Spigot_1.9.4.jar</systemPath>
<systemPath>${basedir}/lib/spigot-1.9.4.jar</systemPath>
</dependency>
<dependency>
<groupId>net</groupId>
<artifactId>minecraft110R1</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/Spigot_1.10.2.jar</systemPath>
<systemPath>${basedir}/lib/spigot-1.10.2.jar</systemPath>
</dependency>
<dependency>
<groupId>net</groupId>
<artifactId>minecraft111R1</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/Spigot_1.11.0.jar</systemPath>
<systemPath>${basedir}/lib/spigot-1.11.2.jar</systemPath>
</dependency>
<dependency>
<groupId>de.myzelyam</groupId>
<artifactId>supervanish</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/lib/SuperVanish_19.jar</systemPath>
<systemPath>${basedir}/lib/SuperVanish.jar</systemPath>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
Expand All @@ -185,10 +192,20 @@
</dependency>
</dependencies>

<scm>
<connection>scm:git:git://github.com/Shynixn/PetBlocks.git</connection>
<developerConnection>scm:git:ssh://github.com:Shynixn/PetBlocks.git</developerConnection>
<url>http://github.com/Shynixn/PetBlocks.git/tree/master</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>releases</id>
<url>file://D:/Benutzer/Deployments/PetBlocks</url>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>

0 comments on commit 6345fb3

Please sign in to comment.