All Projects â†’ BoxOfDevs â†’ Functions

BoxOfDevs / Functions

Licence: other
Create your own commands with ease! For PocketMine, a Minecraft PE server software

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Functions

UHC
A UHC plugin for MCPE v1.2.x
Stars: ✭ 15 (-11.76%)
Mutual labels:  pocketmine, mcpe, minecraft-pocket-edition
Extropy
Custom version of PocketMine-MP for the @ConflictPE network! 🚀🕹ī¸
Stars: ✭ 16 (-5.88%)
Mutual labels:  pocketmine, mcpe
FactionsPE
Most advanced factions plugin for PocketMine-MP
Stars: ✭ 46 (+170.59%)
Mutual labels:  pocketmine, mcpe
MineReset
Powerful mine resetting tool
Stars: ✭ 44 (+158.82%)
Mutual labels:  pocketmine, mcpe
BurgerCustomArmor
Create Custom Armor Sets with several abilities!
Stars: ✭ 25 (+47.06%)
Mutual labels:  pocketmine, custom
Vector-Network-Project
Minecraft Bedrock Edition server plugin
Stars: ✭ 28 (+64.71%)
Mutual labels:  mcpe, minecraft-pocket-edition
SAC
An AntiCheat software for PockeMine-MP made to detect unfair gamplay advantages.
Stars: ✭ 52 (+205.88%)
Mutual labels:  pocketmine, mcpe
Emotes
This plugin allows players to use their favorite emotes on the server!
Stars: ✭ 15 (-11.76%)
Mutual labels:  pocketmine, mcpe
MCPIL-Legacy
Minecraft Pi Launcher (deprecated, use MCPIL-R under our same organization).
Stars: ✭ 62 (+264.71%)
Mutual labels:  mcpe, minecraft-pocket-edition
ProfileUI
Get any player's profile on a Modal Form! MCPE v1.2! PMMP support only!
Stars: ✭ 20 (+17.65%)
Mutual labels:  pocketmine, mcpe
InvSee
A PocketMine-MP plugin that lets you view and modify offline and online players' inventories in real-time!
Stars: ✭ 19 (+11.76%)
Mutual labels:  pocketmine, mcpe
CommandShop
Players have to pay items or money to use specific commands! A PocketMine plugin.
Stars: ✭ 32 (+88.24%)
Mutual labels:  pocketmine, mcpe
Volt
A painless web server for PocketMine-MP
Stars: ✭ 24 (+41.18%)
Mutual labels:  pocketmine, mcpe
fireworks
Adds Fireworks to Pocketmine
Stars: ✭ 17 (+0%)
Mutual labels:  pocketmine
discord.ts
🤖 Create your discord bot by using TypeScript and decorators!
Stars: ✭ 315 (+1752.94%)
Mutual labels:  command
caddy-exec
Caddy v2 module for running one-off commands
Stars: ✭ 48 (+182.35%)
Mutual labels:  command
HALO-SCRIPT-PROJECTS
✅ Halo PC|CE - Add-ons for Phasor V2+ and SAPP đŸ‡ŗđŸ‡ŋ
Stars: ✭ 25 (+47.06%)
Mutual labels:  custom
Node-MineiaGo
A proxy to bridge Bedrock (Minecraft Pocket Edition, Minecraft Console Editions and Windows 10 Edition) with Minecraft Java Edition.
Stars: ✭ 15 (-11.76%)
Mutual labels:  minecraft-pocket-edition
boundstone
High Performance / Fast Compilation / Lightweight MCBE Server
Stars: ✭ 42 (+147.06%)
Mutual labels:  mcpe
clui
A command system with extra steps
Stars: ✭ 18 (+5.88%)
Mutual labels:  command

Functions Description

Poggit-CI

Ever wanted to make your own commands? Well, now you can! Using the functions plugin a user can set a function, and then on running a certain command, that function will be run - Enjoy :D



Changelog

Version 2.0.0: May 13, 2018. Thanks to JackMD!

- Updated to version 2.0.0 in config
- Compatibility with API 3.0.0-ALPHA12 through ALPHA14
- Code reformatting
- Shorthand commands: /func, for example
- Typehints added (ew, but yeah fiiineeeee)
- Help message redesign, looking great!
- Remove unnecessary return statements
- File structure improved
- Author name fixed
- Minor improvements

Commands

All the commands currently implemented into Functions:

- /function create <name of the function>
    Create a function!

- /function addcmd <function name> <command>
    Add a command to a function!

