mrmicky-fr / fastinv Goto Github PK
View Code? Open in Web Editor NEWLightweight and easy-to-use inventory API for Bukkit plugins.
License: MIT License
Lightweight and easy-to-use inventory API for Bukkit plugins.
License: MIT License
Add support for Minecraft 1.18.2
How to close the GUI when the item is clicked
Hi, to summarize I have two plugins using the API with maven, the problem is when both plugins are in a server, the second enabled plugins throws me this error:
[16:46:58] [Server thread/ERROR]: Error occurred while enabling SecurityLog v2.0.0 (Is it up to date?)
java.lang.IllegalStateException: FastInv is already registered
at fr.mrmicky.fastinv.FastInvManager.register(FastInvManager.java:63) ~[?:?]
at me.iKstruuh.sl.Main.onEnable(Main.java:72) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:366) [PlugMan.jar:?]
at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:318) [PlugMan.jar:?]
at com.rylinaux.plugman.util.PluginUtil.reload(PluginUtil.java:380) [PlugMan.jar:?]
at com.rylinaux.plugman.command.ReloadCommand.execute(ReloadCommand.java:122) [PlugMan.jar:?]
at com.rylinaux.plugman.PlugManCommandHandler.onCommand(PlugManCommandHandler.java:95) [PlugMan.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at java.lang.Thread.run(Thread.java:833) [?:?]
This code has become very useful, but I'm missing pagination.
Hello, is not working the gradle, I put everything right, but at the time to export the project to the server, it does not come with the dependency, the fastInv
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'org.loopz.seaterrenos'
version '1.0'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://oss.sonatype.org/content/repositories/central' }
}
dependencies {
implementation 'fr.mrmicky:FastInv:3.0.3'
compileOnly 'org.spigotmc:spigot-api:1.8-R0.1-SNAPSHOT'
compileOnly 'org.spigotmc:spigot:1.8-R0.1-SNAPSHOT'
}
shadowJar {
relocate 'fr.mrmicky.fastinv', 'org.loopz.seaterrenos.fastinv'
}
Hi, I use the API and works perfectly.
But it would be great if you add some features like:
inv.setUpdater(0L, 20L);
then while the inventory is opened it will be refreshed every X ticks, for example.How do I set the SkullOwner of PLAYER_HEAD
I love this API but I believe there is room for improvement and more updates
Hi, its me.
What do you mean with "make sure to build with Maven and not with your IDE build settings directly"?
Am quite new with maven.
Bonjour,
Je vous écris en français car j'ai vu que vous parliez francais.
J'aimerai savoir comment je peux update l'inventaire du joueur ?
Merci :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.