mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-09 10:52:53 +00:00
i changed a bit the kill command because it was not working properly, then i added a check for HostPrivileges for each command
21 lines
475 B
C++
21 lines
475 B
C++
#pragma once
|
|
#include "../Minecraft.World/Class.h"
|
|
#include <unordered_map>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
class EntityTypeMap
|
|
{
|
|
public:
|
|
|
|
static eINSTANCEOF getTypeFromName(const wstring& name);
|
|
|
|
static wstring getNameFromType(eINSTANCEOF type);
|
|
|
|
|
|
static bool isValidType(const wstring& name);
|
|
|
|
private:
|
|
static const unordered_map<wstring, eINSTANCEOF>& getNameToTypeMap();
|
|
static const unordered_map<eINSTANCEOF, wstring>& getTypeToNameMap();
|
|
}; |