summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-03 20:45:08 +0200
committermadmaxoft <github@xoft.cz>2013-08-03 20:45:08 +0200
commit106308796d975351b4c5c05927d2790adf2da26a (patch)
tree5d2545b004e82a3a6366843d96867146738a0e6f
parentAdded cWorld::DoWithChunk() function. (diff)
parentRemoved all example ini files from Install. (diff)
downloadcuberite-106308796d975351b4c5c05927d2790adf2da26a.tar
cuberite-106308796d975351b4c5c05927d2790adf2da26a.tar.gz
cuberite-106308796d975351b4c5c05927d2790adf2da26a.tar.bz2
cuberite-106308796d975351b4c5c05927d2790adf2da26a.tar.lz
cuberite-106308796d975351b4c5c05927d2790adf2da26a.tar.xz
cuberite-106308796d975351b4c5c05927d2790adf2da26a.tar.zst
cuberite-106308796d975351b4c5c05927d2790adf2da26a.zip
-rw-r--r--Install/.gitignore3
-rw-r--r--Install/Zip2008.list7
-rw-r--r--Install/settings.example.ini31
-rw-r--r--Install/users.example.ini8
-rw-r--r--Install/webadmin.example.ini6
-rw-r--r--MCServer/README.txt18
-rw-r--r--MCServer/banned.example.ini (renamed from Install/banned.example.ini)6
-rw-r--r--MCServer/groups.example.ini (renamed from Install/groups.example.ini)0
-rw-r--r--MCServer/groups.ini17
-rw-r--r--MCServer/users.example.ini (renamed from MCServer/users.ini)0
-rw-r--r--MCServer/whitelist.example.ini (renamed from Install/whitelist.example.ini)12
-rw-r--r--Nightbuild2008.cmd3
-rw-r--r--UpdateVersions.cmd39
-rw-r--r--source/GroupManager.cpp5
-rw-r--r--source/Server.cpp23
15 files changed, 40 insertions, 138 deletions
diff --git a/Install/.gitignore b/Install/.gitignore
index 4f8f2e7cb..3b0a53050 100644
--- a/Install/.gitignore
+++ b/Install/.gitignore
@@ -1,3 +1,4 @@
MCServer.exe
*.7z
-*.tag \ No newline at end of file
+*.tag
+*.example.ini \ No newline at end of file
diff --git a/Install/Zip2008.list b/Install/Zip2008.list
index b611bf832..0b45d81f3 100644
--- a/Install/Zip2008.list
+++ b/Install/Zip2008.list
@@ -6,13 +6,10 @@
..\MCServer\items.ini
..\MCServer\monsters.ini
MCServer*debug.cmd
-banned.example.ini
-groups.example.ini
+*.example.ini
Lua-LICENSE.txt
LuaExpat-license.html
LuaSQLite3-LICENSE.txt
MersenneTwister-LICENSE.txt
settings.example.ini
-users.example.ini
-webadmin.example.ini
-whitelist.example.ini \ No newline at end of file
+webadmin.example.ini \ No newline at end of file
diff --git a/Install/settings.example.ini b/Install/settings.example.ini
deleted file mode 100644
index 46f92ef74..000000000
--- a/Install/settings.example.ini
+++ /dev/null
@@ -1,31 +0,0 @@
-[Server]
-Port=25565
-MaxPlayers=42
-Description=MCServer - Slightly more custom!
-
-[Worlds]
-DefaultWorld=world
-;World=world_sexy
-
-[Plugins]
-NewPlugin=Core
-NewPlugin=ChatLog
-
-[HelpPlugin]
-ShowPluginNames=1
-
-[Physics]
-Water=0
-
-[Redstone]
-SimulateRedstone=0
-
-[Monsters]
-AnimalsOn=0
-AnimalSpawnInterval=10
-Types=Spider,Chicken,Cow,Pig,Sheep,Squid,Enderman,Zombiepigman,Cavespider,Creeper,Ghast,Silverfish,Skeleton,Slime,Spider,Zombie
-
-[Authentication]
-Server=session.minecraft.net
-Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%
-Authenticate=0
diff --git a/Install/users.example.ini b/Install/users.example.ini
deleted file mode 100644
index 2065d3e37..000000000
--- a/Install/users.example.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-[SomeAdmin]
-Groups=Admins
-
-[FancyModerator]
-Groups=Moderators
-
-[ImportantPerson]
-Groups=Vips \ No newline at end of file
diff --git a/Install/webadmin.example.ini b/Install/webadmin.example.ini
deleted file mode 100644
index 5d6b24063..000000000
--- a/Install/webadmin.example.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[WebAdmin]
-Enabled=1
-Port=8080
-
-[User:admin]
-Password=admin \ No newline at end of file
diff --git a/MCServer/README.txt b/MCServer/README.txt
new file mode 100644
index 000000000..cd0467ae1
--- /dev/null
+++ b/MCServer/README.txt
@@ -0,0 +1,18 @@
+/============================\
+| Custom Minecraft Server |
+| Created by Kevin Bansberg |
+| A.K.A. FakeTruth |
+| Monsters by Alex Sonek |
+| A.K.A. Duralex |
+| Stuff by Mattes D |
+| A.K.A. _Xoft(o) |
+|============================|
+| Info: WWW.MC-SERVER.ORG |
+| WWW.AE-C.NET\n") |
+| WWW.RBTHINKTANK.COM |
+| Mail: faketruth@gmail.com |
+\============================/
+
+
+Compatible clients: 1.2.4, 1.2.5, 1.3.1, 1.3.2, 1.4.2, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.5, 1.5.1, 1.5.2, 1.6.1, 1.6.2
+Compatible protocol versions: 29, 39, 47, 49, 51, 60, 61, 73, 74
diff --git a/Install/banned.example.ini b/MCServer/banned.example.ini
index ba53ec59f..ceb71fe0b 100644
--- a/Install/banned.example.ini
+++ b/MCServer/banned.example.ini
@@ -1,3 +1,3 @@
-[Banned]
-;PlayerName=1
-
+[Banned]
+;PlayerName=1
+
diff --git a/Install/groups.example.ini b/MCServer/groups.example.ini
index 87b28b70d..87b28b70d 100644
--- a/Install/groups.example.ini
+++ b/MCServer/groups.example.ini
diff --git a/MCServer/groups.ini b/MCServer/groups.ini
deleted file mode 100644
index 87b28b70d..000000000
--- a/MCServer/groups.ini
+++ /dev/null
@@ -1,17 +0,0 @@
-[Admins]
-Permissions=*
-Color=c
-
-[Mods]
-Color=5
-Inherits=Vips
-Permissions=core.time,core.item
-
-[Vips]
-Permissions=core.teleport
-Color=2
-Inherits=Default
-
-[Default]
-Permissions=core.build,core.help,core.playerlist,core.pluginlist,core.spawn
-Color=7 \ No newline at end of file
diff --git a/MCServer/users.ini b/MCServer/users.example.ini
index 6726c0bf8..6726c0bf8 100644
--- a/MCServer/users.ini
+++ b/MCServer/users.example.ini
diff --git a/Install/whitelist.example.ini b/MCServer/whitelist.example.ini
index 7e06ba8d4..a89c148c9 100644
--- a/Install/whitelist.example.ini
+++ b/MCServer/whitelist.example.ini
@@ -1,6 +1,6 @@
-[WhiteListSettings]
-WhiteListOn=0
-
-[WhiteList]
-;PlayerName=1
-
+[WhiteListSettings]
+WhiteListOn=0
+
+[WhiteList]
+;PlayerName=1
+
diff --git a/Nightbuild2008.cmd b/Nightbuild2008.cmd
index fdd5d3de1..11e2b3683 100644
--- a/Nightbuild2008.cmd
+++ b/Nightbuild2008.cmd
@@ -92,6 +92,9 @@ if errorlevel 1 goto haderror
+:: Copy all the example ini files into the Install folder for zipping:
+copy MCServer\*.example.ini Install\*.example.ini
+
:: Use 7-zip to compress the resulting files into a single file:
set FILESUFFIX=%MYYEAR%_%MYMONTH%_%MYDAY%_%MYTIME%_%COMMITID%
echo FILESUFFIX=%FILESUFFIX%
diff --git a/UpdateVersions.cmd b/UpdateVersions.cmd
deleted file mode 100644
index 1d4b00bca..000000000
--- a/UpdateVersions.cmd
+++ /dev/null
@@ -1,39 +0,0 @@
-@echo off
-:: UpdateVersions.cmd
-:: This script processes all *.template files into their non-templated variants using subwcrev, substituting WC-related keywords in the process
-:: subwcrev is expected to be in path; you can pass the correct path for your system as env var "subwcrev"
-
-
-:: Subwcrev (from TortoiseSVN, for querying revision number; by default in PATH):
-if %subwcrev%a == a set subwcrev=subwcrev
-
-
-
-
-:: Copy all *.template files into their non-template versions, substituting SVN keywords:
-for /r %%X in (*.template) do (
- %subwcrev% . "%%X" "%%~dpX%%~nX"
- if errorlevel 1 goto haderror
-)
-
-
-goto end
-
-
-
-
-:haderror
-echo an error was encountered, check command output above
-pause
-goto finished
-
-
-
-
-
-:end
-if "a%1" == "a" pause
-
-
-
-:finished \ No newline at end of file
diff --git a/source/GroupManager.cpp b/source/GroupManager.cpp
index a474de9cb..396ad2e2f 100644
--- a/source/GroupManager.cpp
+++ b/source/GroupManager.cpp
@@ -1,4 +1,3 @@
-
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "GroupManager.h"
@@ -88,7 +87,7 @@ cGroupManager::cGroupManager()
for( unsigned int i = 0; i < Split.size(); i++)
{
Group->AddPermission( Split[i] );
- LOGINFO("Permission: %s", Split[i].c_str() );
+ //LOGINFO("Permission: %s", Split[i].c_str() );
}
}
@@ -102,7 +101,7 @@ cGroupManager::cGroupManager()
}
}
}
- LOG("-- Done Loading Groups --");
+ LOG("-- Groups Successfully Loaded --");
}
diff --git a/source/Server.cpp b/source/Server.cpp
index 67a02f626..b07c65f04 100644
--- a/source/Server.cpp
+++ b/source/Server.cpp
@@ -1,4 +1,3 @@
-
// ReDucTor is an awesome guy who helped me a lot
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
@@ -130,20 +129,6 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
return false;
}
- printf("/============================\\\n");
- printf("| Custom Minecraft Server |\n");
- printf("| Created by Kevin Bansberg |\n");
- printf("| A.K.A. FakeTruth |\n");
- printf("| Monsters by Alex Sonek |\n");
- printf("| A.K.A. Duralex |\n");
- printf("| Stuff by Mattes D |\n");
- printf("| A.K.A. _Xoft(o) |\n");
- printf("\\============================/\n");
- printf("More info: WWW.MC-SERVER.ORG\n");
- printf(" WWW.AE-C.NET\n");
- printf(" WWW.RBTHINKTANK.COM\n");
- printf("email: faketruth@gmail.com\n\n");
-
LOG("Starting up server.");
LOGINFO("Compatible clients: %s", MCS_CLIENT_VERSIONS);
LOGINFO("Compatible protocol versions %s", MCS_PROTOCOL_VERSIONS);
@@ -481,11 +466,11 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
void cServer::BindBuiltInConsoleCommands(void)
{
cPluginManager * PlgMgr = cPluginManager::Get();
- PlgMgr->BindConsoleCommand("restart", NULL, "Restarts the server cleanly");
- PlgMgr->BindConsoleCommand("stop", NULL, "Stops the server cleanly");
- PlgMgr->BindConsoleCommand("chunkstats", NULL, "Displays detailed chunk memory statistics");
+ PlgMgr->BindConsoleCommand("restart", NULL, " - Restarts the server cleanly");
+ PlgMgr->BindConsoleCommand("stop", NULL, " - Stops the server cleanly");
+ PlgMgr->BindConsoleCommand("chunkstats", NULL, " - Displays detailed chunk memory statistics");
#if defined(_MSC_VER) && defined(_DEBUG) && defined(ENABLE_LEAK_FINDER)
- PlgMgr->BindConsoleCommand("dumpmem", NULL, "Dumps all used memory blocks together with their callstacks into memdump.xml");
+ PlgMgr->BindConsoleCommand("dumpmem", NULL, " - Dumps all used memory blocks together with their callstacks into memdump.xml");
#endif
}