Code Monkey home page Code Monkey logo

Comments (37)

SalmonDE avatar SalmonDE commented on June 3, 2024 2

@Ishannaik The line "Raw:" outputs what the serverlist returned, and it says "Error: no server key" which means there really wasn't a server key given.

Could you try putting your key inside " "? I'm really not sure why this issue occurs

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024 1

Worked THANKS BRO

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

Could tell me what you get from visiting this url on your server machine? Oh, and don't forget to insert the API key at the end. :)
https://minecraftpocket-servers.com/api/?object=servers&element=voters&month=current&format=json&limit=5&key=[YOUR-API-KEY]

from topvoter.

hqn21 avatar hqn21 commented on June 3, 2024

@SalmonDE I have the same problem
I'm sure i enter the API KEY into config.yml :)))))))))))))))))))))))))

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

Could you try the same as above? And if you wouldn't mind, I think an E-Mail conversation would be faster and more reliable. ;) Contact me at [email protected]

from topvoter.

EndreEndi avatar EndreEndi commented on June 3, 2024

@NycuRO for me working this plugin:)

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

same issue not working for me
when i did the link of the api key
this one https://minecraftpocket-servers.com/api/?object=servers&element=voters&month=current&format=json&limit=500&key=[YOUR-API-KEY]

{ "name":"InPocket", "address":"inpocketpe.ddns.net", "port":"19132", "month":"201703", "voters": [ { "nickname":"Ishannaik", "votes":"17" },	{ "nickname":"lavaboy1216", "votes":"9" },	{ "nickname":"Khasikage", "votes":"6" },	{ "nickname":"IRANKING224477", "votes":"3" },	{ "nickname":"BjornNL14", "votes":"2" },	{ "nickname":"PlayerMan2015", "votes":"2" },	{ "nickname":"antonyFTPake ", "votes":"1" },	{ "nickname":"ThatDonutCookie", "votes":"1" },	{ "nickname":"VigorousCow70", "votes":"1" },	{ "nickname":"Duckiedaderpy ", "votes":"1" },	{ "nickname":"Wolfalpha ", "votes":"1" },	{ "nickname":"NewSepticPro", "votes":"1" },	{ "nickname":"Spring4Life", "votes":"1" },	{ "nickname":"IamDabbingStone", "votes":"1" },	{ "nickname":"KingPheonixXYZ", "votes":"1" },	{ "nickname":"BIOHUNTER", "votes":"1" },	{ "nickname":"DUh_ITS_PATHER", "votes":"1" },	{ "nickname":"Swag_Lord", "votes":"1" },	{ "nickname":"Genetix", "votes":"1" },	{ "nickname":"YoutubeJLT_YT", "votes":"1" },	{ "nickname":"girl8876", "votes":"1" },	{ "nickname":"TWSmiles", "votes":"1" },	{ "nickname":"WAJEEH203_YT", "votes":"1" },	{ "nickname":"jonjon", "votes":"1" },	{ "nickname":"Foxyxx376", "votes":"1" },	{ "nickname":"Musical_Rachel", "votes":"1" },	{ "nickname":"ShawnOboy", "votes":"1" },	{ "nickname":"Abdumalik15", "votes":"1" },	{ "nickname":"Anonymouse10638", "votes":"1" },	{ "nickname":"Mcwad56", "votes":"1" },	{ "nickname":"AlexKnight", "votes":"1" },	{ "nickname":"XFactorLive", "votes":"1" },	{ "nickname":"LukeDoezMC", "votes":"1" },	{ "nickname":"DrepTheDino", "votes":"1" },	{ "nickname":"NINJA_235", "votes":"1" },	{ "nickname":"mike000041", "votes":"1" },	{ "nickname":"PartsPirate", "votes":"1" },	{ "nickname":"ThoughtSauce877 ", "votes":"1" },	{ "nickname":"Yair2099 ", "votes":"1" },	{ "nickname":"Shqdow7o7", "votes":"1" },	{ "nickname":"Natasha_Chan", "votes":"1" },	{ "nickname":"Supersaiyam", "votes":"1" },	{ "nickname":"SakurakoSaki", "votes":"1" },	{ "nickname":"cute_tom", "votes":"1" },	{ "nickname":"Eibil_GameYT", "votes":"1" },	{ "nickname":"JamesXGhoul", "votes":"1" },	{ "nickname":"KCKawaiiKid_Saki", "votes":"1" },	{ "nickname":"Thunder4359", "votes":"1" },	{ "nickname":"ISkyTryk", "votes":"1" },	{ "nickname":"EnderDragonXfire", "votes":"1" },	{ "nickname":"Jorti1boombox", "votes":"1" },	{ "nickname":"WaterPlanet323", "votes":"1" },	{ "nickname":"Ishan", "votes":"1" },	{ "nickname":"GoldenXPlayz", "votes":"1" },	{ "nickname":"DeathReaper655", "votes":"1" },	{ "nickname":"BluBeryyy", "votes":"1" },	{ "nickname":"Xxopmike778Xx", "votes":"1" },	{ "nickname":"XXMak_Is_BackXx", "votes":"1" },	{ "nickname":"NewYorkFan123", "votes":"1" },	{ "nickname":"ALPHAERDE45", "votes":"1" },	{ "nickname":"MQueenM", "votes":"1" },	{ "nickname":"NiceTheaKing", "votes":"1" },	{ "nickname":"XxRaphaxX", "votes":"1" },	{ "nickname":"ArthurTheMightyP", "votes":"1" },	{ "nickname":"happyman55552", "votes":"1" },	{ "nickname":"Viper2232", "votes":"1" },	{ "nickname":"_Robert03_", "votes":"1" }	] }