- /function setcmd <function name> <id> <command> (Functions 1.2+)
    Set a command to a function by it's id (can be found using read)!

- /function usage <function name> <usage> (Functions 1.2+)
    Set the usage of a function!

- /function desc <function name> <description> (Funtions 1.2+)
    Set the description of a function!

- /function read <function name>
    Show every command of the function (nothink executes no commands!)

- /function resetcmd <function name> <command id>
    Reset a command (leave it to blank to be changed later)

- /function removecmd <function name> <command id>
    Remove the command (remove the space used for the command)

Permissions

All the permissions used by Functions:

- func.command.function : Allows /function, Default: OP

Special replacements

Those are what in the command will be replace by what :~)

  • {sender} : Will be replaced with sender name
  • {isop} : Boolean if the sender is OP.
  • {usage} : Will be replaced with the command usage
  • {desc}: Will be replaced with the command description
  • {x} : Will be replaced with sender x coordinate
  • {y} : Will be replaced with sender y coordinate
  • {z} : Will be replaced with sender z coordinate
  • {level} : Will be replaced with sender level
  • {args[0]} : Will be replaced with the first argument of the command
  • {args[1]} : Will be replaced with the second argument of the command
  • {args[2]} : Will be replaced with the third argument of the command
  • {args[3]} : Will be replaced with the fourth argument of the command

You can also enter:

  • {op} to set the user OP just for the command then unop him if (he wasn't OP).TtTT
  • {console} to execute the command as the console

Here comes the complex part: the if statements. (Functions 1.2+)
If statements follows a simple syntax in the command (removed after execution):
{if:<conditon>;then:<action>}

List of possible conditions:

  • value=other value: Check if two values are equal.
  • value!=other value: Check if two values are not equal.
  • value>other value: Check if a value is more than an other. Only for numbers.
  • value<other value: Check if a value is less than an other. Only for numbers.

List of possible actions:

  • exec (or execute): Will execute the command (if cancelled before)
  • !exec (or !execute): Will cancel the execution of the command
  • asop: Will execute the command as an OP.
  • asconsole: Will execute the command as console.
  • as<online player name>: Will execute all new commands as another player.

AND and OR

You can check multiple conditions using && (and) or || (or). DO NOT USE BOTH IN THE SAME CONDITION !

Combined with other replacements, you can do thousands of things. Here are a few example:

  • {if:{isop}!=true;then:!exec}: Will execute the command only if the player is OP.
  • {if:{level}!=lobby;then:!exec}: Will execute the command only the command if the player is in the world "lobby" (like /fly commands)
  • {if:{y}<10&&{y}>1;then:asop}: Will execute the command as OP if the sender is beetween 1 and 10 of height.
  • {if:{args[0]}=read||{args[0]}=listen;then:!exec}: Will not execute the command if the 1st argument is "read" or "listen".

... create your own conditions will help you to really make interactive commands.

Importing / Exporting Functions (Functions 1.2.1+)

What's even cooler with this plugin is the fact that you can easily share Functions with other servers/on your network with a simple really light file.

Basic import/export

So first, you need to have a created function on your server.
Then, you need to run /function export <function name>
If succefull, you would see a new file in the function folder called <function name>.func .
This file basicly stores the function and is needed to import the function on other servers.
So share this file and put it into the Functions folder of the wanted server.
Then, on this server, run command /function import <name of he file without the .func> .
And voila ! You have succefully imported a function to an another server.

Import/export with password

Sometimes, you wouldn't like your shared functions to be leaked, so Functions comes with a buildt in feature of encrypting functions with passwords.
Passwords are encrypted using an sha512 encryption then converted to ANSII, then reencrypted into 1 number so there is NO way back to the original password.

So how to do this:
First of all, as you did before, you need to have the function you want to share on a server.
Then, run command /function export <function name> <password> .
You would see if functions successfully encrypted your password at the success message.
Now, as we did before, share it into an another server and put it into the Functions plugin folder.
And finally run command /function import <name of he file without the .func> <password> .
If no password included for a function that need one, you will get a message telling you to enter the password.
If the password entered is wrong (could not decrypt the function), you will also get an error message.

Authors

All contributors to Functions:

- Ad5001

- applqpak

- HimbeersaftLP

- TheDragonRing

- remotevase

- Dog2puppy

- ErkamKahriman

- JackMD

- TheRoyalBlock (AvgZing)

- DarkWav

Read The License!!!

Please make sure you read the license, upon downloading any file of the software, you agree to all its terms. The license may be found [here.] (http://bit.ly/2jikqXv)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].