[FREE] LMGTFY | Let players answer questions with SE links

Status
This thread has been locked.

Nikl

Feedback score
0
Posts
19
Reactions
8
Resources
0
☛ Support chat on Discord

Let Me Google That For You

If you don't know what the name means click here, i'll show you ;)



Usage: /lmgtfy <query>
Or shorter: /lmg <query>
Example: /lmg whatever you want to google comes here

Using this command will create a lmgtfy-link (optionally shortened). After successful creation the issuing player will be send a message containing two clickable parts:

(1) Click to send the link in chat
(2) Click to open the link yourself

When the player clicks on (1), he will send a configurable message in chat, containing a click event for everyone else to open the link with. This action can be configured to have a cooldown.

1.jpg 2.jpg 3.jpg 4.jpg 5.jpg 6.jpg


To skip lmgtfy.com and search in google directly:
/google <query>
Example: /google this search will be done directly in google.com

There also are:
/baidu
/yahoo
/bing
/duckduckgo
or /ddg
/yandex


In the configuration file you can customize the lmgtfy link to search in yahoo, bing or duckduckgo instead of google.

Shortening of the link:
This plugin can shorten the created link via the free shortening service is.gd by Memset Ltd. This makes the links look nicer and they do not show directly, that they link to lmgtfy.com. When using shortening, please note the rate limits of the service. If the shortening fails, the full link will be used by the plugin.

You can opt out shortening in the configuration file.

To use any of the commands you need to have the permission lmgtfy.use. It is given by default to all players.

LMGTFY is on bStats.

All messages can be customized in the language file.
 

Attachments

  • 1.jpg
    1.jpg
    47 KB · Views: 78
  • 2.jpg
    2.jpg
    48.4 KB · Views: 77
  • 3.jpg
    3.jpg
    60.4 KB · Views: 80
  • 4.jpg
    4.jpg
    24 KB · Views: 75
  • 5.jpg
    5.jpg
    46.7 KB · Views: 77
  • 6.jpg
    6.jpg
    69.4 KB · Views: 75
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Hunting_Potato

Developer
Deactivated
Feedback score
11
Posts
745
Reactions
425
Resources
0
Potentially dangerous encouraging players to send out shortened links.
 

Nikl

Feedback score
0
Posts
19
Reactions
8
Resources
0
Potentially dangerous encouraging players to send out shortened links.
The links that are being shortened can only contain a search at one of the SEs or at LMGTFY. Or do you mean the search itself could be not appropriate?
 

Hunting_Potato

Developer
Deactivated
Feedback score
11
Posts
745
Reactions
425
Resources
0
The links that are being shortened can only contain a search at one of the SEs or at LMGTFY. Or do you mean the search itself could be not appropriate?
Someone can shorten a link to an iplogger and send it to people. It would be seen as normal on a server who uses this plugin.
 

Nikl

Feedback score
0
Posts
19
Reactions
8
Resources
0
Someone can shorten a link to an iplogger and send it to people. It would be seen as normal on a server who uses this plugin.
That won't work as I hardcoded the links to the search engines. Any part of the link that can be given by the player is ONLY the search string and is encoded as a search parameter. It is impossible to let my plugin create a shortened link to an iplogger.

Edit: I just reread you last post and maybe i misunderstood it. Do you mean that some players could send shortened links in chat and others would be used to it (because of my plugin) and click on the potentially dangerous links?
I see your point there and I will do some changes to this plugin after my last exam. If I remove the feature that players can send the links in chat as a normal looking chat message and instead let the plugin itself send the link to everyone, clearly marking it as a plugin message and naming the player that issued the link, would that resolve your issue? I could make the message containing the link only via a click event and additional information in a hover event. This way players will not get used to shortened links, because the link itself will never show up in chat. Additionally it becomes impossible to imitate the plugin message (plugin prefix + click/hover events).
Thank you for that comment!
 
Last edited:

Nikl

Feedback score
0
Posts
19
Reactions
8
Resources
0
Someone can shorten a link to an iplogger and send it to people. It would be seen as normal on a server who uses this plugin.
I just updated the plugin. The link does not show up in chat anymore. The message in chat is clearly marked as a plugin message, names the issuing player and includes the link only inside a click event. Additionally I added a configurable cooldown to sending the links in chat to prevent spamming.
 

Flavourized

Feedback score
0
Posts
0
Reactions
6
Resources
0
Like an option in the configuration file for an URL with a placeholder for the parsed query? I could add that.


Yeah exactly. The links dont work, they are just for example.


If i go to a wikia page (example) and type "stuff and more stuff" for my search term, it will go to this url:
Code:
example.wikia.com/wiki/Special:Search?search=stuff+and+more+stuff

If a player in game types "/wiki this is an example", your plugin would parse each of these args and then return the formatted url:

Code:
parse spaces " " as plus "+"
example.wikia.com/wiki/Special:Search?search=%arg1%+%arg2%+ . . .
%arg1% = this
%arg2% = is
%arg3% = an
%arg4% = example


example.wikia.com/wiki/Special:Search?search=this+is+an+example
 
Status
This thread has been locked.
Top