Census Signs
Census Signs
<sub>By: Quinn Henckel</sub><big> Have you ever wanted to show players how many people where in an area?
Ever needed to make an online staff wall? </big>
Now you can!
Using Census signs is very easy all you have to do is create a region with world edit and the /censussign.
Create a sign with the first line "[census]" and the secound line what area to dysplay the count for.
Or create a sign with "[online]" with the player name on the secound line and it will let you know if they are online or not!
The sign will automaticly update every 2 secounds!
Setup:
- Install Worldedit (skip this if you already have it.)
- Dowload the .Jar.
- Move it to your /plugins/ folder.
- Restart/reload your server.
- The config will create automaticly.
Use the Plugin:
- Create a census area
-
- Select the area
- This is the Area that will count players. Make it big. Make sure to select the floor not the wall. It can only be a WorldEdit cubiod region.
- Type the command:
- This command is: /censussign new (area name). For example: /censussign new city (this would be for an area call "city")
- Place a Sign
- You can place a sign anywhere you want. Just make sure People can see it ;)
- Fill in the sign
- there are two types of signs: Census and online.
Census sign Online sign The first(top) line should be: [census] The first(top) line should be: [online] The secound line is the name of the region The secound line is the name of the player Leave blank The third line is the color you want the player name to be Picture of how to make it Picture of how to make it
Config:
See the page for defaults.Commands:
- /censussigns new (area name)
- This defines a new area. You can then place signs to display the number of players in this area.
Permissions:
- censussigns.create
- Allow this user to create signs
Dependencies:
- Worldedit
- This is a HARD dependency. You must be able to select a rigion or census signs will throw an error.
Upcomming changes!
- deleting areas
- fixing errors from missing signs
- Commands to count areas with out signs.
- Better help messages.
- More sign types
- Better colors.
- Counting other things (mobs, items, blocks...)
- Feel free to leave suggestions!
I Will Pay You To??
Hi There Is This Going To Be Updated To 1.7 Or Can I Maybe Pay You To Add Additional Stuff If So Please Add Me On Skype lucas.bell101
Never mind, got it working. But question: what if a username can't fit onto an on-line sign?
27.05 10:34:03 [Server] INFO ... 15 more 27.05 10:34:03 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_51] 27.05 10:34:03 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_51] 27.05 10:34:03 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_51] 27.05 10:34:03 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_51] 27.05 10:34:03 [Server] INFO at io.github.qhenckel.CensusSigns$MyListener.signbreak(CensusSigns.java:156) [?:?] 27.05 10:34:03 [Server] INFO Caused by: java.lang.NullPointerException 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:459) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:548) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:250) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:657) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.ServerConnection.c(SourceFile:134) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:147) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.PacketPlayInBlockDig.handle(SourceFile:8) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.PacketPlayInBlockDig.a(SourceFile:53) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:535) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.PlayerInteractManager.dig(PlayerInteractManager.java:118) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at net.minecraft.server.v1_7_R2.PlayerInteractManager.breakBlock(PlayerInteractManager.java:263) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:03 [Server] INFO org.bukkit.event.EventException 27.05 10:34:03 [Server] ERROR Could not pass event BlockBreakEvent to Census_Signs v2 27.05 10:34:02 [Server] INFO ... 13 more 27.05 10:34:02 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_51] 27.05 10:34:02 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_51] 27.05 10:34:02 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_51] 27.05 10:34:02 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_51] 27.05 10:34:02 [Server] INFO at io.github.qhenckel.CensusSigns$MyListener.sign(CensusSigns.java:109) [?:?] 27.05 10:34:02 [Server] INFO at org.bukkit.ChatColor.getByChar(ChatColor.java:176) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at org.apache.commons.lang.Validate.isTrue(Validate.java:157) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO Caused by: java.lang.IllegalArgumentException: Code must have at least one char 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:459) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:548) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:250) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:657) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.ServerConnection.c(SourceFile:134) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:147) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.PacketPlayInUpdateSign.handle(SourceFile:9) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.PacketPlayInUpdateSign.a(SourceFile:48) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:1583) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:34:02 [Server] INFO org.bukkit.event.EventException 27.05 10:34:02 [Server] ERROR Could not pass event SignChangeEvent to Census_Signs v2 27.05 10:33:51 [Server] INFO ... 13 more 27.05 10:33:51 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at io.github.qhenckel.CensusSigns.onCommand(CensusSigns.java:58) [?:?] 27.05 10:33:51 [Server] INFO Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:459) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:548) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:250) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:657) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.ServerConnection.c(SourceFile:134) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:147) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.PacketPlayInChat.handle(PacketPlayInChat.java:47) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.PacketPlayInChat.a(PacketPlayInChat.java:28) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:814) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at net.minecraft.server.v1_7_R2.PlayerConnection.handleCommand(PlayerConnection.java:952) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchCommand(CraftServer.java:696) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [ipg.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 27.05 10:33:51 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'censussign' in plugin Census_Signs v2 27.05 10:33:51 [Server] ERROR null
And yes, this is backwards.
I'll second the note from @slayer75is. I'm a Java developer and I run a MC server but so far I haven't created any Bukkit mods. It would be a great experience to be able to see how you're interfacing with WorldEdit and how you're getting the entity counts. I came here looking for a plugin (bukkit or vanilla) that can get me a mob count within a radius of the player. (I understand the dependency on WE.) So if you're up for sharing your code I promise not to republish or do anything else dishonorable. If I do manage to improve upon the code I'll send it back, no credit will be requested. Please share your concerns here or via PM as you prefer. Thanks.
Can you try to make /censussign reload? :c
a new version please for more configuration
add Commands the sign. please
Was really excited to get this plugin... except it did not work
@qhenckel
thats happening ever since i updated my server to 1.7+ i think there must be something that makes census signs unhappy cooperating with abit of the new code of 1.7+ have a look cos this plugin is soo useful on my server!
@Geoneo97
I'll add language support in my next version. but because of the holidays it won't be done till after new years.
Please Please Please This is a EPIC Plugin
AND Please Add Color Code in the Config
Example When i create a Arena and write ag sign [census] arenaname
it hooks into
[Player] 0 Player <I i can change all but ich can change Player in my Language (german) in arena arenaname
And add Colorcodes ;)
mfg /Thanks When this is done i will donate with a chance of 80%
sry for bad english
Hey, i found this error:
http://forums.bukkit.org/threads/census-signs-error.206673/ [SEVERE] Could not pass event BlockBreakEvent to Census Signs v2
Could you help me please?
Hey, im developing a plugin of my own i was wondering if i could get the code for this plugin so i can have my plugin depend on it. That would be great!
@SidRow
That is coming in the next update.
Ummm what! there is no commands to pout in to manually see in the chat haw many are in the zoned out area.
@qhenckel
Well thats the thing. Both the census and online sign show 'Loading...' even after relogging and restarting server. I made a 'test' area put test on the second line and still same results :/
Thanks.
@FusSionzZ97
ok so the every two seconds error is from not having an area for the sign. the "loading..." is for the same reason.
as for not being able to use '/censussigns' that isn't the command (i must have typed it wrong)
the correct one is '/censussign' if you can't use that one please post the error, or you may have the permissions set up wrong.
sorry for the trouble. =/
thanks for reporting the error =D
@qhenckel
My signs get stuck on 'Loading...' and don't ever show a result
'/censussigns new (area name)' doesn't work have to use /censussign '/censussign' Spits out an internal error
And every 2 seconds this error http://pastebin.com/yVxca9Gd pops up in the console. Running Census-signs 2.0 with 1.6.4-R2.0