Skip to content

Commit 7f44d39

Browse files
committed
update: 我们用 maven 了
1 parent e166c09 commit 7f44d39

39 files changed

Lines changed: 105 additions & 48 deletions

pom.xml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>top.zoyn.particlelib</groupId>
8+
<artifactId>ParticleLib</artifactId>
9+
<version>1.1.0</version>
10+
<packaging>jar</packaging>
11+
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
</properties>
15+
16+
<repositories>
17+
<repository>
18+
<id>elmakers-repo</id>
19+
<url>http://maven.elmakers.com/repository</url>
20+
</repository>
21+
</repositories>
22+
23+
<dependencies>
24+
<dependency>
25+
<groupId>org.spigotmc</groupId>
26+
<artifactId>spigot-api</artifactId>
27+
<version>1.15.2-R0.1-SNAPSHOT</version>
28+
<scope>provided</scope>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.spigotmc</groupId>
32+
<artifactId>spigot</artifactId>
33+
<version>1.15.2-R0.1-SNAPSHOT</version>
34+
<scope>provided</scope>
35+
</dependency>
36+
</dependencies>
37+
38+
<build>
39+
<defaultGoal>clean install</defaultGoal>
40+
<finalName>${project.name}-${project.version}</finalName>
41+
<sourceDirectory>src/main/java</sourceDirectory>
42+
43+
<plugins>
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-compiler-plugin</artifactId>
47+
<version>3.1</version>
48+
<configuration>
49+
<source>1.8</source>
50+
<target>1.8</target>
51+
</configuration>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
56+
57+
</project>

src/plugin.yml renamed to src/main/java/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: ParticleLib
2-
version: 1.0.0
2+
version: 1.1.0
33
main: top.zoyn.particlelib.ParticleLib
44
author: Zoyn
55
api-version: "1.13"

src/top/zoyn/particlelib/ParticleLib.java renamed to src/main/java/top/zoyn/particlelib/ParticleLib.java

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -162,52 +162,52 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
162162
// Bukkit.getScheduler().runTaskTimer(this, () -> showBorderAndGridAboutBlock(location.getBlock(), Particle.FIREWORKS_SPARK), 0L, 10L);
163163

164164

165-
Circle circle = new Circle(player.getLocation());
166-
circle.setStep(10D);
167-
168-
Astroid astroid = new Astroid(player.getLocation());
169-
astroid.setParticle(Particle.FIREWORKS_SPARK);
170-
astroid.setStep(10D);
171-
astroid.alwaysPlayAsync();
172-
173-
Heart heart = new Heart(player.getLocation());
174-
heart.setXScaleRate(1.5D);
175-
heart.setYScaleRate(1.5D);
176-
heart.setParticle(Particle.FLAME);
177-
heart.setStep(0.05D);
178-
179-
Heart heart2 = new Heart(player.getLocation());
180-
heart2.setXScaleRate(1.5D);
181-
heart2.setYScaleRate(1.5D);
182-
heart2.addMatrix(Matrixs.rotate2D(90));
183-
heart2.setParticle(Particle.FLAME);
184-
heart2.setStep(0.05D);
185-
186-
Heart heart3 = new Heart(player.getLocation());
187-
heart3.setXScaleRate(1.5D);
188-
heart3.setYScaleRate(1.5D);
189-
heart3.addMatrix(Matrixs.rotate2D(180));
190-
heart3.setParticle(Particle.FLAME);
191-
heart3.setStep(0.05D);
192-
193-
Heart heart4 = new Heart(player.getLocation());
194-
heart4.setXScaleRate(1.5D);
195-
heart4.setYScaleRate(1.5D);
196-
heart4.addMatrix(Matrixs.rotate2D(270));
197-
heart4.setParticle(Particle.FLAME);
198-
heart4.setStep(0.05D);
199-
200-
EffectGroup group = new EffectGroup()
201-
.addEffect(circle)
202-
.addEffect(astroid)
203-
.addEffect(heart)
204-
.addEffect(heart2)
205-
.addEffect(heart3)
206-
.addEffect(heart4)
207-
.scale(2)
208-
.rotate(45)
209-
.setPeriod(1)
210-
.alwaysPlayAsync();
165+
// Circle circle = new Circle(player.getLocation());
166+
// circle.setStep(10D);
167+
//
168+
// Astroid astroid = new Astroid(player.getLocation());
169+
// astroid.setParticle(Particle.FIREWORKS_SPARK);
170+
// astroid.setStep(10D);
171+
// astroid.alwaysPlayAsync();
172+
//
173+
// Heart heart = new Heart(player.getLocation());
174+
// heart.setXScaleRate(1.5D);
175+
// heart.setYScaleRate(1.5D);
176+
// heart.setParticle(Particle.FLAME);
177+
// heart.setStep(0.05D);
178+
//
179+
// Heart heart2 = new Heart(player.getLocation());
180+
// heart2.setXScaleRate(1.5D);
181+
// heart2.setYScaleRate(1.5D);
182+
// heart2.addMatrix(Matrixs.rotate2D(90));
183+
// heart2.setParticle(Particle.FLAME);
184+
// heart2.setStep(0.05D);
185+
//
186+
// Heart heart3 = new Heart(player.getLocation());
187+
// heart3.setXScaleRate(1.5D);
188+
// heart3.setYScaleRate(1.5D);
189+
// heart3.addMatrix(Matrixs.rotate2D(180));
190+
// heart3.setParticle(Particle.FLAME);
191+
// heart3.setStep(0.05D);
192+
//
193+
// Heart heart4 = new Heart(player.getLocation());
194+
// heart4.setXScaleRate(1.5D);
195+
// heart4.setYScaleRate(1.5D);
196+
// heart4.addMatrix(Matrixs.rotate2D(270));
197+
// heart4.setParticle(Particle.FLAME);
198+
// heart4.setStep(0.05D);
199+
//
200+
// EffectGroup group = new EffectGroup()
201+
// .addEffect(circle)
202+
// .addEffect(astroid)
203+
// .addEffect(heart)
204+
// .addEffect(heart2)
205+
// .addEffect(heart3)
206+
// .addEffect(heart4)
207+
// .scale(2)
208+
// .rotate(45)
209+
// .setPeriod(1)
210+
// .alwaysPlayAsync();
211211

212212
// Arc arc = new Arc(player.getLocation());
213213
// arc.setAngle(360D);
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/top/zoyn/particlelib/pobject/EffectGroup.java renamed to src/main/java/top/zoyn/particlelib/pobject/EffectGroup.java

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)