Is there a plugin where if you /tweet[Number] will automatically tweet on your Twitter account while in the game??
please dont be shallow, give us all the details, everything you can think of... do you want it to just tweet random things while you are in game? or your all of your actions? or whatever you typed in chat? what does [number] meant, do you want it to stay enabled after number of relogs? max numbers of tweets? or what? if you want a plugin that works like how you envisioned it, please tell us how you want it to be, we cant read your minds and you cant expect someone to make something for you the way you wanted it to be without telling them how
[Number] 1:Hello Twitter 2: Join and so on You can add it on the number that represents what you're going to tweet where you can edit on the Plugin.yml If I were to start a UhC and wanted to say that you can now join,server is unwl-ed ...
If you know how to code, use this code: PHP: public function onCommand(CommandSender $sender, Command $cmd, $label, array $args) { if($cmd->getName() === "tweet") { $message1 = $this->getConfig()->get("Message-1"); $message1 = $this->getConfig()->get("Message-2"); $message1 = $this->getConfig()->get("Message-2"); if(isset($args[0])) { switch($args[0]) { case "1": $sender->getLevel()->getServer()->broadcastMessage($message1); break; case "2": $sender->getLevel()->getServer()->broadcastMessage($message2); break; case "3": $sender->getLevel()->getServer()->broadcastMessage($message3); break; default: $sender->getLevel()->getServer()->broadcastMessage("§cThat Tweet ID cannot be found!"); break; } } else { $sender->sendMessage("§cPlease enter a Tweet message ID!"); } }}
sorry for going offtopic, now you mentioned it i just cant resist not saying that what if i want to have 100 messages? or 1 billion? hardcoding it is bad, it's very very very bad you should do something like PHP: $message = $this->getConfig()->get('Message-'.$args[0],false);if($message)$this->sendTweet($message); this way the user can have 100 or 1000 of messages as much as they can fill, also if you only want your user to only use numeric, just use a check or smth(but who dosent want shortcuts? "/tweet start" make more sense then "/tweet 1" right?)
Twitter has it's own API. You have to create a class named OAuth.php or something of that sort... You can see some examples here: https://github.com/J7mbo/twitter-api-php
Also make sure you shade your libraries either manually or automatically to your namespace before releasing.
I wish Twitter has WebHooks, it's easy to transmit Data such as messages and Twitter credentials. CURL PHP function will help with that.
i rather not, that just encourages lazy programming, see discord: even tho they have a bot API people will just use their webhook as a pmmp -> discord bridge because people are just lazy also read the docs, it DOES have a web HTTP based api
There's one problem though. Users must create an application allowing read/write access of their Twitter account... So in order to do this, you must tell the user to do such and such with their account before the plugin can work properly.
Or host a website, use Twitter API webflow to redirect users to your application and give the plugin a token that executes through your website.
made something https://github.com/ThunderDoesPlugins/Twix not as exactly requested, but i hope this allows people to depend on it to fulfill this request