Jump to content

Recommended Posts

Posted

Easy .pmoff voicedcommand to make the pm refusal mode accessible to players.

Credits to me.

(I know thats a very easy one to make so plz dont comment something like "easy to me" or else...that command only for FUN)

 

Tested and work on L2J ct2.2

 

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
* 
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;

/**
* @author Intrepid
*
*/

public class pmoff implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = 
{ 
	"pmoff"
};

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
	if ((command.startsWith("pmoff")))
	{
		if (activeChar.getMessageRefusal()) // already in message refusal mode
		{
			activeChar.setMessageRefusal(false);
			activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_ACCEPTANCE_MODE));
		}
		else
		{
			activeChar.setMessageRefusal(true);
			activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_REFUSAL_MODE));
		}
	}
	return true;
}

public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}
}

Posted

Well... nobody said its very easy to make that.

But, /allblock does the exact same thing...

 

i know i know thats why i said just for fun:Pyou know thats more "special" i think because /allblock is work everywhere but find me a server where players can use a gm command(without access ofc):)

Posted

i know i know thats why i said just for fun:Pyou know thats more "special" i think because /allblock is work everywhere but find me a server where players can use a gm command(without access ofc):)

Well, ok. Its good to have those java modifications. :)

BTW you can make commands for trade refusal, duel, party etc.

That would be good.

Posted

Well, ok. Its good to have those java modifications. :)

BTW you can make commands for trade refusal, duel, party etc.

That would be good.

 

hmm good idea when i have some time i start to make them:D

Posted

/allblock

/allunblock

 

anyway gb... and thx for idea

 

you give me one idea :)

 

is for admins... when somene want to send pm to gm/admin and is refusal mode to see the  message xD

 

example :)

Players (NAME): tryed to say you "message" 

 

 

 

Posted

Everyone knew that.Bad post.

you cannot voted for bad post...

seems you can make something better?

