TeleportCommand::TeleportCommand() : VanillaCommand("tp") { description = "Teleports the given player (or yourself) to another player or coordinates"; usageMessage = "%commands.tp.usage"; setPermission("servermanager.command.teleport"); }
GameModeCommand::GameModeCommand() : VanillaCommand("gamemode") { description = "Changes the player to a specific game mode"; usageMessage = "%commands.gamemode.usage"; setPermission("servermanager.command.gamemode"); }
bool SkFontManager::addNewFont( uint32_t fontIndex ) { if( fontIndex >= mSearchFonts.numFonts() ) goto ERROR0; else { SkFontData * newFont = SkNEW( SkFontData ); if( newFont ) { if( copyFont( newFont, mSearchFonts.getFont( fontIndex ) ) == false ) goto ERROR1; if( mDownloadFonts.addFonts( newFont ) == false ) goto ERROR1; setPermission( newFont ); // newFont->loadFont(); return true; } ERROR1: if( newFont ) SkDELETE( newFont ); goto ERROR0; } ERROR0: return false; }