(!) Coding Help (!)

Status
This thread has been locked.

DoYouThink

DoYouThink
Supreme
Feedback score
12
Posts
637
Reactions
179
Resources
0
I am a new coder and I am trying to make a plugin. What op's me when my server starts. If I somehow get deop or etc. The plugin will op me when the server starts/restarts, but I have an issue. This is how far I have gotten. My ign is DoYouThink_

package me.DoYouThink.AntiDeop;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin{

public void onEnable() {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "op DoYouThink_");

} }
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

MarkFreak

Feedback score
11
Posts
558
Reactions
280
Resources
0
hey, new coder here, who wants to "help" make me a plugin? totally not malicious deop one neither.

write code then comeback with errors. rather than telling us write it for me.
 

DoYouThink

DoYouThink
Supreme
Feedback score
12
Posts
637
Reactions
179
Resources
0
hey, new coder here, who wants to "help" make me a plugin? totally not malicious deop one neither.

write code then comeback with errors. rather than telling us write it for me.
Excuse me? What do you mean?
 

MarkFreak

Feedback score
11
Posts
558
Reactions
280
Resources
0
Excuse me? What do you mean?
Feel free to excuse yourself.

write code then comeback with errors. rather than telling us write it for me.

theres nothing particuraly wrong with your code particularly, give us errors, don't tell us to write for you.
 

DoYouThink

DoYouThink
Supreme
Feedback score
12
Posts
637
Reactions
179
Resources
0
Feel free to excuse yourself.

write code then comeback with errors. rather than telling us write it for me.

theres nothing particuraly wrong with your code particularly, give us errors, don't tell us to write for you.
The command did not run. /op DoYouThink_ did not run. I was not op when I joined the server.
 

YoloSanta

Bot & Plugin Developer
Supreme
Feedback score
18
Posts
884
Reactions
374
Resources
0
Is the plugin even enabling? Is it in your /pl ?
 

Nerdyy

Feedback score
4
Posts
80
Reactions
31
Resources
0
I am a new coder and I am trying to make a plugin. What op's me when my server starts. If I somehow get deop or etc. The plugin will op me when the server starts/restarts, but I have an issue. This is how far I have gotten. My ign is DoYouThink_

package me.DoYouThink.AntiDeop;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin{

public void onEnable() {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "op DoYouThink_");

} }
Can you show us your plugin.yml(if you have one)?
 

DoYouThink

DoYouThink
Supreme
Feedback score
12
Posts
637
Reactions
179
Resources
0
name: AntiDeop
version: 1.0
main: me.DoYouThink.AntiDeop.Main
description: Owner won't be deopped.[DOUBLEPOST=1529083573][/DOUBLEPOST]
Is the plugin even enabling? Is it in your /pl ?
I think so.
 
Last edited:

TricksterPlays

tricksterdzn.com
Supreme
Feedback score
15
Posts
582
Reactions
140
Resources
0
I am a new coder and I am trying to make a plugin. What op's me when my server starts. If I somehow get deop or etc. The plugin will op me when the server starts/restarts, but I have an issue. This is how far I have gotten. My ign is DoYouThink_

package me.DoYouThink.AntiDeop;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin{

public void onEnable() {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "op DoYouThink_");

} }
Wrong section.
 
Status
This thread has been locked.
Top