but the console shows

[Tesseract] [05:31:01] WARNING> [TopVoter] Error while processing data from the serverlist!
[Tesseract] [05:31:01] ERROR> [TopVoter] Couldn't process data! No array was returned!
[Tesseract] [05:31:01] ERROR> [TopVoter] Raw: Error: no server key
[Tesseract] [05:31:02] NOTICE> [TopVoter] No update available! :)

from topvoter.

Aericio avatar Aericio commented on June 3, 2024

Are you sure your API key is in ' '?
ex: API-Key: '3921uej19x1hdi'

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

yep

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

API-Key: '*****'
its in the ' '

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

Nice to hear it worked @Ishannaik ! Could you try this, @NycuRO and @DKQoo2 ? I'll close this issue for now.

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

btw when i try to change colour of the players Text: "{player} ยง4{votes}" it says same error and with Header too i cant seem to change it

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

btw no thats not the issue when ever u try to add a colour in the header or the text
it causes the error i think its because of the default green and orange colour?

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@Ishannaik No I think that means the config file gets corrupted when you save it with these characters.

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

yea pls fix that

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@Ishannaik I think this is not possible (or not nice). A corrupted config should be deleted and replaced by a new one generated by the plugin.

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

but i cannot change the colours of the text because of this bug

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@Ishannaik Could you check in what character encoding your config file is saved? Is it UTF-8?

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

what is that?

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

how do i see what code is that?

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@Ishannaik With programs like NotePad++

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

i did encode in UTF-8 And its same

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

Error Sigh
Notice: Undefined variable: apis in phar:///root/Tests/plugins/TopVoter.phar/src/SalmonDE/Updater/UpdateManager.php on line 63 [Tesseract] [15:08:30] WARNING> [TopVoter] An update is available but the API version of your server isn't supported by it. [Tesseract] [15:08:30] WARNING> [TopVoter] API version of the server: 3.0.1 [Tesseract] [15:08:30] WARNING> [TopVoter]

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@Ishannaik This actually isn't an error but a warning that an update is available, but the API version of your server software is unsupported. I added this because I @only code with pmmp. I cannot test my plugins on every software and adjust it.

But the undefined apis variable is a bug made by me, thanks! :D

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@Ishannaik Also, could you tell me what operating system you run your server on? Windows, Linux, Android ...

from topvoter.

SlothyOne avatar SlothyOne commented on June 3, 2024
#Position of the floating text particle
Pos:
  X: 121
  "Y": 9
  Z: 212
#Worlds which will show the particle
Worlds: [Spawn]
#API-Key of your server provided by minecraftpocket-servers.com
API-Key: "(API code removed by @Aericio)"
#Amount of voters who shall be shown (Max: 500)
Amount: 5
#Update interval of the query to the server in seconds
#SHOULD BE ATLEAST 180! OUTPUT IS CACHED FOR 3 MINUTES!
Update-Interval: 180
#Header of the floating text particle
Header: "Top voters of the month <3"
#Text for every row after the header
Text: "{player} §9{votes}"
#Enable automatically updating to new versions
Auto-Update: true

im having trouble setting this up..this the config i edited,did i miss something?

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

Linux

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@Ishannaik Can you give me the output of file -bi config.yml?

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@RyanClarke2 What exactly isn't working for you?

from topvoter.

SlothyOne avatar SlothyOne commented on June 3, 2024

im not sure..it looks all good for the most part,i dont see any errors or anything.it just isnt showing the floating text when i enter the server.

from topvoter.

SalmonDE avatar SalmonDE commented on June 3, 2024

@RyanClarke2 Is your world named Spawn and did you type in the correct coordinates? And I'd like you to create an own issue with your problem to keep the overview, because this issue already is full of comments.

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

sorry i wasnt on these days but how do i get the outupt

from topvoter.

Aericio avatar Aericio commented on June 3, 2024

@Ishannaik I believe you do file -bi config.yml where TopVoter's config files are.

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

uh in the console?

from topvoter.

Aericio avatar Aericio commented on June 3, 2024

You're using Linux right? Open terminal (not pocketmines), cd into where TopVoter's configuration files are, and run that command in terminal.

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

kk

from topvoter.

Ishannaik avatar Ishannaik commented on June 3, 2024

text/plain; charset=utf-8

from topvoter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.