[ADMIN/CHAT] TextPlayer v0.9 - Receive text alerts to your phone [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Apr 16, 2011.

  1. Offline

    Codisimus

    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    TextPlayer - Receive text alerts to your phone:
    Version: 0.9 (7/18/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions
    Download Page

    WARNING: When setting up the email address in the email.properties file, use an account that isn't used for anything else (such as personal emails) as it will delete all messages after they are read by the plugin

    If the needed files aren't automatically created they can be found here

    Now you can be contacted at any time from your Server!

    This plugin allows users to type "/text [Name]" to contact you or another player by sending them a text message to their phone (Standard rates apply)

    Alerts can also be sent to you for specific events

    Features:
    • Use your phone number or email
    • Send texts back to the server to chat or run commands
    • Retrieve player list by texting "pl" to the server
    • Many popular Cell phone providers are supported:
    • List users who added their numbers
    • Anti-spam feature (limit max amount of texts received each day)
    • Numbers/email addresses cannot be seen in game (for privacy issues)
    • Be alerted by text message when a player Logs on
    • Be alerted by text message when the Server comes online/goes offline (also triggered on Server reload)
    • Be alerted when a player places lava, fire, or tnt (Currently not working)
    • Set emails to come from a custom email address
    • Encrypted data
    • Permissions to limit players from texting or being texted and to run server commands through text
    Supported Carriers:
    Show Spoiler

    • At&t
    • Bell
    • BeeLine
    • Bouygues
    • Cricket
    • D1
    • E-Plus
    • Etisalat
    • Fido
    • Koodo
    • LMT
    • MetroPCS
    • Mobistar
    • NetCom
    • nTelos
    • Optimus
    • Optus
    • Orange
    • O2-UK
    • O2-Germany
    • Pc-Mobile
    • Rogers
    • SFR
    • SoftBank
    • Sprint
    • Starhub
    • Sunrise
    • Swisscom
    • TDC
    • Telecom
    • Telenor
    • Tele2
    • Telia
    • Telstra
    • Telus
    • Three
    • T-Mobile
    • T-Mobile-Czech
    • US-Cellular
    • Verizon
    • Virgin-Mobile
    • Vivo
    • Vodafone-Germany
    • Vodafone-Greece
    • Vodafone-Italy
    • Vodafone-UK
    • *Comment below to request support for a carrier

    Commands:
    • /text [Name] [Message] - Sends message to User
    • /text set [Carrier] [Number] - Receive messages to phone
    • /text set email [Address] - Receive messages to email address
    • /text watch user [Name] - Receive message when user logs on
    • /text watch server - Be alerted when Server comes online
    • /text watch item [Name] - Receive message when item is placed
    • /text watch word [Word] - Receive message when word is spoken
    • /text unwatch user [Name] - Unwatch a user
    • /text unwatch server - Unwatch the server
    • /text unwatch item [Name] - Unwatch an item
    • /text disable - Disable texts while logged on
    • /text enable - Enable texts while logged on
    • /text limit [Number] - Limit number of texts received each day
    • /text list carriers - List supported Carriers
    • /text list users - List current Users
    • /text list watch - List who you are watching
    Text Commands:
    • pl - Retrieve a full list of Players currently online
    • find [Player] - See if the specific Player is on (useful for large servers)
    • tell [Player] [Message] - Whisper to an online Player
    • say [Message] - Broadcast a message to the Server
    Permission Nodes:
    • textplayer.text - Needed to message a user
    • textplayer.textadmin - Needed to message user who has textplayer.admin node
    • textplayer.admin - Distinguishes user as an admin (need to run commands through text)
    • textplayer.use - Needed to set your number/email
    • textplayer.watch.user - Needed to watch/unwatch a user
    • textplayer.watch.server - Needed to watch/unwatch the server
    • textplayer.watch.item - Needed to watch/unwatch a user
    • textplayer.listusers
    • textplayer.free - No charge to send texts
    Tutorial:


    ToDo:
    • Add support for many more carriers
    • Add many more events
    • Add list watch command
    Changelog:
    Old Versions + ChangeLog can be found at Download Page
    Show Spoiler

    Version 0.9 (7/16/2011)
    • Added watch word
    • Checks for correct email/number format
    • Supports 11 digit numbers
    • Changed "/text add" to "/text set"
    • Added support for messages that start "RE:"
    • Added support for nTelos and Pc-Mobile
    Version 0.8.1 (6/28/2011)
    • Added IMAP Connection refresher
    Version 0.8 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Added list watch command
    Version 0.7 (6/15/2011)
    • Cleaned up/decoded emails before reading (now console commands should work fine)
    • Added new gateways which are automatically addded to sms.gateways
    • Added support for Permissions 2
    Version 0.6.1 (6/13/2011)
    • Fixed permissions
    • Fixed email support
    Version 0.6 (6/12/2011)
    • Readded ports
    • Added confirmation text on setting number
    • Added new text commands (tell, find)
    Version 0.5.3 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 0.5.2 (6/4/2011)
    • Fixed log off notifications
    • Disabled /stop command through text
    Version 0.5.1 (6/3/2011)
    • Various fixes and code cleanup
    Version 0.5 (6/3/2011)
    • Added Essentials support
    • Added notification for when user logs off
    • Allow sending texts back to server (chatting/running commands)
    Version 0.4.1 (5/4/2011)
    • Updated to iConomy 5
    • Added a few carriers
    Version 0.4 (4/29/2011)
    • Added griefer alert for tnt, lava, and fire
    • Added anti-spam feature (limit max amount of texts received each day)
    • Added option to charge users to text player or admin
    • Fixed Null Pointer Exception error on player join
    • Fixed error "Network email not supported"
    Version 0.3 (4/19/2011)
    • Improved Security
    • Eliminated Lag
    • Distinguished Admins from normal users (have node textplayer.admin)
    • Must have node textplayer.textadmin to send a msg to an admin
    • Allowed option of setting emails to come from a custom email address (like your servers email)
    • Added various providers
    Version 0.2 (4/18/2011)
    • Encrypted phone numbers and emails
    • Added various providers
    Version 0.1 (4/16/2011)
    • Initial Release
     
    LimitedWard, ACStache, woodzy and 6 others like this.
  2. Offline

    MiracleM4n

    The text I need to send is to include just : enable : correct? I tried this and it is not working.
     
  3. Offline

    Codisimus

    maybe its the way your service provider handles the messages, could I log on to your server and try my number to see if I can get it to work
     
  4. Offline

    MiracleM4n

    Yes WIP.D3GN.NET (I am using it with Email only ATM that is what is not working)

    Whats your IGN so I can add it to permissions

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

    Codisimus

    its codisimus
     
  6. Offline

    jamescosten

    Im a little confused, it happens often. What do i put in the config file : could you please give me an example of one that works. I may be missing somethin.
     
  7. Offline

    Millvarine

    I keep getting this error
    09:16:02 [INFO] Could not read incoming mail!
    09:16:02 [SEVERE] javax.mail.AuthenticationFailedException: Invalid credentials f5if4859276qck.116
    09:16:02 [SEVERE] at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:660)
    09:16:02 [SEVERE] at javax.mail.Service.connect(Service.java:295)
    09:16:02 [SEVERE] at TextPlayer.Mailer$2.run(Mailer.java:131)
    >

    and my email config file
     

    Attached Files:

  8. Offline

    sam salter

    Every time i try /test xpoisonx hey
    i get this

    15:20:48 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to TextPlayer
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    at TextPlayer.User.isAdmin(User.java:49)
    at TextPlayer.TextPlayerPlayerListener.onPlayerCommandPreprocess(TextPlayerPlayerListener.java:190)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:271)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:706)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    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:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  9. Offline

    Drmsi9292

    I second this. Everything else works fine for me right now, but this final bit seems to not work. I got a text from my server email confirming the link, but I get this error every time I try to /text myself.
     
  10. Offline

    woodzy

    @Drmsi9292
    @sam salter
    i also had this error i forgot to add the gmail account info doing this should fix it look on page 15 of this thread i made a small "how to"
     
  11. Offline

    acetech09

    Is it a static link that would work with CraftBukkitUpToDate?

    Bug:
    Code:
    09:42:12 [INFO] [TextPlayer] Moving Files... Please Reload Server
    09:42:12 [INFO] [TextPlayer] Moving Files... Please Reload Server
    09:42:12 [SEVERE] Exception in thread "Thread-16"
    09:42:12 [SEVERE] java.lang.NoClassDefFoundError: javax/mail/Session
    09:42:12 [SEVERE]     at TextPlayer.Mailer$2.run(Mailer.java:129)
    09:42:12 [SEVERE] Caused by: java.lang.ClassNotFoundException: javax.mail.Session
    09:42:12 [SEVERE]     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    09:42:12 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    09:42:12 [SEVERE]     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    09:42:12 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    09:42:12 [SEVERE] Error occurred while enabling TextPlayer v0.6 (Is it up to date?): com/nijikokun/register/payment/Methods
    java.lang.NoClassDefFoundError: com/nijikokun/register/payment/Methods
        at TextPlayer.PluginListener.<init>(PluginListener.java:16)
        at TextPlayer.TextPlayer.onEnable(TextPlayer.java:55)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.register.payment.Methods
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        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(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 12 more
    09:42:12 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    09:42:12 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    09:42:12 [INFO] CraftBukkitUpToDate version 2.5.5 is enabled!
    09:42:12 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    09:42:12 [SEVERE]     ... 1 more
    
    Happened when I first tried to install it, but after server restart it went away.

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

    morder269

    I have no idea about how that works, but does it help that i send a sms to you or anything?
     
  13. Offline

    acetech09

    Suggestion: Perhaps adding a configurable option to disable email?
     
  14. Offline

    morder269

    Why not?
     
  15. Offline

    acetech09

    Ok when I tried it, it said send failed and returned this error in the console:
    Code:
    11:46:11 [SEVERE] javax.mail.internet.AddressException: Illegal address in string ``''
    11:46:11 [SEVERE]     at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114)
    11:46:11 [SEVERE]     at TextPlayer.Mailer$1.run(Mailer.java:99)
    >
    
    when I used command /text add At&t 760413****

    (I obfuscated my number)
     
  16. Offline

    sonofchocula

    You should add GoogleVoice support, I believe their default gateway is:

    [email protected]

    Seems like it would be pretty easy to slap in...

    EDIT:My apologies kind sir, this appears to be impossible at the moment due to Google not offering an SMS gateway.
     
  17. Offline

    Codisimus

    @jamescosten
    hopefully today I will be making a video of how to set this up
    @Millvarine
    I'm sure you know this but the file should be called email.properties not emails.txt (notice the s) But perhaps try reinputting the username and password (one of them must be wrong)
    @sam salter
    @Drmsi9292
    It looks like I got some bad advice on how to use the permissions API hopefully I can find out how to correctly use it soon
    @acetech09
    This is already included in CraftBukkitUpToDate
    @morder269
    unless you are about to send a text to an email address it won't work (a lot of carriers don't support it)
    not sure wut you mean by this.
    try setting it to /text add email 760413****@txt.att.net
    @sonofchocula
    Yes, I have been waiting for google to support sms gateways, thanks for the info.
     
  18. Offline

    acetech09

    Code:
    12:27:29 [SEVERE] javax.mail.internet.AddressException: Illegal address in string ``''
    12:27:29 [SEVERE]     at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114)
    12:27:29 [SEVERE]     at TextPlayer.Mailer$1.run(Mailer.java:99)
    
    Is what happened when I tried /text add email <mynumber>@txt.att.net
     
  19. Offline

    Codisimus

    Can you post your save file?
     
  20. Offline

    acetech09

    That's the only save file I have in the TextPlayer folder.

    and what I mean by 'disable email' is the 'Could not read incoming mail!' message that I get whenever I reload your plugin after leaving the mail configuration file at default.
     

    Attached Files:

  21. Offline

    Codisimus

    everything works fine for me, Is your email.properties file filled in properly?
     
  22. Offline

    acetech09

    when I said 'and by what I mean' is when I made the suggestion earlier that you asked for clarification for.
    The origional suggestion was to have an option that silences email read errors when the email.properties isnt filled in correctly.


    That .save file was what you asked for when I told you about a bug.
     
  23. Offline

    Codisimus

    @MiracleM4n
    Fixed enabling email addresses, will update soon

    ok in the next version it will only show that message if you have notify in server log set set to true in the config file

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

    acetech09

    There's still that bug I was talking about, where adding a number would fail to send the confirmation text.
    Code:
    12:27:29 [SEVERE] javax.mail.internet.AddressException: Illegal address in string ``''
    12:27:29 [SEVERE]     at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114)
    12:27:29 [SEVERE]     at TextPlayer.Mailer$1.run(Mailer.java:99)
    
     
  25. Offline

    woodzy

    @Codisimus
    in getting a 0.6 is it uptodate?
    then it errors out
     
  26. Offline

    Codisimus

    could you show me the error log?
     
  27. Offline

    woodzy

    Code:
    2011-06-13 05:39:41 [SEVERE] [TextPlayer] Missing value for SMTPPort
    2011-06-13 05:39:41 [SEVERE] [TextPlayer] Please regenerate config and email property files
    2011-06-13 05:39:41 [SEVERE] Error occurred while enabling TextPlayer v0.6 (Is it up to date?): null
    java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Integer.java:443)
        at java.lang.Integer.parseInt(Integer.java:514)
        at TextPlayer.TextPlayer.loadSettings(TextPlayer.java:155)
        at TextPlayer.TextPlayer.onEnable(TextPlayer.java:49)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:345)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:247)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Code:
    2011-06-13 05:40:49 [INFO] TextPlayer 0.5.3 is enabled!
    2011-06-13 05:40:49 [INFO] [TextPlayer] Successfully linked with Permissions!
    on its way!!
    oh wait i shouild of read it first let me fix it
     
  28. Offline

    ssddttaa

    It does not work for me for some reason. I have tried it at least 10 times today.
    Here is the error log it always gives me when the server tries to send a confirmation text.
    Code:
    [INFO] Sending Message...
    2011-06-12 21:34:16 [SEVERE] javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;
      nested exception is:
        java.net.ConnectException: Connection timed out: connect
    2011-06-12 21:34:16 [SEVERE]     at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
    2011-06-12 21:34:16 [SEVERE]     at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
    2011-06-12 21:34:16 [SEVERE]     at javax.mail.Service.connect(Service.java:295)
    2011-06-12 21:34:16 [SEVERE]     at TextPlayer.Mailer$1.run(Mailer.java:103)
    2011-06-12 21:34:16 [SEVERE] Caused by: java.net.ConnectException: Connection timed out: connect
    2011-06-12 21:34:16 [SEVERE]     at java.net.PlainSocketImpl.socketConnect(Native Method)
    2011-06-12 21:34:16 [SEVERE]     at java.net.PlainSocketImpl.doConnect(Unknown Source)
    2011-06-12 21:34:16 [SEVERE]     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    2011-06-12 21:34:16 [SEVERE]     at java.net.PlainSocketImpl.connect(Unknown Source)
    2011-06-12 21:34:16 [SEVERE]     at java.net.SocksSocketImpl.connect(Unknown Source)
    2011-06-12 21:34:16 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-06-12 21:34:16 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-06-12 21:34:16 [SEVERE]     at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288)
    2011-06-12 21:34:16 [SEVERE]     at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
    2011-06-12 21:34:16 [SEVERE]     at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
    2011-06-12 21:34:16 [SEVERE]     ... 3 more
    2011-06-12 21:34:16 [INFO] Send Failed
    2011-06-12 21:37:28 [INFO] Connection reset
    
     
  29. Offline

    woodzy

    @Codisimus
    i mad all new files setit up and the same issue
    2011-06-13 05:52:22 [INFO] TextPlayer 0.6 is enabled!
    2011-06-13 05:52:22 [INFO] [TextPlayer] Successfully linked with Permissions!
    2011-06-13 05:52:23 [INFO] Error reading email, Message thrown out
    2011-06-13 05:52:24 [INFO] Error reading email, Message thrown out
    2011-06-13 05:52:24 [INFO] Error reading email, Message thrown out
    2011-06-13 05:52:24 [INFO] Error reading email, Message thrown out
    I NEVER SENT ONE!
    i cant do anything ingame cant tepy /text just errors out ingame no consol side error
     
  30. Offline

    Codisimus

    @acetech09
    Still cant figure this out can I hop on your server?
    @ssddttaa
    have you made an email account for it yet?
    @woodzy
    Could I logon to your server to try it out
     
    woodzy likes this.
  31. Offline

    acetech09

    it uses hamachi at the moment, but if you dont mind that, start a conversation and sure.
     

Share This Page