mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-30 20:13:31 +00:00
FEAT: Damage on server
This commit is contained in:
@@ -17,6 +17,11 @@ ArgumentsSettings::ArgumentsSettings(int numArguments, char** arguments)
|
||||
levelName = std::string(arguments[a+1]);
|
||||
a++; // Skip the next argument since it's part of this one.
|
||||
}
|
||||
} else if(strcmp(arguments[a], "--gamemode") == 0) {
|
||||
if(a + 1 < numArguments) {
|
||||
gamemode = std::string(arguments[a+1]);
|
||||
a++; // Skip the next argument since it's part of this one.
|
||||
}
|
||||
} else if(strcmp(arguments[a], "--leveldir") == 0) {
|
||||
if(a + 1 < numArguments) {
|
||||
levelDir = std::string(arguments[a+1]);
|
||||
@@ -51,6 +56,9 @@ std::string ArgumentsSettings::getServerKey() {
|
||||
std::string ArgumentsSettings::getCachePath() {
|
||||
return cachePath;
|
||||
}
|
||||
std::string ArgumentsSettings::getGamemode() {
|
||||
return gamemode;
|
||||
}
|
||||
std::string ArgumentsSettings::getLevelDir() {
|
||||
return levelDir;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user