summaryrefslogtreecommitdiff
path: root/protocols/MinecraftDynmap/src/constants.h
blob: 9a50cc885969a183941384a4841e333df79c09d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*

Minecraft Dynmap plugin for Miranda Instant Messenger
_____________________________________________

Copyright © 2015-17 Robert Pösel

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#pragma once

// Product management
#define MINECRAFTDYNMAP_NAME							"Mincraft Dynmap"

// Limits
#define MINECRAFTDYNMAP_TIMEOUTS_LIMIT					6
// This is just guessed some wise limit
#define MINECRAFTDYNMAP_MESSAGE_LIMIT					256
#define MINECRAFTDYNMAP_MESSAGE_LIMIT_TEXT				"256"

#define MINECRAFTDYNMAP_QUESTION_MIN_LENGTH				10

// Request types
#define MINECRAFTDYNMAP_REQUEST_HOME					100 // getting server homepage
#define MINECRAFTDYNMAP_REQUEST_CONFIGURATION			101 // getting server configuration
#define MINECRAFTDYNMAP_REQUEST_EVENTS			        102 // receiving events
#define MINECRAFTDYNMAP_REQUEST_MESSAGE			        103 // sending messages

// DB settings
#define MINECRAFTDYNMAP_KEY_TIMEOUTS_LIMIT	"TimeoutsLimit" // [HIDDEN]

#define MINECRAFTDYNMAP_KEY_NAME			"Nick"
#define MINECRAFTDYNMAP_KEY_SERVER			"Server"