Comments (6)
You're using the function incorrectly. The ping
function takes the port as a separate parameter:
dart_minecraft/lib/src/ping/server_ping_io.dart
Lines 32 to 33 in 54542c2
from dart_minecraft.
are you able to help me how to get this feature to work properly? because some servers actually only display, but most are not displayed.
from dart_minecraft.
I'm not sure what you're asking exactly. I have told you exactly how to use the ping
function, which as far as I know works in all cases. Without any more debug information from your side about which servers are not showing up, if its because of the port, or other information that might be relevant, I can't do much. So, please give me more information or I simply can't help you.
from dart_minecraft.
When I run this function, I get an error saying 'ServerStatus' not found
Building with Flutter multidex support enabled.
lib/screens/server_list_screen.dart:40:10: Error: Type 'ServerStatus' not found.
Future ping(String address) async {
^^^^^^^^^^^^
lib/screens/server_list_screen.dart:171:8: Error: Type 'ServerStatus' not found.
Future pingServer(String address) async {
^^^^^^^^^^^^
lib/screens/server_list_screen.dart:127:40: Error: 'ServerStatus' isn't a type.
return FutureBuilder(
^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
this is my full code:
from dart_minecraft.
ServerStatus
is not a type and I'm not sure where you got that from. The ping
function from the library returns a ResponsePacket?
in a Future
.
You still haven't fixed the actual issue you had with the fix I told you, by passing the int as a separate parameter to the ping
function. That should be the first thing to do.
All of the questions so far have been normal Dart questions that seem to arise because of unfamiliarity with the language, so I'd recommend asking on a dedicated Dart help forum about these questions.
from dart_minecraft.
can you add support for bedrock edition servers?
from dart_minecraft.
Related Issues (8)
- Improvement: Refactor code to match effective_dart guidelines HOT 1
- NBTReader.getContentEndian() returns Endian.big without condition HOT 1
- Can't read mcstructure file (it is nbt file) HOT 2
- can you code plugins in minecraft using dart? HOT 2
- can't read file HOT 2
- Can't ping server HOT 1
- Can't read player.dat file on web
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart_minecraft.