he only posted for help and if you are newbie to java you can learn something from these codes...

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market    
    • 🎮 Stop staying offline — level up your Discord today!  🎁 Discord Nitro from just $2.9 — for yourself or as a gift!  🔑 Ready-to-use Discord accounts aged from 1 to 24 months starting at $0.44  💥 Everything you need to get started:  ✔️ Real Android devices, email + SMS verification (depends on the product)  ✔️ Nitro Classic & Full — 1 to 12 months (with or without account login)  ✔️ Unlimited accounts — perfect for bots, arbitrage, communities, marketing, and more   🚀 Promo code: DISCORD7 (7% discount)   Payment methods: bank cards · cryptocurrency · other popular options   How to buy:  ➡ Online Store: Click ✅  ➡ Telegram Bot: Click ✅   Other services:  ➡ SMM Panel: Click ✅   Assortment: 🤖 Discord accounts - mail:password:token with email included (email is working) Activated by SMS | ✨ 1 order = 3 accounts ✨ | Price from: $0.44  🤖 ⚡️DISCORD⚡️ Real Android devices ⚡️ Verified on RAMBLER.RU or FIRSTMAIL | Working email included | SMS (phone) verified ☑️ | Age from 3 months | Suitable for any purposes | Accounts without limitations or SMS | Price from: $0.5  🤖 ✨DISCORD✨ accounts | 1 order = 3 accounts | Verified email only (@rambler.ru / @firstmail), email included (working) | Gender: MIX | Price from: $0.5  🤖 ⚡️DISCORD⚡️ Real Android | ☑️ 1 order = 3 accounts | Verified via RAMBLER.RU or FIRSTMAIL | Working email included | SMS verified | Age from 1 month | Suitable for any purposes | Accounts without limitations or SMS | Price from: $0.75  🤖 ⚡️DISCORD⚡️ Real Android devices | Verified via RAMBLER.RU or FIRSTMAIL | Email included (may not work) | SMS verified | Age from 1 year | Suitable for any purposes | Accounts without limitations or SMS | Price from: $0.8  🤖 ⚡️DISCORD⚡️ Real Android devices | Verified via RAMBLER.RU or FIRSTMAIL | Email included (may not work) | SMS verified | Age from 2 years | Suitable for any purposes | Accounts without limitations or SMS | Price from: $1.5  🤖 ⚡️DISCORD⚡️ Real Android devices | Verified via RAMBLER.RU or FIRSTMAIL | Working email included | SMS verified | Age from 1 year | Suitable for any purposes | Accounts without limitations or SMS | Price from: $2   🤖 🎁 Discord Nitro Classic (Basic) | 1 MONTH | Requires login & password | Full subscription warranty | Price from: $2.9  🤖 🎁 Discord Nitro FULL | 1 MONTH | Requires login & password | Full subscription warranty | Price from: $4.9  🤖 🎁 Discord Nitro Classic (Basic) GIFT | 1 MONTH | No login required | Full subscription warranty | Price from: $3.5  🤖 🎁 Discord Nitro FULL | 12 MONTHS | Requires login & password | Full subscription warranty | Price from: $35  🤖 🎁 Discord Nitro Classic (Basic) GIFT | 12 MONTHS | No login required | Full subscription warranty | Price from: $17  🤖 🎁 Discord Nitro Classic (Basic) | 12 MONTHS | Requires login & password | Full subscription warranty | Price from: $15   Regular customers get extra discounts and promo codes!   Support:  ➡ Telegram: https://t.me/solomon_bog ✅  ➡ Discord: https://discord.gg/y9AStFFsrh ✅  ➡ WhatsApp: https://wa.me/79051904467 ✅  ➡ ✉ Email: solomonbog@socnet.store ✅   ➡ Telegram Channel: https://t.me/accsforyou_shop ✅   You can also use these contacts to:  — Discuss wholesale purchases  — Propose a partnership (current partners: https://socnet.bgng.io/partners )  — Become a supplier SocNet — Digital Goods & Premium Subscriptions Store ✅ Want to get the most out of ChatGPT without limits or overpaying?  Get access to ChatGPT-4 and 4o1 — the legendary AI already helping millions to earn, create, automate, and save time! What we offer:  Shared access from just $5 for 2 or 5 people — perfect for testing and easy entry  Dedicated ChatGPT 4o1 personal account — just for you or on your own email  PRO account with unlimited requests — ideal for developers, businesses, and advanced users   Promo code: PLUS7 (7% discount)  Payment: bank cards · cryptocurrency · other popular methods   How to buy:  ➡ Online Store: Click   ➡ Telegram Bot: Click    Other services:  ➡ SMM Panel: Click    Assortment: ChatGPT 4 Plus Shared account FOR 2/5 PEOPLE | Price from: $5 / $10  ChatGPT 4o1 Dedicated Personal account FOR 1 PERSON or ON YOUR ACCOUNT | Price from: $18  ChatGPT PRO account with UNLIMITED REQUESTS | Dedicated Personal account ONLY FOR 1 PERSON or ON YOUR ACCOUNT | Works in any country or region | Price from: $220   Regular customers receive additional discounts and promo codes!   Support:  ➡ Telegram: https://t.me/solomon_bog   ➡ Discord: https://discord.gg/y9AStFFsrh   ➡ WhatsApp: https://wa.me/79051904467   ➡ ✉ Email: solomonbog@socnet.store    ➡ Telegram Channel: https://t.me/accsforyou_shop    You can also contact us to:  — Discuss wholesale purchases  — Propose partnerships (current partners: https://socnet.bgng.io/partners )   — Become a supplier Ready to take your Instagram to the next level? ➡ We’ve got ready-to-use accounts for marketing, arbitrage, and promotion! ➡ Choose from new to aged accounts, with real followers, and even posts and META verification included. Perfect for businesses, influencers, and advertisers — ideal accounts to start, grow, and promote your presence! Promo code: INST8 (8% discount)   Payment: bank cards · cryptocurrency · other popular methods   How to buy:  ➡ Online Store: Click   ➡ Telegram Bot: Click    Other services:  ➡ SMM Panel: Click    Assortment: ➡Instagram accounts (2021–2024) | Clear and high-quality account | Country: MIX | Submail included | Price from: $1.10 ➡Instagram OLD accounts (2011–2020) | Clear and high-quality account | Country: MIX | Submail included | Price from: $1.20 ➡New Instagram accounts | Premium quality autoregs (API FRESH) | Registered via SMS | Brand new (up to 24h old) | Format: login:password:cookies (for InstAccountsManager) | Price from: $0.05 ➡Instagram OLD accounts (2011–2020) | FLAG OFF accounts | Suitable for growing followers | Country: MIX | Submail included | Price from: $1.15 ➡Instagram OLD accounts (2011–2015) | Clear and high-quality account | Country: MIX | Submail included | Price from: $1.30 ➡Instagram OLD accounts (2011–2020) with followers | 100 followers | Country: MIX | Submail included | Price from: $1.35 ➡Instagram OLD accounts (2011–2015) with followers | 100 followers | Country: MIX | Submail included | Price from: $1.45 ➡Instagram OLD accounts (2011–2020) | Clear and high-quality account | Country: Europe and USA | Submail included | Price from: $2.00 ➡Instagram OLD accounts (2011–2020) | Clear and high-quality account | Country: USA | Submail included | Price from: $3.00 ➡Instagram OLD accounts (2011–2020) with followers | 100 followers | Country: Europe and USA | Submail included | Price from: $3.00 ➡Instagram OLD accounts (2011–2020) with followers | 100+ followers | Country: USA | Submail included | Price from: $2.75 ➡Instagram OLD accounts (2011–2020) with followers | 500+ followers | Country: Europe and USA | Submail included | Price from: $3.00 ➡Instagram OLD accounts (2011–2020) with followers | 1000+ followers | Country: Europe and USA | Submail included | Price from: $5.20 ➡Instagram OLD accounts (2011–2020) with followers | 5000+ followers | Country: Europe and USA | Submail included | Price from: $22.00 ➡Instagram OLD accounts (2011–2020) with followers | 5 posts, 500 followers | Country: MIX | Submail included | Price from: $2.50 ➡Instagram OLD accounts (2011–2020) with followers | 5 posts, 1000 followers | Country: MIX | Submail included | Price from: $4.30 ➡Instagram OLD Account (2010–2020) | Ready for META VERIFIED purchase | Includes posts | Price from: $4.99 ➡Instagram META OLD Account (2010–2020) with 100+ followers | Ready for META VERIFIED purchase | Includes posts | Price from: $5.99 ➡Instagram META OLD Account (2010–2020) with 500+ followers | Ready for META VERIFIED purchase | Includes posts | Price from: $6.99 ➡Instagram META OLD Account (2010–2020) with 1000+ followers | Ready for META VERIFIED purchase | Includes posts | Price from: $8.49 ➡Instagram META OLD Account (2010–2020) with 5000+ followers | Ready for META VERIFIED purchase | Includes posts | Price from: $19.98 ➡Instagram OLD accounts (2011–2020) with followers | 10 posts, 5000 followers | Country: MIX | Submail included | Price from: $16.00 ➡Instagram OLD accounts (2011–2020) with followers | 10 posts, 10,000 followers | Country: MIX | Submail included | Price from: $30.00   Regular customers receive additional discounts and promo codes!   Support:  ➡ Telegram: https://t.me/solomon_bog  ➡ Discord: https://discord.gg/y9AStFFsrh  ➡ WhatsApp: https://wa.me/79051904467  ➡ ✉ Email: solomonbog@socnet.store   ➡ Telegram Channel: https://t.me/accsforyou_shop   You can also use these contacts to:  — Discuss wholesale purchases  — Propose partnerships (current partners: https://socnet.bgng.io/partners )   — Become a supplier SocNet — Digital Goods & Premium Subscriptions Store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock