GithubHelp home page GithubHelp logo

cheats-admin's Introduction

Cheats' V2 Commands

This is an admin script which will only work with Node-Hill.

How to use:

  • In your Node-Hill server folder, open start.js.
  • add cheatsAdmin and the properties you would like to add.

Example:

const nh = require('./node-hill')

nh.startServer({
    gameId: 335,

    port: 42480,

    local: true,

    map: './maps/mansion.brk',
    
    scripts: './user_scripts',

    cheatsAdmin: {
        admins: [1, 2760],
        audit: true,
        safeCommands: false
    }
})

Command instructions:

  • You do not need to use full player's usernames
  • Commands are not case sensitive

Config

  • admins -> list of all allowed admins by userId.
  • banned -> list of all banned players from your game by userId.
  • allowEval -> when enabled the /eval command is allowed.
  • maxScale -> the maximum scale of a player via /scale.
  • minScale -> the minimum scale of a player via /scale.
  • maxBrickSize -> the maximum size of a brick via /btools.
  • minBrickSize -> the minimum size of a brick via /btools.
  • audit -> logs every command and information of each command emitted in the console.
    • If target is null, then the target was themselves.
  • immunity -> immunes the original admins from /ban, /kick, and /admin.
  • safeCommands -> disables /ban, /kick, /loopkill, /shutdown except for the original admins.

Getting players

  • :all -> returns every player in the game
  • :others -> returns every player other than you in the game
  • :random -> returns random player in the game
  • :admins -> returns all other admins in the game
  • :me -> returns yourself
  • :nonadmins -> returns everyone who is not an admin
  • t:team name: -> returns everyone on that team
    • /kill t:cool people: would kill everyone on the team cool people
    • You do not need to use the full name of the team, /kill t:cool: would still work.

Commands

  • /kill player: kills the player
  • /kick player ?message: kicks the player with the message provided.
  • /mute player: mutes the player.
    • /mute is a toggable command
  • /vhcat message: messages all the admins in the server.
  • /ban player: bans the player from the game. resets when the server is turned off
  • /admin player: gives the player admin.
    • /admin is a toggable command
  • /tp player victim|x,y,z: teleports you to a player or the coordinates in x,y,z fashion.
    • /tp :me :random
    • /tp :random 0,0,0
  • /speed player num: sets your speed or the player's speed
  • /jump player num: sets your jump power or the player's jump power.
  • /size|scale player num|x,y,z: sets the player's, or your, scale in x,y,z fashion or just one number.
    • /scale cheats 2
    • /size :all 1,2,3
  • /weather sun|snow|rain: sets the game's weather.
  • /freeze player: freezes the player.
  • /unfreeze|thaw player: thaws the player.
  • /balloon player: gives the player a balloon.
  • /ambient hex|num: changes the game's ambient.
  • /sky hex|num: changes the game's sky color.
  • /cyclops player: turns you or the player into a cyclops.
  • /weed player: weedifies you or the player.
  • /zombie player: turns you or the player into a zombie.
  • /basil player: gives you basil and outfit.
  • /creeper player: turns you or the player into a creeper.
  • /jail player: puts the player in jail.
  • /unjail|free player: frees the player if they are in jail.
  • /broadcast|b message: broadcasts your message throughout the server at the top of the screen.
  • /hat player hatId: gives you or the player a hat with a specified id.
  • /reset player: resets everything about you or the player.
  • /tool player toolId: gives you or the player a tool with a specified id.
  • /wand player: gives you or the player a magic wand.
  • /greset|gr: resets the game's sky color and ambient.
  • /av|avatar: player victim|userId
    • /av :me 127118
    • /avatar cheats :random
  • /score player amount: sets the player's score to the amount.
  • /heal player amount: heals the player by amount.
  • /damage player amount: damages the player by amount.
  • /loopkill player: Loop kills the player
    • /loopkill is a toggable command.
  • /btools player: gives the player btools.
  • /admins: lists the admins in the game.
  • /speech player text: sets the player's speech as text.
  • /respawn player: respawns the player.
  • /team player "name": creates a team setting the player to that team.
    • /team :all "brick-hillians"
  • /shutdown: shuts down the server
  • /smite player: hits the player with a lightning bolt.
  • /eval code: executes the code given.
    • /eval Game.topPrintAll("This is code from eval!")
    • allowEval needs to be set to true to be able to run this command (set to false by default).
  • /color player hex: changes the players chat color.
    • /color :me "ff0000"
  • /god player: changes the player's health to a large number.
  • /carpet player: gives the player a magic carpet.
  • /levitate|lev player: makes the player levitate.
  • /descend/dec player: makes the player fall if they are levitating.

Contributions

  • SmartLion
    • Drastically improving btools
    • Helping with angles
  • Dragonian
    • Improving way of getting players

cheats-admin's People

Contributors

penguib avatar noahcoolboy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.