HeroNotifyClient

Discussion in 'Bukkit Tools' started by fregman, Jun 1, 2013.

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

    fregman

    This is the thread for the client of my HeroNotify plugin.

    Client v0.2: http://forums.bukkit.org/attachments/heronotifyclient-zip.13788/

    Client v0.3 http://forums.bukkit.org/attachments/heronotifyclient0-3-zip.13797/
    (Works only with plugin version 0.3!)

    Client v0.4 http://forums.bukkit.org/attachments/heronotifyclient0-4-zip.13865/
    (Works only with plugin version 0.4!)

    HeroNotify on BukkitDev:

    http://dev.bukkit.org/bukkit-mods/heronotify/

    Description:

    I wrote this Plugin after I saw a similiar one without remote function. This plugin provides you with realtime information about player join / player quit events and display them on your desktop (Windows 7 ( XP not tested yet)/ Linux ). And you are able to chat with friends without being online.
    Features

    • Displays player join and player quit on your server
    • Realtime playerlist
    • Realtime remote chat
    Commands

    To register use /hn register password retypepassword
    To chat from ingame to a playerclient use /hn username message

    Usage
    • Just put the serverplugin on your server and start.
    • If you want a different port, change it in the config after you start the server and restart the server
    • use /hn register password retypepassword to register on the server
    • start the client add your serverip and port, login with your minecraftname and the password from step 3, enjoy!
    How it looks: Windows:
    [​IMG]
    Linux(could be different)
    [​IMG]

    Playerlist & chat:

    [​IMG]

    Known Bugs:

    Sadly there are a few bugs in this version,
    - the bubbles dont stay in the same color as they should
    - the scrollbar in the chatwindow dont scroll down every time
    - sometimes the player join/quit doesn't appear and the playerlist dont get updated but its fixed as soon as another player joins
    - I tried to find all NullPointerExceptions in this version but sometimes they are hiding very well...

    please have in mind that this is a beta, and I'm new to Java and this is my first bigger project :)
    I hope I can use this project to learn a lot more in Java programming :D



    Changelog:


    v0.4
    - Added remote chat
    - fancy chatbubbles
    - added servertime, name and motd

    v0.3

    - Added language file
    - Realtime playerlist

    v0.2
    - GUI looks better
    - Client saves error in error.log
    - Option to store server and ip
    - different type of messages (error or info)
    - small bugfixes

    v0.1
    - First release
     

    Attached Files:

  2. Wow, is very great!

    Nice work! ;)

    It would be nice to customize the messages that appear in the notifications. In order to translate them into other languages.

    Also would be nice to get a list of currently connected players.
     
  3. Offline

    fregman

    Thanks :)

    Good idea, I will add this in the next client update :)

    I also want to add a "friendlist" to show only friends join/quit to prevent notification spamming on bigger server
     
  4. Offline

    Lolmewn

    Wow, that's pretty cool!
     
  5. Offline

    fregman

    Thank you :D

    Lummox

    I've implented both features in 0.3. I will upload the new plugin and client today. :)

    Lolmewn

    Am I allowed to provide an external downloadlink to the plugin? So I dont have to wait about 24h before the plugin is approved. It's kind of weird, the client can be downloaded instantly but the plugin, which is necessary for the client, arrives a day later :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  6. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    You may not.
     

  7. Thanks for the additions!.

    I look forward to approve the new version on BukkitDev, to prove it.

    It would be nice to create new content, make your plugin / program serves not only to notify you when someone enters or leaves, but also to create a community of friends.

    One idea that comes to mind is to create a "chat" to talk to other players, something simple, like the one used in "Steam". A friend comes online, and you sent a message via the chat "In 10 minutes I go to play, do not go!" For example.

    You can do something very interesting with your plugin / program would need even more options, but it can become an indispensable tool for a server.

    Another option would be a list where adding servers, something like "favorites", to connect more quickly.

    It would also be interesting to collect basic information about the server, such as name, motd, in-game time (hour, if it's sunny, raining ...), players online, for example.

    These are ideas to improve the experience with your program because a simple notifier who "comes in and out" may be unhelpful.

    But adding more options, you can become a "utility" very, very interesting.

    A greeting.
     
  8. Offline

    fregman

    I planned to add a chat anyway in combination with the playerlist, I have to find a way how to make sure that the client is the correct player, I will add an ingame registration to manage this I think.

    The favorites won't be that difficult to add, I think its possible for 0.4

    I'll add the basic server infos to the top of the playerlist.

    Thank you for the ideas they are great :)

    BTW:

    The playerlist is atm always on top, i want to add an option to add transparency.
     
  9. Is implemented to translate the messages, I've searched but can not find the way to do it.

    It is assumed that the 0.3 version would have this option right?. :)
     
  10. Offline

    fregman

    The 0.3 version creates a "lang.txt" where you can edit the different strings. the file should be in the same folder where the .jar is.

    I'm making progress :)
    [​IMG]

    The chat isnt fully implemented yet, because i dont want it to be just text.
    But I can promise, that you are able to chat in v0.4 :) I think i can release the first version tomorrow or "the day after".

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  11. [diamond]:D[diamond]

    This looks great!

    Good job!

    I'm anxious to try this new version: D
     
  12. Offline

    fregman

    Finally after a few situations where I wanted to throw my laptop out of my window I managed it to provide a working version for testing :)

    Have fun and let me know if you like it!

    Lolmewn
    mbaxter

    Could one of you maybe approve the plugin? it is waiting for 18 hours now.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  13. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    Files are processed in order of submission.
     
  14. Offline

    fregman

    Ok, I hope I'm not too far at the bottom :D
     
  15. Oh, this is going taking good look.

    One thing, now the file "language" does not generate anything, it is an empty file.

    And another thing, when someone closes the client, an error in the console:

    Code:
    2013-06-09 02:39:06 [SEVERE] java.net.SocketException: Connection reset
    2013-06-09 02:39:06 [SEVERE]at java.net.SocketInputStream.read(SocketInputStream.java:189)
    2013-06-09 02:39:06 [SEVERE]at java.net.SocketInputStream.read(SocketInputStream.java:121)
    2013-06-09 02:39:06 [SEVERE]at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
    2013-06-09 02:39:06 [SEVERE]at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
    2013-06-09 02:39:06 [SEVERE]at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
    2013-06-09 02:39:06 [SEVERE]at java.io.InputStreamReader.read(InputStreamReader.java:184)
    2013-06-09 02:39:06 [SEVERE]at java.io.BufferedReader.fill(BufferedReader.java:154)
    2013-06-09 02:39:06 [SEVERE]at java.io.BufferedReader.readLine(BufferedReader.java:317)
    2013-06-09 02:39:06 [SEVERE]at java.io.BufferedReader.readLine(BufferedReader.java:382)
    2013-06-09 02:39:06 [SEVERE]at de.herobrine.heronotify.server.Streams.run(Unknown Source)
    2013-06-09 02:39:06 [SEVERE]at java.lang.Thread.run(Thread.java:722)
    This is very annoying, it would be nice if you could fix it.

    More things ... When you write "/hn" or "/hn register", I get a message "An internal error occurred while attempting to perform this command", and get an error in the console:

    Code:
    2013-06-09 02:42:14 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'hn' in plugin HeroNotify v0.4
    >      at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
    >      at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
    >      at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:546)
    >      at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:985)
    >      at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:901)
    >      at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:846)
    >      at org.getspout.spout.SpoutPlayerConnection.a(SpoutPlayerConnection.java:120)
    >      at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44)
    >      at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:218)
    >      at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115)
    >      at org.getspout.spout.SpoutPlayerConnection.d(SpoutPlayerConnection.java:195)
    >      at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
    >      at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72)
    >      at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583)
    >      at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227)
    >      at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
    >      at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
    >      at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    >      at de.herobrine.heronotify.server.HeroCommandExecutor.onCommand(Unknown Source)
    >      at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    >      ... 17 more
    
    Would be better than when you type "/hn" or "/ hn register", display a message like "You have to write the command correctly. Example: /hn register <password> <repeat password>". And that does not appear either the error message on the console.

    Another suggestion, now that there are "chat", is the ability to create a list of "friends" to choose on which players you will be notified when it enters or leaves the server. That is, have two options to receive notifications of any player, or just your friends list. Also would be nice, more people to join in a conversation. For example, I chat with "X" and I add to "XX" to the conversation, via a button that says "Add to" to also participate.

    Good job ;)
     
  16. Offline

    fregman

    Lummox

    The errors will be fixed in the next version, sorry for that.

    as soon as the 0.4 version is almost bugfree I will add the new features you suggested, I don't want to add new features aslong as the new ones aren't fully stable.

    I had to remove the language option temporarely because i added so much new strings. This will also return asap.

    As always thanks for testing and your ideas :)
     
  17. Offline

    utybo

    Mmh... Is this plugin easy to translate? If the answer is yes I will try to translate it in French
     
Thread Status:
Not open for further replies.

Share This Page