-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
Create your first Coder script in just 5 minutes. No Java knowledge required!
By the end of this guide, you'll be able to:
โ
Create a basic script file
โ
Use broadcast and send commands
โ
Execute your script on the server
โ
Understand basic Coder syntax
Time Required: 5 minutes
Difficulty: โญ Beginner
Scripts go in /plugins/Coder/scripts/ folder
Create a new file called: hello.cd
Note:
.cdextension stands for "Coder DSL"
Copy this into hello.cd:
# My first Coder script!
# Broadcast a message to all players
broadcast "Hello everyone! Coder is working!"
# Send a message to the console
console.log "Script executed successfully!"
- Join your server
- Type in chat:
/coder run hello - Press Enter You should see:
- Message in chat:
Hello everyone! Coder is working! - Message in console:
Script executed successfully!
Or from server console, type:
coder run hello
Create greet.cd:
send "Welcome to the server!" to Steve
send "Hello Admin!" to Admin
Run: /coder run greet
Create announcer.cd:
broadcast "โโโโโโโโโโโโโโโโโโโโโโโโโโโโ"
broadcast "Welcome to MyAwesomeServer!"
broadcast "Website: example.com"
broadcast "Discord: discord.gg/invite"
broadcast "โโโโโโโโโโโโโโโโโโโโโโโโโโโโ"
Run: /coder run announcer
Create counter.cd:
var playerCount = 5
var serverName = "Creative Server"
broadcast "Server: {serverName}"
broadcast "Current players: {playerCount}"
broadcast "Max players: 20"
Run: /coder run counter
Lines starting with # are comments (ignored by Coder):
# This is a comment
broadcast "This runs!" # And this line runs too
Send message to ALL players:
broadcast "Message here"
Shows in chat for everyone on the server.
Send message to SPECIFIC player:
send "Message here" to PlayerName
Store information:
var myVariable = 42
var serverName = "MyServer"
broadcast "The answer is {myVariable}"
broadcast "Server: {serverName}"
Log to server console:
console.log "Debug message"
# Comments - use # for single line
broadcast "Message" # Send to all players
send "Message" to PlayerName # Send to specific player
console.log "Message" # Log to console
var name = "value" # Create variable
var count = 42 # Numbers work too
var enabled = true # Booleans work too
broadcast "Value is {variable}" # Use variables with {}
Create restart-alert.cd:
broadcast "โโโโโโโโโโโโโโโโโโโโโโโโโโโโ"
broadcast "โ ๏ธ SERVER RESTARTING SOON!"
broadcast "โโโโโโโโโโโโโโโโโโโโโโโโโโโโ"
broadcast "Time remaining: 5 minutes"
broadcast "Save your work!"
broadcast "โโโโโโโโโโโโโโโโโโโโโโโโโโโโ"
Create daily-rewards.cd:
broadcast "โจ Daily Rewards Available!"
broadcast "Type /rewards to claim your gift"
broadcast "Check back tomorrow for more!"
Create rules.cd:
broadcast "๐ SERVER RULES"
broadcast "1. Be respectful to all players"
broadcast "2. No griefing or stealing"
broadcast "3. No offensive language"
broadcast "4. Have fun!"
send "Rules acknowledged!" to Admin
Your script worked if you see:
- โ Message appears in game chat
- โ Message appears in server console
- โ No error messages
- โ
/coder listshows your script file
Now that you understand the basics:
- Learn More: Read Syntax Reference for all commands
- Explore: Check Examples & Tutorials for real use cases
- Master: Study Advanced Scripting techniques
- Integrate: Learn about Addons like CodeDSL and CoderJSLoader
- Use descriptive names:
announcer.cd,welcome.cd,reminder.cd - Use lowercase with hyphens:
daily-rewards.cd(notDailyRewards.cd) - One script per file is best practice
- Check server console for error messages
- Use
console.logto debug script flow - Run
/coder listto verify your script is recognized
- Keep scripts short and focused
- Use memory loading for frequently-run scripts:
/coder load scriptname - Monitor execution time in logs
| Mistake | Fix |
|---|---|
broadcast Hello (no quotes) |
Use quotes: broadcast "Hello"
|
| Script in wrong folder | Place in /plugins/Coder/scripts/
|
| Wrong file extension | Use .cd not .txt or .java
|
| Typo in player name | Double-check capitalization and spelling |
| Script doesn't reload | Restart server or use /coder reload
|
Error: Script 'hello' not found
Fix: Ensure hello.cd is in /plugins/Coder/scripts/ folder
Error: Invalid syntax on line 2
Fix: Check quotes, brackets, and spelling on that line
Error: You don't have permission
Fix: Ensure player has coder.run permission or is OP
Script runs but no output
Fix: Check if commands are spelled correctly (case-sensitive)
- Full Reference: Syntax Reference
- More Examples: Examples & Tutorials
- All Commands: Commands
- Troubleshooting: Troubleshooting
Congratulations! ๐ You've created your first Coder script!
Want to learn more? Check out the Syntax Reference for the complete list of commands and features.
| Need Help? | Where to Go |
|---|---|
| ๐ค General Question | FAQ or Discord |
| ๐ Found a Bug | GitHub Issues |
| ๐ฌ Quick Chat | Discord Community |
| ๐ Can't Find Docs | Home for navigation |
We welcome contributions from the community!
- Report Bugs: Create an Issue
- Improve Wiki: Edit Pages
- Submit Code: Open a PR
- ๐ฌ Discord Server
- ๐ฑ GitHub Issues
Main Pages: Home โข Installation Guide โข Quick Start โข Syntax Reference โข Commands โข FAQ
| Item | Details |
|---|---|
| Latest Version | v1.7.4 (June 19, 2026) |
| Status | โ Active Development |
| License | MIT License |
| Author | Firesmasher |
| Server Type | Paper/Spigot 1.21 - 26.2 |
| Java Version | 21+ |
Give us a Star! โข Follow on GitHub โข Join Discord
Made with โค๏ธ for the Minecraft Community
Coder is a lightweight scripting plugin for Minecraft servers
Contribute โข Report Issues โข Share Feedback โข Have Fun!
Last Updated: June 2026 | Report Wiki Issue
- Home - Wiki overview & features
- Installation Guide - Setup in 5 minutes
- Quick Start - Your first script
- FAQ - Common questions
- Syntax Reference - All commands & syntax
- Commands - Plugin commands & permissions
- CodeDSL - DSL scripting addon
- CoderJSLoader - JavaScript addon
๐ถ Beginner
- Quick Start
- Syntax Reference (basic section)
- Copy examples from FAQ ๐ฏ Intermediate
- Master Syntax Reference
- Learn all Commands
- Explore CodeDSL addon ๐ Advanced
- Deep dive CoderJSLoader
- Custom command development
- Performance optimization tips
| Resource | Link |
|---|---|
| GitHub | Repository |
| Downloads | Releases |
| Modrinth | Download |
| SpigotMC | Download |
| Channel | Link |
|---|---|
| Discord | Join Server |
| Issues | Bug Reports |
| Discussions | Q&A |
Current: v1.7.4
Released: June 19, 2026
Status: โ
Active Development
Supported Servers:
- Paper 1.21 - 26.2
- Java 21+
๐ New to Coder? Start with Quick Start
๐ Looking for a command? Check Commands
๐ Need examples? Browse Syntax Reference
๐ Can't find answer? Try FAQ
Having issues?
- Check FAQ
- Review Installation Guide
- Create GitHub Issue
- Ask on Discord
Help improve Coder!
- ๐ Report Bugs
- ๐งต Threads
- ๐ Improve Wiki