[ADMIN/FUN]Announce v3.0 - Send Announcements Throughout The Server [766] [Permissions][Colors]

Discussion in 'Inactive/Unsupported Plugins' started by cronikkk, May 14, 2011.

  1. Offline

    cronikkk

    Announce 3.0 - Announce things through out the server
    Version: v3.0

    I'm rather new to plugin developing so i made this simple one that could be helpful to people with custom chat plugins that only allow people a few blocks away to hear them. So I made this announce plugin to allow admins to announce important messages throughout the whole server.

    Now permissions support! Want moderators to be able to send announcements, but have admins only be able to turn on and off? Now you can :)

    Thanks for the color help from @Cr3dos

    Features:
    • Enabled/Disable announcement (can not send them when disabled)
    • NEW IN 2.0a!:
    • Colored Text Via A Configuration File
    • tagcolor = the color of the word in the bracket
    • tagname = the name of the string in the brackets [tagname] message
    • msgcolor = self explanitory
    • bracketcolor = color of the "[" and "]" New In 2.1
    • Auto Updates Config File :) (dont need to reload it if you make changes to colors)
    • If you enter a color that doesn't exist it defaults to white
    • MAKE SURE TO DELETE YOUR CONFIG FILE BEFORE UPDATING TO 2.1 OTHERWISE YOU WILL SEE ERRORS!
    • The new version has the commands, and the commands auto update the config file :)
    Color List:

    Show Spoiler

    • aqua
    • black
    • blue
    • dark_aqua
    • dark_blue
    • dark_green
    • dark_purple
    • dark_red
    • gold
    • gray
    • green
    • light_purple
    • red
    • yellow


    Commands:
    • /announce on - turns on ability to announce
    • /announce off - turns off ability to announce
    • /announce send <message> - announces that message IF announce is on
    • /announce messagecolor <newcolor> - change the message color NEW
    • /announce tagcolor <newcolor> - change the tag color NEW
    • /announce bracketcolor <newcolor> - change the "[" and "]" colors NEW
    • /announce tagname <newtagname> - change the name inside of the "[" and "]" NEW
    Permission Nodes
    • announce.on - enables /announce on command
    • announce.off - enables /announce off command
    • announce.send - enables /announce send command
    • announce.modify - enables /announce messagecolor, tagcolor, bracketcolor and tagname NEW
    Upcoming Features:
    • Integrate Permissions Completed in v1.5
    • Allow Colored Text Completed in v2.0a
    • Automatic Messages
    Download:
    v3.0 (v2.1) (v2.0a) (v1.5) (v1.0)

    Changelog:
    Show Spoiler

    Version 3.0
    • Added the new commands (/announce messagecolor, tagcolor, bracketcolor, tagname)
    • Added new permission node for those commands
    • New menu to explain commands when you just type /announce
    • Cleaned up code big time.
    Version 2.1
    • Added bracket color support
    Version 2.0a
    • Added color support
    • Added configuration file
    Version 1.5
    • Added permissions support
    Version 1.0
    • Plugin Released!


    Review by @jamescosten
     
  2. Offline

    Sammy123100

    I'm having a problem running this.
    i setup my colours in the confirg file but when i try to to /announce on i get this in my command prompt

    19:03:40 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'anno
    unce' in plugin Announce v3.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    81)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:706)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:672)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:665)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:215)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:396)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:308)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHand
    ler
    at com.elitecraft.cronikkk.announce.AnnounceCommandListener.onCommand(An
    nounceCommandListener.java:36)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    ndler
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 14 more
     
  3. Offline

    cronikkk

    let me see your congif file
     
  4. Offline

    Sammy123100

    messagecolor: dark_green
    tagcolor: red
    bracketcolor: gold
    tagname: Broadcast
     
  5. Offline

    nutlnw7410

    this works in 1.6.4 (818) ?
     
  6. Offline

    m5k

    Needs an update to 818
     
  7. Offline

    nubpro

    I checked your source code but I wonder why is there an error with Chat Color?
    ChatColor c;
     
  8. Offline

    m5k

    This was the best 'formal' message plugin. Sadly it's dead.
     
  9. Offline

    CarabinasS

    Download is not working..
     
  10. Offline

    Archie

    Code:
    2011-07-27 15:20:33 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'announce' in plugin Announce v3.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
        at com.elitecraft.cronikkk.announce.AnnounceCommandListener.onCommand(AnnounceCommandListener.java:46)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    im getting this
     
  11. Offline

    zipron

    you should make a repeat function, so that an announce is repeated automaticaly after a delay..
     
  12. Offline

    Gonfa

    I really want a save function. Like
    But with /announce save [Name]
    and /announce load [Name] Like:

    command (open)


    /announce messagecolor blue
    /announce tagcolor aqua
    /announce bracketcolor aqua
    /announce tagname Info
    /announce send "Something here"

    looks like: [Info]Something here

    /announce save Info

    /announce messagecolor black
    /announce tagcolor red
    /announce bracketcolor red
    /announce tagname WANTED
    /announce send "Something here"

    looks like: [WANTED]Something here

    Use: /announce load Info

    - THIS WILL BE AUTO SELECTED
    /announce messagecolor blue
    /announce tagcolor aqua
    /announce bracketcolor aqua
    /announce tagname Info -
    USE:
    /announce send "hello"

    Should look like: [Info]hello
     
    KoryuObihiro likes this.
  13. Offline

    Gonfa

    And i really want a function to have the name like: [Info] Gonfa: . U should make it in the config like: Set name behind tag= true/false/allow/deny

    EDIT: And a shorter command like /announce send = /an send
    /announce tagcolor = /an tagcolor
    /announce bracketcolor = /an bracketcolor
    /announce messagecolor = /an messagecolor
    /announce tagname = /an tagname
    /announce on/off = /an on/off
     
  14. Offline

    Gonfa

  15. Offline

    King_KYl3

    Can you please add use of coulor codes like &1 &2 &3 &4 ect...
     
  16. Offline

    PerfectRaito

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'announce' in plugin Announce v3.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
        at com.elitecraft.cronikkk.announce.AnnounceCommandListener.onCommand(AnnounceCommandListener.java:36)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 14 more
    
    When i try to use the /Announce on command, or any other Announce command exept /Announce i get this error.
    I have only changed the colors in the settings file.
    Does this mod need to be updated or something or?
     
  17. Offline

    iPhysX

    @PerfectRaito
    This is severely outdated. Would not recommend using this version.
    I'm sure there could be an alternative.
    I'll tag @cronikkk in case he feels like updating it.
     

Share This Page