[CHAT] mChannel - Channel plugin for use with mChat [1597]

Discussion in 'WIP and Development Status' started by MiracleM4n, Aug 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    MiracleM4n

    mChannel - Channel plugin for use with mChat
    Version: 1.8.2_2

    mChannel???????? Look here:
    Download:
    Latest version 1.8.2_2
    Download

    Lots of Info (open)

    Use any of these in mChat's formatting for it to display the following: +Cn (Channel Name), +Cp (Channel Prefix), +Cs (Channel Suffix), +Ct (Channel Type)

    Commands:
    /<command> - See this info.
    /<command> create [channelName] - Starts Creating of a new channel. (Follow Prompts)
    /<command> edit [oldChannelName] - Starts Editing of an existing channel. (Follow Prompts)
    /<command> remove [channelName] - Deletes channel.
    /<command> direct [channelName] <msg> - Sends a message to all participants in a certain channel.
    /<command> join [channelName] - Joins channelName.
    /<command> invite [playerName] - Invites playerName to your channel.
    /<command> accept - Accepts invitation to join channel.
    /<command> leave - Leaves current channel.
    /<command> reload - Reloads config.
    aliases: [mchatchannels, mchannels, mcha, mchn]
    aliases: [mchatchannels, mchannels, mcha]


    Info:
    DO NOT EDIT CONFIG FILE UNLESS YOU KNOW WHAT YOU ARE DOING.
    Anything in [] is mandatory {} is only for certain features.
    default - defines default channel
    type - can only be (doesnt matter the case):
    Public (Everyone can see),
    Private (Only people in this channel can see),
    Local (Anyone within a certain distance of the player can see)
    Password (Anyone who knows the password can join)
    World (world based channel)
    Chunk (chunk based channel)

    prefix: can be any string, remember this takes colour codes :D (&e,&4)
    suffix: can be any string, remember this takes colour codes :D (&e,&4)

    password is optional as it is only used for password
    distance is optional as it is only used for local (Defaults to 0 if not used)


    Permissions (For all major Permissions plugins, includes GM/(P2/3)/bP(bPermissions)/PB(Superperms)):
    All variables are in {}'s
    mchannel.* = Everything.
    mchannel.reload = Reload config.
    mchannel.join.* = Join any channels.
    mchannel.join.{channelName} = Join {channelName}
    mchannel.invite.* = Ability to invite anyone to any channel you are in.
    mchannel.invite.{channelName} = Ability to Invite anyone to {channelName} if you are in it.
    mchannel.create.* = Create any channels.
    mchannel.create.{channelName} = Create {channelName}
    mchannel.edit.* = Edit any channels.
    mchannel.edit.{channelName} = Edit {channelName} (Note: If you change the channels name you can no longer edit it because you no longer have the node for channelName.)
    mchannel.remove.* = Remove any channels.
    mchannel.remove.{channelName} = Remove {channelName}
    mchannel.direct.* = Message any Channels
    mchannel.direct.{channelName} *MSG* = Message Channel

    Next Release (open)

    Currently what I have included is:
    • (Hopeful) CraftIRC 3 support.
    • (Hopefully Better Working) Factions support.
    To come:
    • Shout/Whisper.
    • Coloured Chat messages.
    • Better formatting of creation/editing of channels.
    • OFFER MORE??????? Like OMG?????
     
    DarkFusion and AS1LV3RN1NJA like this.
  2. Offline

    gameswereus

    commands pl0x :p

    Oh I'm such a dumby :p it's right there! --->

    EDIT: does the Faction Chat system work with this?
     
  3. Offline

    MiracleM4n

    As far as I can tell it does, There have been issues with Private chat but I am working on a work around for this now.
     
  4. Offline

    gameswereus

    Thanks so much! mChat was amazing, and now that you have this too!
     
  5. Offline

    fffizzz

    Code:
    21:15:03 [SEVERE] Could not pass event PLAYER_CHAT to mChannel
    java.lang.NoSuchMethodError: net.D3GN.MiracleM4n.mChat.mChatAPI.ParseChatMessage(Lorg/bukkit/entity/Player;Ljava/lang/String;)Ljava/lang/String;
            at net.D3GN.MiracleM4n.mChannel.MPlayerListener.onPlayerChat(MPlayerListener.java:26)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:706)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
            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:89)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    happens everytime someone talks
    CB 1060, permissionsbukkit dev, and this release of mchannel.[/code]
     
  6. Offline

    gameswereus

    Are you close to this work around? No rush lol, I just really want to add this asap :p
     
  7. Offline

    MiracleM4n

    @fffizzz Please update to the latest version of mChat.

    @gameswereus I am working on this. The only way to make the Private Chat hidden from plugins such as DynMap and CraftIRC is to cancel the event. I am trying to find a work around but am having no luck as of now. I will keep trying through the night though (1024PM right now)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  8. Offline

    gameswereus

    Once it's Faction-ready, I'll make a quick demo :p
     
  9. Offline

    fffizzz

    @MiracleM4n

    Does the join permission auto join a group to a channel, and does it also prevent users from accessing it who dont have that permissions node?
     
  10. Offline

    MiracleM4n

    Thanks. :D

    @fffizzz The channel that is set as "Default: true" in the config.yml will be the automatic channel a player joins when they talk.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  11. Offline

    gameswereus

    For channel distance, do you set 0 to make it global? Oh, what about channel passwords? Can you add these?
     
  12. Offline

    MiracleM4n

    The passwords are the Permissions nodes. Although I can add passworded Channels once I get the pmChat issues sorted.
     
  13. Offline

    gameswereus

    I'd rather keep most of my channels open, and tell people the passwords to get into the channels. But if that takes too much time, it's quite alright! Do you know if your "close" to finding the work around?
     
  14. Offline

    MiracleM4n

    I am hopefully close. I have looked at the Factions coding and see how it is done there, Not sure how I will convert it to mChannel but I will try.
     
  15. Offline

    Sayshal

    mChat isn't showing up prefixes/colouring since build 1060.
    config:
    Code:
    # mChat configuration file
    #
    #           **IMPORTANT**
    #   usage of mchat-message-format is restricted to:
    #       +suffix,+s, +prefix,+p, +group,+g, +world,+w, +time,+t, +name,+n, +dname,+dn, +health,+h +healthbar,+hb, +message,+msg,+m
    #
    #   usage of mchat-name-format, mchat-playerEvent-format are restricted to:
    #       +suffix,+s, +prefix,+p, +group,+g, +world,+w, +time,+t, +name,+n, +dname,+dn, +health,+h +healthbar,+hb
    #           **************
    #
    # Use of mchat: is only if your using PermissionsBukkit (superperms)
    # ignore it if you don't know what that is.
    
    mchat-join-message: has joined the game.
    mchat-date-format: HH:mm:ss
    auto-Changed: 1
    mchat-API-only: false
    mchat-name-format: +p+dn+s&e
    mchat-playerEvent-format: +p+dn+s&e
    mchat-kick-message: has been kicked from the game.
    mchat-message-format: '+hb+p+dn+s&f: +message'
    mchat-leave-message: has left the game.
    
    Permissions 3.1.6 groups.yml:
    Code:
    groups:
        Developer:
            default: false
            info:
                prefix: '&5[Dev] &6'
                suffix:
                build: true
                rank: 75
                inheritance: Builder
            permissions:
            - nocheat.*
            - ublock.ub
        Default:
            default: true
            info:
                prefix: '&f[&eGeneral&f] '
                suffix:
                build: true
                rank: 1
            permissions:
            - commandbook.rules
            - iCononmy.list
            - warpz0r.warp
            - commandbook.return
            - iConomy.access
            - iConomy.rank
            - commandbook.call
            - commandbook.motd
            - lwc.protect
            - iConomy.payment
            - commandbook.time.check
            - BetterShop.user.*
            - commandbook.spawn
            - commandbook.msg
            - commandbook.say.me
            - commandbook.who
            - commandbook.whereami
            - warpz0r.home
            - ublock.ub
        Builder:
            default: false
            info:
                prefix: '&f[&9Builder&f] &b'
                suffix:
                build: true
                rank: 50
            inheritance:
            permissions:
            - commandbook.rules
            - iCononmy.list
            - commandbook.give.infinite
            - commandbook.midi
            - nocheat.speedhack
            - warpz0r.warp
            - commandbook.intro
            - commandbook.time.*
            - commandbook.spawnmob.*
            - lwc.protect
            - commandbook.more.*
            - modtrs.command.modreq
            - nocheat.moving
            - worldguard.heal
            - commandbook.weather.*
            - commandbook.spawn
            - BetterShop.user.*
            - worldguard.god
            - commandbook.say.*
            - commandbook.setspawn
            - commandbook.return
            - iConomy.access
            - nocheat.flying
            - iConomy.rank
            - commandbook.motd
            - commandbook.give
            - worldguard.ungod
            - commandbook.give.stacks.*
            - iConomy.payment
            - commandbook.whereami.*
            - worldedit.*
            - commandbook.msg
            - commandbook.who
            - commandbook.kit.*
            - commandbook.clear
            - warpz0r.home
        Admin:
            default: false
            info:
                prefix: '&f[&cAdmin&f] &4'
                suffix:
                build: true
                rank: 100
            permissions:
            - worldguard.*
            - modtrs.*
            - lwc.*
            - warpz0r.*
            - nocheat.*
            - p2.*
            - bb.*
            - lb.*
            - iConomy.*
            - commandbook.*
            - kiwiadmin.*
            - BetterShop.*
            - worldedit.*
            - mcbans.*
            - mchat.*
            - vanish.*
            - permissions.*
    
     
  16. Offline

    MiracleM4n

    Make sure you have the latest version of mChat there was a recent fix for permissions.

    *Updated added Factions support for Private messages*

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  17. Offline

    captainawesome7

    I'd just like to say that CaptainChat came before mChannel and ChannelChat :p
    But really 3 channel plugins just pop up? At least we aren't making TNT reporting plugins :/
     
  18. Offline

    MiracleM4n

    When did CaptainChat come out?
     
  19. Offline

    F4BSE

    this are my local channels, but it don't works

    mchannel:
    r:
    default: 'true'
    distance: '18'
    tag: '&eLocal'
    type: Local
    s:
    default: 'false'
    distance: '35'
    tag: '&eLocal'
    type: Local
    f:
    default: 'false'
    distance: '3'
    tag: '&eLocal'
    type: Local
     
  20. Offline

    gameswereus

    Then let's see who come come up with a complicated original plugin first :p
     
  21. Offline

    MiracleM4n

  22. Offline

    gameswereus

    I'll have the video done by tomorrow :p anything you want in there specifically?
     
  23. Offline

    MiracleM4n

  24. Offline

    feildmaster

    Just ignore @captainawesome7 .
    Mine was made first, his was public first. Yours came after his, then I publicized mine after yours.
    Why does this matter? It doesn't. But captain feels the need to downplay others. =P
     
    Specops343 likes this.
  25. Offline

    MiracleM4n

    I just made mChannel as a plugin to tie into mChat's formatting API. :p Didnt mean to step on anyones toes.
     
  26. Offline

    feildmaster

    Like i said, ignore him. =P (I'm not bothered by it. I actually like competition. Though I thought I'd only be competing against HeroChat)

    EDIT:
    I was wrong with the timeline. But what ever. (Mine was first. :p)
     
  27. Offline

    captainawesome7

    Lol you have no idea when I started and finished development on my chat plugin.
     
  28. Offline

    MiracleM4n

    Whats your chat plugin called? Mine is mChat, Which I started early May.
     
  29. Offline

    feildmaster

    If you seriously took that long to code that messy plugin... I'm impressed. :)
     
  30. Offline

    mutiny

    requesting per channel color/format configurations, also global channels that are not automatically joined but are persistent

    also 'global private' channels, eg: they join a private channel, then join a global channel, they maintain presence in private channel

    also this

    Code:
    04:21:14 [SEVERE] Could not pass event PLAYER_CHAT to mChannel
    java.lang.IllegalArgumentException: Cannot measure distance between worlds or to null
            at org.bukkit.Location.distance(Location.java:327)
            at net.D3GN.MiracleM4n.mChannel.MPlayerListener.onPlayerChat(MPlayerListener.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:706)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
            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:89)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
Thread Status:
Not open for further replies.

Share This Page