Good morning, I need help in the code I am developing. What is this:
what gives me work is the .yml file, when created it creates one like this
but when you put the consumerkey, consumer secret does not detect it when you reload
that is detected when loading as I did here:
I need help please
Code:
on load:
if folder "plugins/TweetRevive" doesn't exists:
create folder "plugins/TweetRevive"
if file "plugins/TweetRevive/config.yml" doesn't exists:
send "&b&lSKYPVP&7: &cconfig.yml not found." to console
send "&b&lSKYPVP&7: &6Creating file config.yml..." to console
create file "plugins/TweetRevive/config.yml"
wf "ConsumerKey: " to "plugins/TweetRevive/config.yml"
wf "ConsumerSecret: " to "plugins/TweetRevive/config.yml"
wf "AccesToken: " to "plugins/TweetRevive/config.yml"
wf "SecretToken: " to "plugins/TweetRevive/config.yml"
set {tweet.revive::ConsumerKey1} to value "ConsumerKey:" get of "plugins/TweetRevive/config.yml"
set {tweet.revive::ConsumerSecret1} to value "ConsumerSecret:" get of "plugins/TweetRevive/config.yml"
set {tweet.revive::AccesToken1} to value "AccesToken:" get of "plugins/TweetRevive/config.yml"
set {tweet.revive::SecretToken1} to value "SecretToken:" get of "plugins/TweetRevive/config.yml"
else:
set {tweet.revive::ConsumerKey1} to value "ConsumerKey:" get of "plugins/TweetRevive/config.yml"
set {tweet.revive::ConsumerSecret1} to value "ConsumerSecret:" get of "plugins/TweetRevive/config.yml"
set {tweet.revive::AccesToken1} to value "AccesToken:" get of "plugins/TweetRevive/config.yml"
set {tweet.revive::SecretToken1} to value "SecretToken:" get of "plugins/TweetRevive/config.yml"
options:
ReviveTweet: Usuario respawneado : %arg-1% , Tiene 3 Minutos para ingresars
ServerIP: mc.grizzlyuhc.us [1.8.x/1.7.10]
on load:
twitter debug connect with consumer key "%{tweet.revive::ConsumerKey1}%", consumer secret "%{tweet.revive::ConsumerSecret1}%", access token "%{tweet.revive::AccesToken1}%" and secret token "%{tweet.revive::SecretToken1}%"
command /staffrevive [<player>]:
permission: revive.post
trigger:
tweet "{@ReviveTweet}%nl%%nl%{@ServerIP}"
send "&aYour tweet has been posted."
what gives me work is the .yml file, when created it creates one like this
but when you put the consumerkey, consumer secret does not detect it when you reload
that is detected when loading as I did here:
Code:
on load:
twitter debug connect with consumer key "%{tweet.revive::ConsumerKey1}%", consumer secret "%{tweet.revive::ConsumerSecret1}%", access token "%{tweet.revive::AccesToken1}%" and secret token "%{tweet.revive::SecretToken1}%"
I need help please