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.
In 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.
is there a way to put a item in the auction house forever till bought? requiring buyout ofcourse.
In reply to nachtmahr666:
so 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?
In reply to Forge_User_88406045:
In reply to ZombieStryker:
In reply to Forge_User_88406045:
In reply to ZombieStryker:
Hey 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
How do you customize the auction citizens?
Hello, 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
In reply to Pomasto:
In reply to ZombieStryker:
In 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.
In reply to ZombieStryker:
In reply to Pomasto:
In reply to ZombieStryker:
In reply to Pomasto:
In 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]
In reply to Pomasto: