NPCAuctions

What is NPCAuctions
NPCAuctions was created as an alternative to all the other auction plugins currently out there. What makes this plugin different than the rest is that there are no commands to auction items, and that players must use an NPC to open a GUI that contains all the auctions.
Features
- Supports NPCs if the server uses Citizens.
- Uses Villagers if Citizens is not installed.
- Should support any server higher than 1.8.
Commands
/npca spawnNPC: Spawns an NPC
/npca removeallnpcs: Removes all NPCS from the world
/npca usevillagers: Toggles whether CitizensNPCs or villagers are used.
/npca removenpc : Allows the user to remove villagers
/npca respawn: In case villagers despawn, use this to readd them
/npca open: Opens the auction house.
/npca endAllAuctions: Ends all auctions.
/npca cancelAuction: Ends all of a user's auctions.
/npca reload: Reload config values (does not affect auctions).
Permissions:
- "npcauctions.auctionlimit.#"
- --Replace the # with the max amount of auctions a player can have.
- "npcauctions.*"
- Gives the player permission to all commands.
- npcauctions.create
- Gives the player permission to create new npcs
- npcauctions.destroy
- Gives the player permission to remove npcs.
- npcauctions.bypasslimit
- Gives the player permission to add as many auctions as possible.
This plugin does update automatically:
This plugin checks for updates and will download updates. If you do not want this plugin to automatically update, all you need to do is edit one line in the "plugins\AUpdater\global.yml" file. Just change the one variable in there to false (or, if you run into any problems, copy the code below)
# Updater by ArsenArsen
# Global config
# Sets should updates be downloaded globaly
update: false
How to Install
- Drop this plugin into you plugins folder
- Find/Create a plugin that will allow you get to your world
- Restart your server
This plugin uses bStats:
bStats is a metrics service that allows me to to see how many servers use my plugins, how many players they have, and which countries use my plugin the most. All information is anonymized, so no information can be directly linked to you, and instead is added to the average of all severs that use the plugin.
-
View User Profile
-
Send Message
Posted Apr 8, 2018Hey. I just installed your plugin and when i start the server i get an error and when i go look in the files the Config.yml is completly empty the messages.yml looks correct, but in the game i can still spawn a npc and use it with making an auction but why is it that my config file is empty and this error shows up?
[10:47:38 ERROR]: [NPCAuctions] Citizens 2.0 not found or not enabled
[10:47:38 WARN]: java.io.IOException: No such file or directory
[10:47:38 WARN]: at java.io.UnixFileSystem.createFileExclusively(Native Method)
[10:47:38 WARN]: at java.io.File.createNewFile(File.java:1012)
[10:47:38 WARN]: at me.zombie_striker.npcauctions.ConfigHandler.init(ConfigHandler.java:28)
[10:47:38 WARN]: at me.zombie_striker.npcauctions.Main.onEnable(Main.java:157)
[10:47:38 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[10:47:38 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
[10:47:38 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403)
[10:47:38 WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381)
[10:47:38 WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330)
[10:47:38 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422)
[10:47:38 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383)
[10:47:38 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338)
[10:47:38 WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272)
[10:47:38 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545)
[10:47:38 WARN]: at java.lang.Thread.run(Thread.java:748)
-
View User Profile
-
Send Message
Posted Apr 8, 2018In reply to Forge_User_58715599:
The config is empty by default. Only data regarding actions are saved in the config.
The error is caused from the server or server-hosting-service denying the plugin from reading the messages.yml. All this means is that you won't be able to edit any of the messages, and NPCAuctions will rely only on the default values. Unless you plan on changing anything, you can ignore the error.
-
View User Profile
-
Send Message
Posted Mar 23, 2018is there a way to put a item in the auction house forever till bought? requiring buyout ofcourse.
-
View User Profile
-
Send Message
Posted Mar 24, 2018In reply to nachtmahr666:
-
View User Profile
-
Send Message
Posted Feb 14, 2018so i spawned the auction npc, i tried to make an auction: created new auction, used diamond sword(normal), clicked on the sword, than it asked starting bid, i typed in 100 and it says this:
[NPCAuctions] Canceling Auction: Invalid input.
i dont know what i do wrong?
-
View User Profile
-
Send Message
Posted Feb 14, 2018In reply to Forge_User_88406045:
-
View User Profile
-
Send Message
Posted Feb 15, 2018In reply to ZombieStryker:
-
View User Profile
-
Send Message
Posted Feb 15, 2018In reply to Forge_User_88406045:
-
View User Profile
-
Send Message
Posted Feb 16, 2018In reply to ZombieStryker:
-
View User Profile
-
Send Message
Posted Jan 23, 2018Hey ZombieStryker I am having a problem with this plugin do you think you could let me know what the heck is going on? Much Thanks here is what the console says
Error From Console:
[11:07:26] [Server thread/ERROR]: Could not pass event InventoryClickEvent to NPCAuctions v1.0.15
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1820) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:696) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:371) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:651) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:555) [craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 9
at java.util.Arrays$ArrayList.get(Arrays.java:3841) ~[?:1.8.0_112]
at net.minecraft.server.v1_12_R1.NonNullList.get(SourceFile:44) ~[craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at org.bukkit.craftbukkit.v1_12_R1.inventory.CraftInventoryCustom$MinecraftInventory.getItem(CraftInventoryCustom.java:74) ~[craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at org.bukkit.craftbukkit.v1_12_R1.inventory.CraftInventory.getItem(CraftInventory.java:49) ~[craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
at me.zombie_striker.npcauctions.Main.onClick(Main.java:701) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[craftbukkit-1.12.2.jar:git-Bukkit-bdcc7c7]
... 15 more
-
View User Profile
-
Send Message
Posted Jan 19, 2018How do you customize the auction citizens?
-
View User Profile
-
Send Message
Posted Jan 12, 2018Hello, so, I have the plugin on my server, it is running fine with vault and essentialsX, but when I make an NPC for the Auction house, it won't let me add any auctions, it justs takes away my stuff. I don't know if I am doing something wrong or if it is a glitch, but I would really enjoy it if this plugin worked on my server because this is exactly what I'm looking for! Thanks!
-Pomasto
-
View User Profile
-
Send Message
Posted Jan 12, 2018In reply to Pomasto:
-
View User Profile
-
Send Message
Posted Jan 12, 2018In reply to ZombieStryker:
-
View User Profile
-
Send Message
Posted Jan 12, 2018In reply to Pomasto:
And that is it. Because I want it to be modular and customization depending on the auction, this chat related system is required.
-
View User Profile
-
Send Message
Posted Jan 13, 2018In reply to ZombieStryker:
-
View User Profile
-
Send Message
Posted Jan 13, 2018In reply to Pomasto:
-
View User Profile
-
Send Message
Posted Jan 13, 2018In reply to ZombieStryker:
-
View User Profile
-
Send Message
Posted Jan 13, 2018In reply to Pomasto:
-
View User Profile
-
Send Message
Posted Jan 15, 2018In reply to ZombieStryker:
16.01 06:25:32 [Server] INFO org.bukkit.event.EventException: null
16.01 06:25:32 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1820) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_152]
16.01 06:25:32 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_152]
16.01 06:25:32 [Server] INFO at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:696) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]
16.01 06:25:32 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:371) [craftbukkit-1.12.2.jar:git-Bukkit-1dced6a]