Skip to content

Commit 577fedb

Browse files
committed
sample api usage for v5, clean up
1 parent 67df72c commit 577fedb

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,13 @@ To compile the QuickShop and debug it by yourself, please follow these steps:
9191
## License
9292

9393
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FGhost-chu%2FQuickShop-Reremake.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FGhost-chu%2FQuickShop-Reremake?ref=badge_large)
94+
95+
## Developer API
96+
97+
```java
98+
Plugin plugin = Bukkit.getPluginManager().getPlugin("QuickShop");
99+
if(plugin != null){
100+
QuickShopAPI api = (QuickShopAPI)plugin;
101+
api.xxxx;
102+
}
103+
```

pom.xml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@
152152
</relocation>
153153
<relocation>
154154
<pattern>com.dumptruckman.bukkit.configuration.</pattern>
155-
<shadedPattern>org.maxgamer.quickshop.file.newest.json.</shadedPattern>
155+
<shadedPattern>org.maxgamer.quickshop.shade.com.dumptruckman.bukkit.configuration.
156+
</shadedPattern>
156157
</relocation>
157158
<relocation>
158159
<pattern>org.apache.commons.compress.</pattern>
@@ -259,22 +260,6 @@
259260
<keypass>${env.quickshop-signer-pwd}</keypass>
260261
</configuration>
261262
</plugin>
262-
<!-- <plugin>-->
263-
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/org.codehaus.mojo/exec-maven-plugin &ndash;&gt;-->
264-
<!-- <groupId>org.codehaus.mojo</groupId>-->
265-
<!-- <artifactId>exec-maven-plugin</artifactId>-->
266-
<!-- <version>3.0.0</version>-->
267-
<!-- <executions>-->
268-
<!-- <execution>-->
269-
<!-- <goals>-->
270-
<!-- <goal>java</goal>-->
271-
<!-- </goals>-->
272-
<!-- </execution>-->
273-
<!-- </executions>-->
274-
<!-- <configuration>-->
275-
<!-- <executable>${basedir}/scripts/calculate-version.sh</executable>-->
276-
<!-- </configuration>-->
277-
<!-- </plugin>-->
278263
</plugins>
279264
<resources>
280265
<resource>
@@ -337,11 +322,6 @@
337322
<id>EnderZone</id>
338323
<url>https://ci.ender.zone/plugin/repository/everything/</url>
339324
</repository>
340-
<!-- <repository>-->
341-
<!-- <id>reserve-repo</id>-->
342-
<!-- <url>https://dl.bintray.com/theneweconomy/java/</url>-->
343-
<!-- </repository>-->
344-
<!-- PlotSquared -->
345325
<repository>
346326
<id>intellectualsites releases</id>
347327
<url>https://mvn.intellectualsites.com/content/repositories/releases/</url>
@@ -368,10 +348,6 @@
368348
<id>minebench-repo</id>
369349
<url>https://repo.minebench.de/</url>
370350
</repository>
371-
<repository>
372-
<id>songoda</id>
373-
<url>https://repo.songoda.com/repository/public/</url>
374-
</repository>
375351
<repository>
376352
<id>papermc</id>
377353
<url>https://papermc.io/repo/repository/maven-public/</url>

0 commit comments

Comments
 (0)